ag-protocol 0.12.7

Agentty is an ADE (Agentic Development Environment) for structured, controllable AI-assisted software development.
Documentation
//! Shared Agentty protocol models, schema helpers, and prompt payloads.
//!
//! This crate contains the transport-neutral wire contracts used between
//! Agentty frontends, session workflows, and provider adapters. It
//! intentionally avoids depending on the main `agentty` crate so future
//! frontends can reuse protocol parsing and turn-prompt serialization without
//! pulling in TUI state.

mod envelope;
mod model;
mod parse;
mod prompt;
mod question;
mod schema;

pub use envelope::{
    ProtocolSchemaInstructionMode, build_protocol_repair_prompt, prepend_protocol_instructions,
    prepend_protocol_refresh_reminder,
};
pub use model::{
    AgentResponse, AgentResponseParseError, AgentResponseSummary, ProtocolRequestProfile,
};
pub use parse::{
    format_protocol_parse_debug_details, normalize_turn_response, parse_agent_response_strict,
};
pub use prompt::{
    TurnPrompt, TurnPromptAttachment, TurnPromptContentPart, TurnPromptTextSource,
    render_prompt_text_for_agent, split_turn_prompt_content,
};
pub use question::QuestionItem;
pub use schema::{
    agent_response_json_schema_json, agent_response_output_schema,
    agent_response_output_schema_json,
};