Skip to content

fix: set task_id as workflow agent name for traceability#499

Open
wangwangbobo wants to merge 2 commits into
strands-agents:mainfrom
wangwangbobo:fix/workflow-agent-task-id-name
Open

fix: set task_id as workflow agent name for traceability#499
wangwangbobo wants to merge 2 commits into
strands-agents:mainfrom
wangwangbobo:fix/workflow-agent-task-id-name

Conversation

@wangwangbobo

Copy link
Copy Markdown
Contributor

Problem

When using the workflow tool, dynamically created task agents all show as "Strands Agents" in traces, making it impossible to identify which agent produced which output.

Solution

Set the name parameter of dynamically created task agents to their task_id. This allows users to:

  • Identify messages corresponding to specific agents in traces
  • Generate proper input to InteractionsEvaluator in strands/evals SDK
  • Track agent interactions by task_id

Changes

  • Added name=task.get("task_id") to _create_task_agent() in workflow.py

Fixes #469

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] workflow tool: Add task_id as name of the respective agent

1 participant