# `Codex.Voice.AgentWorkflow`
[🔗](https://github.com/nshkrdotcom/codex_sdk/blob/v0.18.1/lib/codex/voice/agent_workflow.ex#L1)

A workflow that wraps a Codex.Agent for voice interactions.

This allows using standard agents with the voice pipeline.

## Example

    agent = %Codex.Agent{
      name: "Assistant",
      instructions: "Be helpful and concise."
    }

    workflow = AgentWorkflow.new(agent)
    pipeline = Pipeline.new(workflow: workflow)

# `t`

```elixir
@type t() :: %Codex.Voice.AgentWorkflow{
  agent: Codex.Agent.t(),
  context: map(),
  history: list()
}
```

# `new`

```elixir
@spec new(
  Codex.Agent.t(),
  keyword()
) :: t()
```

Create a new agent workflow.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
