Description
Using Anthropic and Brave Search on my end, what was observed
- The
researcher agent keeps calling the tool with missing args, namely enter into like a unrecoverable loop.
- Tried many times, even there was once that it does pass to the
writer agent, and then the writer call the tools with empty args again and again.
Any thoughts?
Reproduction
import os
from typing import cast
from dotenv import load_dotenv
from llama_index.core.agent.workflow import (
AgentOutput,
AgentWorkflow,
FunctionAgent,
ToolCall,
ToolCallResult,
)
from llama_index.core.workflow import (
Context,
)
from llama_index.llms.anthropic import Anthropic
from llama_index.tools.brave_search import BraveSearchToolSpec
from rich.console import Console
load_dotenv()
brave_search_tool_spec = BraveSearchToolSpec(
api_key=cast(str, os.getenv("BRAVE_SEARCH_API_KEY"))
)
search_web = brave_search_tool_spec.to_tool_list()[0]
llm = Anthropic(
model="claude-3-7-sonnet-latest",
# temperature=1.0,
# max_tokens=1024,
)
# rest are same as the exmple
Output
Following keep repeating as if it never ends
🔧 Tool Result (record_notes):
Arguments: {'notes_title': 'History of the World Wide Web'}
Output: record_notes() missing 1 required positional argument: 'notes'
Dependencies
llama-cloud 0.1.23
llama-cloud-services 0.6.24
llama-index 0.12.38
llama-index-agent-openai 0.4.8
llama-index-cli 0.4.1
llama-index-core 0.12.38
llama-index-embeddings-openai 0.3.1
llama-index-indices-managed-llama-cloud 0.7.1
llama-index-llms-anthropic 0.6.19
llama-index-llms-openai 0.3.44
llama-index-multi-modal-llms-openai 0.4.3
llama-index-program-openai 0.3.1
llama-index-question-gen-openai 0.3.0
llama-index-readers-file 0.4.8
llama-index-readers-llama-parse 0.4.0
llama-index-tools-brave-search 0.3.0
llama-parse 0.6.24
Description
Using
AnthropicandBrave Searchon my end, what was observedresearcheragent keeps calling the tool with missing args, namely enter into like a unrecoverable loop.writeragent, and then thewritercall the tools with empty args again and again.Any thoughts?
Reproduction
Output
🔧 Tool Result (record_notes): Arguments: {'notes_title': 'History of the World Wide Web'} Output: record_notes() missing 1 required positional argument: 'notes'Dependencies