Expand description
Agent backend wiring split into provider-specific submodules.
This module keeps the public API stable while delegating command building
and response parsing to focused files under infra/agent/ using the
standard agent.rs + agent/ module layout.
Structs§
- Build
Command Request - Request payload used to build provider transport commands.
- OneShot
Request - Input payload for one isolated prompt that prefers structured protocol output.
- OneShot
Submission - Parsed result returned by one isolated prompt execution.
- Parsed
Response - Parsed agent response including content text and usage statistics.
- Prompt
Preparation Request - Shared prompt preparation input for one transport turn.
- Real
Agent Availability Probe - Production availability probe backed by
PATHexecutable discovery. - Static
Agent Availability Probe - Availability probe that returns one caller-provided snapshot.
Enums§
- Agent
Backend Error - Error type for backend setup and command construction failures.
- Agent
Transport - Transport runtime used to execute turns for one backend.
- Instruction
Delivery Mode - Prompt-shaping mode used for one app-server turn attempt.
Traits§
- Agent
Availability Probe - Detects which provider CLIs are locally runnable on the current machine.
- Agent
Backend - Builds and configures external agent CLI commands.
Functions§
- build_
command_ stdin_ payload - Builds one optional stdin payload for providers that stream prompts instead of sending them through argv.
- cleanup_
session_ worktree_ artifacts - Removes provider-owned worktree artifacts that are derived from one session folder.
- compact_
codex_ progress_ message - Maps a Codex item type to a compact progress message for the UI.
- create_
app_ server_ client - Returns the app-server client for the selected provider when applicable.
- create_
backend - Creates the backend implementation for the selected agent provider.
- diff_
fence - Builds a Markdown code-fence delimiter long enough to safely wrap an arbitrary prompt payload.
- executable_
name - Returns the CLI executable name used by the provided agent kind.
- is_
app_ server_ thought_ chunk - Returns whether one app-server assistant chunk should be treated as thought text instead of transcript output.
- is_
codex_ completion_ status_ message - Returns whether a Codex
agent_messageis a synthetic completion status. - normalize_
instruction_ conversation_ id - Normalizes one provider-native conversation id for persisted bootstrap reuse tracking.
- parse_
response - Parses provider output and returns final response content and usage stats.
- parse_
stream_ output_ line - Parses one stream line into incremental text and content classification.
- parse_
turn_ response - Parses one final assistant payload strictly against the shared protocol and normalizes it for the active request profile.
- plan_
app_ server_ instruction_ delivery - Plans how one app-server turn should deliver Agentty’s instruction contract.
- prepare_
prompt_ text - Applies transcript replay and protocol instructions to one prompt.
- protocol_
schema_ instruction_ mode - Returns whether bootstrap prompts should include schema text for the selected provider.
- provider_
kind_ for_ model - Parses one app-server model string into its routing provider kind.
- submit_
one_ shot - Executes one isolated prompt and returns the parsed response.
- submit_
one_ shot_ with_ app_ server_ client - Executes one isolated prompt through the shared app-server transport.
- submit_
one_ shot_ with_ backend - Executes one isolated prompt using the provided backend.
- transport_
mode - Returns transport mode for the selected provider.