Context Management
Examples for instructions, system messages, introduction messages, and context shaping.
| Example | Description |
|---|---|
| Custom Datetime Format | Format the injected time with a matching timezone or offset. |
| Few Shot Learning | Use additional_input with an Agent. |
| Filter Tool Calls From History | Limit historical tool calls sent to the model while preserving full stored runs. |
| Instructions | Manage agent instructions and context. |
| Instructions With State | Example demonstrating how to use a function as instructions for an agent. |
| Introduction Message | Use the introduction parameter to set an initial greeting message. |
| System Message | Customize the agent's system message and role. |