From c9f2ab5ac9b2aa2d7b828ef1f5ce3d673af720ae Mon Sep 17 00:00:00 2001 From: jsxz Date: Sun, 22 Mar 2026 09:35:47 +0800 Subject: [PATCH] Update overview.mdx --- context/agent/overview.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/context/agent/overview.mdx b/context/agent/overview.mdx index def54f150..b96570326 100644 --- a/context/agent/overview.mdx +++ b/context/agent/overview.mdx @@ -53,14 +53,14 @@ You are a famous short story writer asked to write for a magazine ``` -By default, instructions are not wrapped in `` tags. If you prefer to wrap instructions in XML tags (for example, when using models that benefit from XML structure), set `add_instruction_tags=True`: +By default, instructions are not wrapped in `` tags. If you prefer to wrap instructions in XML tags (for example, when using models that benefit from XML structure), set `use_instruction_tags=True`: ```python agent = Agent( model=OpenAIResponses(id="gpt-5.2"), description="You are a famous short story writer", instructions=["Always write 2 sentence stories."], - add_instruction_tags=True, # Instructions will be wrapped in tags + use_instruction_tags=True, # Instructions will be wrapped in tags ) ``` @@ -73,7 +73,7 @@ The Agent creates a default system message that can be customized using the foll | -------------------------------- | ----------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `description` | `str` | `None` | A description of the Agent that is added to the start of the system message. | | `instructions` | `List[str]` | `None` | List of instructions added to the system prompt in `` tags. Default instructions are also created depending on values for `markdown`, `expected_output` etc. | -| `add_instruction_tags` | `bool` | `True` | If True, wrap the instructions in `` tags. Set to False to pass instructions as-is without XML tags. | +| `use_instruction_tags` | `bool` | `True` | If True, wrap the instructions in `` tags. Set to False to pass instructions as-is without XML tags. | | `additional_context` | `str` | `None` | Additional context added to the end of the system message. | | `expected_output` | `str` | `None` | Provide the expected output from the Agent. This is added to the end of the system message. | | `markdown` | `bool` | `False` | Add an instruction to format the output using markdown. |