> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Additional Context

> Demonstrates adding custom `additional_context` and resolving placeholders at run time through Team context resolution.

```python additional_context.py theme={null}
"""
Additional Context
=================

Demonstrates adding custom `additional_context` and resolving placeholders at
run time through Team context resolution.
"""

from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.team import Team

# ---------------------------------------------------------------------------
# Create Members
# ---------------------------------------------------------------------------
ops_agent = Agent(
    name="Ops Copilot",
    model=OpenAIResponses(id="gpt-5-mini"),
    instructions=[
        "Follow operational policy and include ownership guidance.",
    ],
)


# ---------------------------------------------------------------------------
# Create Team
# ---------------------------------------------------------------------------
policy_team = Team(
    name="Policy Team",
    model=OpenAIResponses(id="gpt-5-mini"),
    members=[ops_agent],
    additional_context=(
        "The requester is a {role} in the {region}. Use language suitable for an "
        "internal process update and include owner + timeline whenever possible."
    ),
    resolve_in_context=True,
    dependencies={"role": "support lead", "region": "EMEA"},
    instructions=["Answer as a practical operational policy assistant."],
    markdown=True,
)


# ---------------------------------------------------------------------------
# Run Team
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    policy_team.print_response(
        "A partner asked for a temporary extension on compliance docs.",
        stream=True,
    )
```

## Run the Example

<Snippet file="create-venv-step.mdx" />

**1. Install dependencies**

```bash theme={null}
uv pip install -U agno openai
```

**2. Export your OpenAI API key**

```bash Mac/Linux theme={null}
export OPENAI_API_KEY="your_openai_api_key_here"
```

```bash Windows theme={null}
$Env:OPENAI_API_KEY="your_openai_api_key_here"
```

**3. Run the example**

Save the code above as `additional_context.py`, then run:

```bash theme={null}
python additional_context.py
```

Full source: [cookbook/03\_teams/09\_context\_management/additional\_context.py](https://github.com/agno-agi/agno/blob/v3.0.4/cookbook/03_teams/09_context_management/additional_context.py)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.