Find answers from the community

Updated 3 days ago

Function Calling Agent Worker

Hey! Am I the only one to use FunctionCallingAgentWorker ?

Got it from a LLama notebook and its working well but impossible to put my hand on some docs - wondering if I should use something else instead!

Thanks for the help 🙏
S
L
7 comments
can I run a FunctionAgent with a query engine tool?
im creating a FunctionAgent with bedrock converse, haiku as a model and creating a queryenginetool with an index.

When I send a query I get the following, pay attention to the ToolOutput:

AgentOutput(response=ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, additional_kwargs={'tool_calls': [], 'tool_call_id': [], 'status': []}, blocks=[TextBlock(block_type='text', text='\n\nDisculpe, pero no pude encontrar información específica sobre las instrucciones para licitantes de ELEA. Para obtener detalles precisos sobre el pliego de servicios, le recomiendo:\n\n- Contactar directamente con el departamento de licitaciones de ELEA\n- Revisar los documentos oficiales de la convocatoria\n- Solicitar la información completa de los requisitos de licitación\n\n¿Podría proporcionarme más contexto sobre esta licitación específica? Estoy disponible para ayudarle a encontrar la información que necesita.')]), tool_calls=[ToolCallResult(tool_name='santex_data', tool_kwargs={'input': 'instrucciones licitantes pliego servicios ELEA'}, tool_id='tooluse_kMT9qRBNTEi6eFj1KuelIA', tool_output=ToolOutput(content="'NoneType' object has no attribute 'search'", tool_name='santex_data', raw_input={'input': 'instrucciones licitantes pliego servicios ELEA'}, raw_output="'NoneType' object has no attribute 'search'", is_error=True), return_direct=False)], raw={'contentBlockDelta': {'delta': {'text': ' que necesita.'}, 'contentBlockIndex': 0}}, current_agent_name='Agent')

the queryenginetool is not None so I dont fully understand why it is giving this error.
I think its complaining about your vector store?
Does query_engine.query("test") work?
Are you using qdrant? You'll have to pass in both the client and async client

Plain Text
from qdrant_client import QdrantClient AsyncQdrantClient 

QdrantVectorStore(..., client=QdrantClient(..), aclient=AsyncQdrantClient(...))
yes I am using qdrant, must be that!
the query engine does work, ill pass the async client and try again, thanks!
Add a reply
Sign up and join the conversation on Discord