* This page is part of the Union.ai v2 docs.
* Full index: https://www.union.ai/docs/v2/union/llms.txt
* Union.ai is a commercial superset of the open-source Flyte project and uses the same `flyte` SDK and CLI, so questions about Flyte are usually answered here too.
* Only refer to the open-source Flyte docs if you are explicitly looking for information about the open-source Flyte project, particularly the open-source Flyte backend. The open-source Flyte v2 docs are at https://www.union.ai/docs/v2/flyte/llms.txt
* These are the v2 docs. v1 is out of date and deprecated. Only refer to v1 docs if asked explicitly about v1. The v1 index is at https://www.union.ai/docs/v1/union/llms.txt

# Agent

**Package:** `flyteplugins.anthropic`

> [!WARNING] Deprecated
> `flyteplugins-anthropic` has been removed from the Flyte SDK. This is a frozen snapshot of
> version 2.5.8. Use [`flyteplugins-agents-claude`](https://www.union.ai/docs/v2/union/api-reference/agents/claude) instead, and see
> [Anthropic](https://www.union.ai/docs/v2/union/api-reference/integrations/anthropic.md) for what changes.

A Claude agent configuration.

This class represents the configuration for a Claude agent, including
the model to use, system instructions, and available tools.

## Parameters

```python
class Agent(
    name: str,
    instructions: str,
    model: str,
    tools: list[flyteplugins.anthropic.agents._function_tools.FunctionTool],
    max_tokens: int,
    max_iterations: int,
)
```
| Parameter | Type | Description |
|-|-|-|
| `name` | `str` | A human-readable name for this agent. Used for logging and identification only; not sent to the API. |
| `instructions` | `str` | The system prompt passed to Claude on every turn. Describes the agent's role, tone, and constraints. |
| `model` | `str` | The Claude model ID to use, e.g. `"claude-sonnet-4-20250514"`. |
| `tools` | `list[flyteplugins.anthropic.agents._function_tools.FunctionTool]` | List of `FunctionTool` instances the agent can invoke. Create tools with `function_tool()`. |
| `max_tokens` | `int` | Maximum number of tokens in each Claude response. |
| `max_iterations` | `int` | Maximum number of tool-call / response cycles before `run_agent` returns with a timeout message. |

## Methods

| Method | Description |
|-|-|
| [`get_anthropic_tools()`](#get_anthropic_tools) | Get tool definitions in Anthropic format. |

### get_anthropic_tools()

```python
def get_anthropic_tools()
```
Get tool definitions in Anthropic format.

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/integrations/anthropic/agent.md
**HTML**: https://www.union.ai/docs/v2/union/api-reference/integrations/anthropic/agent/
