Skip to main content

WriterChunk

Trait WriterChunk 

Source
pub trait WriterChunk {
    // Required method
    fn primary_id(&self) -> &str;

    // Provided method
    fn agent_tier_aih(&self) -> Option<&str> { ... }
}

Required Methods§

Source

fn primary_id(&self) -> &str

Provided Methods§

Source

fn agent_tier_aih(&self) -> Option<&str>

The spawned agent’s AIH for the agent tier — where the writer derives request_message rows + the agent_ref from the REQUEST (the response chunk no longer carries them). None for the vector/function tiers, which surface these through the chunk stream instead.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl WriterChunk for AgentCompletionChunk

Source§

impl WriterChunk for FunctionExecutionChunk

Source§

fn primary_id(&self) -> &str

Source§

impl WriterChunk for VectorCompletionChunk

Source§

fn primary_id(&self) -> &str

Implementors§