agentforce-offline-experimentation-run
БесплатноЗапускает вложенные скриптыНе проверенUse this skill when users want to execute this workflow when a user wants to test how a different LLM model would handle existing Agentforce agent…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
Managing Agentforce Offline Experimentation
When to Use This Skill
Execute this workflow when a user wants to test how a different LLM model would handle existing Agentforce agent conversations. Fetches session traces from Data Cloud STDM, replays prompts via the SFAP AI Gateway REST API with structured tool calling, scores across four metrics (topic agreement, function name accuracy, function argument accuracy via LLM-as-judge, text response quality via LLM-as-judge), and produces a run directory with units.jsonl, results.jsonl, summary.json, and an HTML report. Requires Data Cloud with Agentforce Activity data streaming enabled, an authenticated org, and a target model ID (llmgateway__ prefix for SFAP replay). Estimated runtime: 10-30 minutes for 10 sessions.
Workflow
discover-data-space → verify-stdm-availability → discover-agents → list-available-models (if user needs help choosing) → find-sessions → get-conversation-details → get-llm-step-details → obtain-sfap-token → replay-turn-prompts (scoring happens inline) → generate-run-results → generate-html-report. WORKFLOW GATE: Do not proceed past Phase 0 until org alias (auto-discover from authenticated orgs), agent API name (auto-discover from STDM), and target model ID (ask user) are all confirmed. SFAP JWT expires after ~2 hours. For 20+ session replays, refresh the token between batches. Each SFAP replay call takes ~1-3 seconds; keep under 20 sessions for reasonable wall-clock time (~10-30 minutes).
Critical Constraints
Preconditions:
- Data Cloud is provisioned and enabled in the org (check:
DataCloudProvisioned) - Einstein LLM / GenAI Gateway is configured in the org (check:
EinsteinLlmEnabled) - User has an authenticated session to the target org (check:
OrgAuthenticated)
Operations Reference
Operations grouped by purpose. Use these as the building blocks for the workflows above.
Summary
| Operation | Purpose | Status | Call | Depends on |
|---|---|---|---|---|
discover-data-space |
read | implemented | getAllDataSpaces |
— |
verify-stdm-availability |
validate | implemented | querySql |
discover-data-space |
discover-agents |
read | implemented | querySql |
verify-stdm-availability |
list-available-models |
read | implemented | queryAiModel |
— |
find-sessions |
read | implemented | querySql |
verify-stdm-availability, discover-agents |
get-conversation-details |
read | proposed | querySql |
find-sessions |
get-llm-step-details |
read | proposed | querySql |
get-conversation-details |
obtain-sfap-token |
validate | proposed | — | — |
replay-turn-prompts |
read | proposed | — | get-llm-step-details, obtain-sfap-token |
score-exact-matches |
read | proposed | — | replay-turn-prompts |
judge-function-args |
read | proposed | — | score-exact-matches, obtain-sfap-token |
judge-text-responses |
read | proposed | — | replay-turn-prompts, obtain-sfap-token |
generate-run-results |
write | proposed | — | score-exact-matches, judge-function-args, judge-text-responses |
generate-html-report |
write | proposed | — | generate-run-results |
Dependency graph
graph TD
discover_data_space["discover-data-space (read)"]
verify_stdm_availability["verify-stdm-availability (validate)"]
discover_agents["discover-agents (read)"]
list_available_models["list-available-models (read)"]
find_sessions["find-sessions (read)"]
get_conversation_details["get-conversation-details (read)"]
get_llm_step_details["get-llm-step-details (read)"]
obtain_sfap_token["obtain-sfap-token (validate)"]
replay_turn_prompts["replay-turn-prompts (read)"]
score_exact_matches["score-exact-matches (read)"]
judge_function_args["judge-function-args (read)"]
judge_text_responses["judge-text-responses (read)"]
generate_run_results["generate-run-results (write)"]
generate_html_report["generate-html-report (write)"]
discover_data_space --> verify_stdm_availability
verify_stdm_availability --> discover_agents
verify_stdm_availability --> find_sessions
discover_agents --> find_sessions
find_sessions --> get_conversation_details
get_conversation_details --> get_llm_step_details
get_llm_step_details --> replay_turn_prompts
obtain_sfap_token --> replay_turn_prompts
replay_turn_prompts --> score_exact_matches
score_exact_matches --> judge_function_args
obtain_sfap_token --> judge_function_args
replay_turn_prompts --> judge_text_responses
obtain_sfap_token --> judge_text_responses
score_exact_matches --> generate_run_results
judge_function_args --> generate_run_results
judge_text_responses --> generate_run_results
generate_run_results --> generate_html_report
Read operations
discover-data-space
Discover active Data Cloud data spaces in the org
Call: getAllDataSpaces — status: implemented
discover-agents
Query STDM for distinct ag
Установить agentforce-offline-experimentation-run в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agentforce-offline-experimentation-run?
Use this skill when users want to execute this workflow when a user wants to test how a different LLM model would handle existing Agentforce agent conversations. Trigger when users mention agentforce, offline, experimentation.
Как установить скилл agentforce-offline-experimentation-run?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agentforce-offline-experimentation-run запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic