mirror of
https://github.com/hanzoai/papers.git
synced 2026-10-30 14:58:42 +00:00
47 lines
996 B
TeX
47 lines
996 B
TeX
\section{Complete Layer Interface Specifications}
|
|
|
|
\label{app:interfaces}
|
|
|
|
\subsection{ToolCallRequest Schema}
|
|
|
|
\begin{verbatim}
|
|
ToolCallRequest {
|
|
call_id: UUID
|
|
tool_name: string
|
|
parameters: Map<string, JSON>
|
|
context: ExecutionContext
|
|
timeout_ms: uint32 // default: 30000
|
|
idempotency: IdempotencyClass // SAFE | IDEMPOTENT | UNSAFE
|
|
}
|
|
|
|
ExecutionContext {
|
|
session_id: UUID
|
|
agent_id: string
|
|
user_id: UUID
|
|
tier: TierLevel // T0..T4
|
|
trace_id: UUID
|
|
capabilities: CapabilitySet
|
|
}
|
|
\end{verbatim}
|
|
|
|
\subsection{TierTransition Protocol}
|
|
|
|
\begin{verbatim}
|
|
TierTransitionRequest {
|
|
session_id: UUID
|
|
from_tier: TierLevel
|
|
to_tier: TierLevel
|
|
reason: TransitionReason
|
|
context_bundle: bytes // CBOR-encoded, AES-256-GCM
|
|
budget_usd: float64
|
|
}
|
|
|
|
TierTransitionResponse {
|
|
success: bool
|
|
environment: ExecutionEnvironment
|
|
migration_ms: uint32
|
|
estimated_cost_usd: float64
|
|
}
|
|
\end{verbatim}
|
|
|