from llama_index.core.readers import SimpleDirectoryReader
agent.update_prompts({"agent_worker:system_prompt": react_system_prompt})
?error: TypeError: FunctionTool.from_defaults() missing 1 required positional argument: 'fn'
pick_func = FunctionTool.from_defaults(async_fn=flight_service.create_pickup_flight_alert)
FunctionTool.from_defaults(fn=callback_function)
def callback_function(request:Request):
resp = request.json()
print(resp)
example:The
schema method is deprecated; use
model_json_schema instead. Deprecated in Pydantic V2.0 to be removed in V3.0.
OpenAIPydanticProgram.from_defaults
but i get lost where to use it, i wanna feed the generated dict to another agent so it can call a functions.Error: Resource averaged_perceptron_tagger not found.
Please use the NLTK Downloader to obtain the resource:
mad/fix-bug
ImportError: cannot import name 'MessageContentText' from 'openai.types.beta.threads' (/llm-test/pythonProject/.venv/lib/python3.12/site-packages/openai/types/beta/threads/__init__.py). Did you mean: 'MessageContentDelta'?