Skip to content

Agent approvals

Stable metadata for the agent action being approved.

Field Type
source AgentToolSource
kind AgentToolKind
label str

Approval request passed to ChatCompletionRequest.agent_approval_callback.

Field Type Default
approval_id str required
session_id str required
round int required
tool AgentToolMetadata required
arguments_json str required
code str | None None
arguments() -> Any

Approval callback return value with HTTP/Rust parity.

Field Type Default
decision AgentToolApprovalDecisionKind required
remember_for_session bool False
message str | None None
approve(
remember_for_session: bool = False,
) -> 'AgentToolApprovalDecision'
deny(message: str | None = None) -> 'AgentToolApprovalDecision'

Generated from mistralrs-pyo3/mistralrs.pyi.