sf agent generate agent-spec always produces empty topics array regardless of configuration
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu với lệnh sf agent generate agent-spec và phần triển khai @salesforce/plugin-agent, kiểm tra sự không khớp phiên bản được báo cáo giữa 1.22.2 và 1.21.1. Tái hiện bằng cả lệnh tương tác và lệnh dựa trên flag, sau đó so sánh YAML được tạo với đầu ra topic được ghi lại trong tài liệu và xác minh rằng sf agent create không còn báo cáo rằng không có topic nào được liên kết.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The sf agent generate agent-spec command consistently fails to generate topics, resulting in topics: [] in the output YAML file, regardless of agent properties provided. This occurs even with simple, standard agent configurations and affects both interactive and flag-based command execution.
Steps To Reproduce
Environment Setup:
- Create SFDX project with
sf project generate --name agentforce-test - Authenticate to Developer Edition org with Einstein/Agentforce enabled
- Ensure CLI is updated to latest version
✗ sf version
@salesforce/cli/2.89.8 darwin-x64 node-v23.11.1
Reproduction Steps:
Test 1: Basic Interactive Execution
sf agent generate agent-spec --target-org DevOrg
Interactive inputs:
- Type of agent:
internal - Company name:
Test Company - Company description:
Salesforce consulting company - Role of agent:
Customer support agent
result
agentType: internal
companyName: Test Company
companyDescription: Salesforce consulting company
role: Customer support agent
maxNumOfTopics: 5
enrichLogs: false
tone: casual
topics: []
Test 2: Flag-based Execution (Simple)
sf agent generate agent-spec --type internal \
--company-name "Test Company" \
--company-description "Salesforce consulting company" \
--role "Customer support agent" \
--max-topics 1 --tone formal \
--target-org DevOrg
result
agentType: internal
companyName: Test Company
companyDescription: Salesforce consulting company
role: Customer support agent
maxNumOfTopics: 1
enrichLogs: false
tone: formal
topics: []
Expected result
According to the documentation at https://developer.salesforce.com/docs/einstein/genai/guide/agent-dx-generate-agent-spec.html:
The spec file also contains an LLM-generated list of topics based on this information... The bottom part contains the LLM-generated list of topics.
The generated specs/agentSpec.yaml should contain topics like:
topics:
- name: Guest Check-In Automation
description: Streamline the guest check-in process using AI.
- name: Personalized Guest Services
description: Provide tailored recommendations and services.
- name: Predictive Maintenance
description: Use AI to forecast and prevent equipment failures.
Actual result
All executions consistently produce the same result with empty topics:
Generated file content:
agentType: internal
companyName: Test Company
companyDescription: Salesforce consulting company
role: Customer support agent
maxNumOfTopics: 1
enrichLogs: false
tone: formal
topics: [] # ← Always empty regardless of configuration
Additional information
Plugin Version Warning:
Every execution shows:
Warning: Plugin @salesforce/plugin-agent (1.22.2) differs from the version specified by sf (1.21.1)
Attempted Variations:
- Different
--max-topicsvalues (1, 2, 3) - Various agent types and descriptions
- Both new spec creation and existing spec refinement
Consistent Behavior:
- Command completes without errors
- All agent properties are correctly saved
- Only
topics: []array remains consistently empty - Issue persists across multiple days and CLI sessions
System Information
Shell: zsh
Platform: macOS
✗ sf version --verbose --json
{
"architecture": "darwin-x64",
"cliVersion": "@salesforce/cli/2.89.8",
"nodeVersion": "node-v23.11.1",
"osVersion": "Darwin 22.6.0",
"rootPath": "/usr/local/Cellar/sf/2.89.8/libexec/lib/node_modules/@salesforce/cli",
"shell": "zsh",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.2.28 (core)",
"@oclif/plugin-commands 4.1.25 (core)",
"@oclif/plugin-help 6.2.28 (core)",
"@oclif/plugin-not-found 3.2.51 (core)",
"@oclif/plugin-plugins 5.4.37 (core)",
"@oclif/plugin-search 1.2.24 (core)",
"@oclif/plugin-update 4.6.39 (core)",
"@oclif/plugin-version 2.2.28 (core)",
"@oclif/plugin-warn-if-update-available 3.1.39 (core)",
"@oclif/plugin-which 3.2.35 (core)",
"@salesforce/cli 2.89.8 (core)",
"agent 1.22.2 (user) published 6 days ago (Wed May 21 2025)",
"apex 3.6.17 (core)",
"api 1.3.3 (core)",
"auth 3.6.120 (core)",
"data 4.0.32 (core)",
"deploy-retrieve 3.22.10 (core)",
"info 3.4.60 (core)",
"limits 3.3.54 (core)",
"marketplace 1.3.8 (core)",
"org 5.7.8 (core)",
"packaging 2.13.3 (core)",
"schema 3.3.62 (core)",
"settings 2.4.27 (core)",
"sobject 1.4.56 (core)",
"telemetry 3.6.41 (core)",
"templates 56.3.47 (core)",
"trust 3.7.89 (core)",
"user 3.6.21 (core)"
]
}
Development Org Configuration:
- Type: Developer Edition
- Einstein: Enabled
- Agentforce: Enabled
- Data Cloud: Created and active
Impact:
This issue blocks the entire Agentforce CLI workflow as the subsequent sf agent create command fails with "No topics are associated with agent. Skip saving." when attempting to create an agent from the spec file.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 571
- Fork
- 80
- Merge trung bình
- 1 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của forcedotcom/cli
-
`sf agent preview` fails with `AgentApiNotFound` against staging (aws-stage1) orgs — `stage.api.salesforce.com` missing from endpoint fallbackCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea:afdx owned by another team
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
forcedotcom/cli#3645 · 2 bình luận ·
-
sf agent mcp asset replace --assets null throws raw TypeError instead of InvalidShapeCó thể đã có người làm @konkonrong-lgtm đã nhận 65 ngày trước. Đang mởarea:afdx bug investigating owned by another team validated
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
forcedotcom/cli#3625 · 4 bình luận ·
-
area:afdx bug owned by another team
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
forcedotcom/cli#3608 · 2 bình luận ·
-
[BUG]: sf package version create always warns about org-capitalize-record-types, even when it's setĐang mởarea:packaging more information required owned by another team regression
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
forcedotcom/cli#3663 · 4 bình luận ·
-
[BUG]: NavigationMenu SourceMember name mismatch prevents source-tracked retrieve from completingĐang mởbug investigating validated
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
forcedotcom/cli#3660 · 3 bình luận ·
Tất cả issue của forcedotcom/cli
Issue tương tự
-
status: needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
mastra-ai/mastra#27210 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feedback
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
useagenthq/useagent#177 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
core: RAC_LLM_OPTIONS_DEFAULT.min_p disagrees with the IDL's annotated defaultCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug core p3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
RunanywhereAI/runanywhere-sdks#1083 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
fix(scoring): split a provider/model AGENT_MODEL before the judge and chaos fallbacks use itĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
kubernetes-sigs/devops-bench#290 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100