Skip to main content

insert_request_blob

Function insert_request_blob 

Source
pub async fn insert_request_blob<P: Serialize>(
    pool: &Pool,
    tier: Tier,
    response_id: &str,
    params: &P,
    sender_agent_instance_hierarchy: &str,
    timestamp: i64,
) -> Result<(), Error>
Expand description

INSERT the request blob. Called once per stream, on first chunk arrival. Request blobs don’t carry agent_instance_hierarchy — they’re shared across every agent that participates in the stream. The per-agent “the request was made for me” linkage lives in objectiveai.messages and is written separately by insert_request_messages_row the first time each agent appears in the chunk’s row iterator.