# Agent

The agent module provides `FastroAgent`, a wrapper around PydanticAI's Agent with automatic cost calculation, distributed tracing, and a consistent response format.

## FastroAgent

::: fastroai.agent.FastroAgent
    options:
      show_root_heading: true
      show_source: false
      members:
        - __init__
        - run
        - run_stream
        - as_step
        - agent

## AgentConfig

::: fastroai.agent.AgentConfig
    options:
      show_root_heading: true
      show_source: false

## ChatResponse

::: fastroai.agent.ChatResponse
    options:
      show_root_heading: true
      show_source: false

## StreamChunk

::: fastroai.agent.StreamChunk
    options:
      show_root_heading: true
      show_source: false

## AgentStepWrapper

::: fastroai.agent.AgentStepWrapper
    options:
      show_root_heading: true
      show_source: false

---

[← API Overview](index.md){ .md-button } [Pipelines →](pipelines.md){ .md-button .md-button--primary }
