Skip to content

Commit 400bcad

Browse files
authored
fix: Refine usage guidelines for actor run tools and clarify handling of widgets (#774)
1 parent f66669e commit 400bcad

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/tools/core/call_actor_common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export function buildCallActorDescription(params: CallActorDescriptionParams): s
103103
- For a live progress widget the user can watch, call ${HelperTools.ACTOR_CALL_WIDGET} instead.
104104
- To check status or wait for completion, poll ${HelperTools.ACTOR_RUNS_GET} with the runId.
105105
- Once the run completes, use ${HelperTools.ACTOR_OUTPUT_GET} tool with the datasetId to fetch full results.
106+
- If the Actor name needs resolving first, use ${HelperTools.STORE_SEARCH} (silent). Do NOT use ${HelperTools.STORE_SEARCH_WIDGET} for name resolution.
106107
- Use dedicated Actor tools when available for better experience
107108
`);
108109
} else {

src/tools/core/get_actor_run_common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ The results will include run metadata (status, timestamps), performance stats, a
2727
USAGE:
2828
- Use when the user asks about a specific run's status or details.
2929
- Use to check the status of a run started with call-actor (e.g., before fetching output).
30-
- If a visual progress widget is available in this session, prefer that tool for UI rendering.
3130
- Returns pure data with no UI.
31+
- If \`${HelperTools.ACTOR_CALL_WIDGET}\` or \`${HelperTools.ACTOR_RUNS_GET_WIDGET}\` are available in this session, do NOT call this after them — those render self-polling widgets, additional polling here is forbidden duplicate work.
3232
3333
USAGE EXAMPLES:
3434
- user_input: Show details of run y2h7sK3Wc (where y2h7sK3Wc is an existing run)

0 commit comments

Comments
 (0)