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 directoryprovider- LLM provider to usemodel- Optional model overridehost- Host address to bind toport- Port number to listen on