Skip to main content

Module agent_api

Module agent_api 

Source
Expand description

Agent Facade API

High-level, ergonomic API for using A3S Code as an embedded library.

§Example

use a3s_code_core::Agent;

let agent = Agent::new("agent.hcl").await?;
let session = agent.session("/my-project", None)?;
let result = session.send("Explain the auth module", None).await?;
println!("{}", result.text);

Structs§

Agent
High-level agent facade.
AgentSession
Workspace-bound session. All LLM and tool operations happen here.
SessionOptions
Optional per-session overrides.
ToolCallResult
Result of a direct tool execution (no LLM).