Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions context/agent/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Context engineering is the process of designing and controlling the information
In practice, building context comes down to one question: "Which information is most likely to achieve the desired outcome?"

The context of an Agno agent consists of the following:
- **System message**: The system message is the main context that is sent to the agent, including all additional context
- **System message**: The system message is the main context that is sent to the agent, including all additional context.
- **User message**: The user message is the message that is sent to the agent.
- **Chat history**: The chat history is the history of the conversation between the agent and the user.
- **Additional input**: Any few-shot examples or other additional input that is added to the context.
Expand Down Expand Up @@ -199,6 +199,7 @@ agent = Agent(
- movies: contains information about movies from IMDB.
"""),
)

agent.print_response("What is the average rating of movies?", stream=True)
```

Expand All @@ -211,9 +212,10 @@ from agno.agent import Agent
from agno.tools.slack import SlackTools

slack_tools = SlackTools(
instructions=["Use `send_message` to send a message to the user. If the user specifies a thread, use `send_message_thread` to send a message to the thread."],
instructions=["Use `send_message` to send a message to the user. If the user specifies a thread, use `send_message_thread` to send a message to the thread."],
add_instructions=True,
)

agent = Agent(
tools=[slack_tools],
)
Expand Down Expand Up @@ -268,9 +270,9 @@ You can manually set the system message using the `system_message` parameter. Th

```python
from agno.agent import Agent
agent.print_response("What is the capital of France?")

agent = Agent(system_message="Share a 2 sentence story about")

agent.print_response("What is the capital of France?")
agent.print_response("Love in the year 12000.")
```

Expand Down Expand Up @@ -379,6 +381,7 @@ agent = Agent(
add_history_to_context=True,
max_tool_calls_from_history=3, # Keep only last 3 tool calls in context
)

agent.print_response("What's the weather in Tokyo?")
agent.print_response("What's the weather in Paris?")
agent.print_response("What's the weather in London?")
Expand Down