Skip to main content

Crate ag_agent

Crate ag_agent 

Source
Expand description

Agent backend transports and provider-neutral contracts.

This crate owns the agent execution boundary used by Agentty: provider model metadata, turn prompt payloads, CLI/app-server transports, and channel contracts. It intentionally avoids depending on the agentty application crate so provider-specific dependencies compile in a leaf workspace member.

Re-exports§

pub use model::agent::AgentCliInfo;
pub use model::agent::AgentCliVersion;
pub use model::agent::AgentKind;
pub use model::agent::AgentModel;
pub use model::agent::AgentSelection;
pub use model::agent::AgentSelectionMetadata;
pub use model::agent::ReasoningLevel;
pub use model::agent::parse_persisted_session_agent_model;
pub use model::permission::PermissionMode;
pub use model::session::SessionStats;

Modules§

agent
Agent backend wiring split into provider-specific submodules.
app_server
Shared app-server module router.
app_server_router
Provider router for app-server backed session execution.
app_server_transport
Shared stdio JSON-RPC transport utilities for app-server protocols.
channel
Provider-agnostic agent channel module.
model
Agent-domain models shared by provider transports and Agentty.

Structs§

TurnPrompt
Structured prompt payload for one agent turn.
TurnPromptAttachment
One local image attachment referenced from a prompt placeholder.

Enums§

TurnPromptContentPart
Ordered content piece produced when serializing one turn prompt.
TurnPromptTextSource
Source classification for one turn prompt text payload.