From 54231dc1b796a9d1247c9eb5ceaae2e4ff7ab3d9 Mon Sep 17 00:00:00 2001 From: Milo Gu Date: Wed, 11 Feb 2026 23:52:02 +0800 Subject: [PATCH] fix: refine code order and coding style --- context/agent/overview.mdx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/context/agent/overview.mdx b/context/agent/overview.mdx index def54f150..31999a749 100644 --- a/context/agent/overview.mdx +++ b/context/agent/overview.mdx @@ -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. @@ -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) ``` @@ -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], ) @@ -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.") ``` @@ -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?")