context is a dictionary that contains a set of functions (or dependencies) that are resolved before the agent runs.
Context is a way to inject dependencies into the description and instructions of the agent.You can use context to inject memories, dynamic few-shot examples, “retrieved” documents, etc.
agent_context.py
Adding the entire context to the user message
Setadd_context=True to add the entire context to the user message. This way you don’t have to manually add the context to the instructions.
agent_context_instructions.py