Codex.Voice.AgentWorkflow (Codex SDK v0.7.2)

Copy Markdown View Source

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)

Summary

Functions

Create a new agent workflow.

Types

t()

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

Functions

new(agent, opts \\ [])

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

Create a new agent workflow.