Skip to main content

run_agent_server

Function run_agent_server 

Source
pub async fn run_agent_server(
    project_path: &Path,
    provider: ProviderType,
    model: Option<String>,
    host: &str,
    port: u16,
) -> AgentResult<()>
Expand description

Run the agent as a dedicated AG-UI server (headless mode for containers/deployments).

This starts the AG-UI server without interactive stdin, accepting connections from frontends via SSE or WebSocket. The agent processes messages received through the AG-UI protocol.

ยงArguments

  • project_path - Path to the project directory
  • provider - LLM provider to use
  • model - Optional model override
  • host - Host address to bind to
  • port - Port number to listen on