Skip to main content

update_agent_token_usage

Function update_agent_token_usage 

Source
pub async fn update_agent_token_usage(
    pool: &Pool,
    agent_instance_hierarchy: &str,
    total_tokens: i64,
) -> Result<(), Error>
Expand description

Overwrite an AIH’s most-recent agent-completion total_tokens (last-write-wins snapshot — not a running sum).