The function call name is not the same in prompt and tools

Open Beginner friendly
#44 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
documentation

Research direction

The issue points to line 96 in samples/python/hosts/multiagent/host_agent.py. Look at the tools list and the prompt text to find the mismatch between send_task and create_task. Update the prompt string to use send_task to match the actual function name, then verify the change by running any related tests or checking the script's behavior.

Written by the indexing model from the issue text.

Description

in tools ,the function tool is named send_task

    tools=[
        self.list_remote_agents,
        self.send_task,
    ], 

but in prompt it is named as create_task

  • For actionable tasks, you can use create_task to assign tasks to remote agents to perform.

https://github.com/google/A2A/blob/b52c2ebb381f2769159af90e35ac975313f59fd4/samples/python/hosts/multiagent/host_agent.py#L96

Dominant language
Jupyter Notebook
Stars
1.8k
Forks
759
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from a2aproject/a2a-samples

All issues in a2aproject/a2a-samples

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.