Agent approvals
AgentToolMetadata
Section titled “AgentToolMetadata”Stable metadata for the agent action being approved.
| Field | Type |
|---|---|
source | AgentToolSource |
kind | AgentToolKind |
label | str |
AgentToolApproval
Section titled “AgentToolApproval”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 |
AgentToolApproval.arguments
Section titled “AgentToolApproval.arguments”arguments() -> AnyAgentToolApprovalDecision
Section titled “AgentToolApprovalDecision”Approval callback return value with HTTP/Rust parity.
| Field | Type | Default |
|---|---|---|
decision | AgentToolApprovalDecisionKind | required |
remember_for_session | bool | False |
message | str | None | None |
AgentToolApprovalDecision.approve
Section titled “AgentToolApprovalDecision.approve”approve( remember_for_session: bool = False,) -> 'AgentToolApprovalDecision'AgentToolApprovalDecision.deny
Section titled “AgentToolApprovalDecision.deny”deny(message: str | None = None) -> 'AgentToolApprovalDecision'Generated from mistralrs-pyo3/mistralrs.pyi.