{
"title": "agent.mock.Agent",
"description": "A validated Mock Agent with its computed content-addressed ID.",
"type": "object",
"properties": {
"error": {
"description": "If true, the mock client will return an error instead of a response.",
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"omitempty": true
},
"error_probability": {
"description": "Probability (0-100) that the mock returns an error mid-stream.\nRequires `error` to be `Some(true)`.",
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 255
},
{
"type": "null"
}
],
"omitempty": true
},
"id": {
"description": "The deterministic content-addressed ID (22-character base62 string).",
"type": "string"
},
"mcp_servers": {
"description": "MCP servers the agent can connect to.",
"anyOf": [
{
"type": "array",
"items": {
"$ref": "agent.McpServer"
}
},
{
"type": "null"
}
],
"omitempty": true
},
"mode": {
"description": "Mock agent mode. Defaults to `default`.",
"anyOf": [
{
"$ref": "agent.mock.Mode"
},
{
"type": "null"
}
],
"omitempty": true
},
"output_mode": {
"description": "The output mode for vector completions. Ignored for agent completions.",
"$ref": "agent.mock.OutputMode"
},
"top_logprobs": {
"description": "Number of top log probabilities to return (2-20).\n\n**Vector completions only.** Ignored for agent completions.",
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 18446744073709551615
},
{
"type": "null"
}
],
"omitempty": true
},
"upstream": {
"description": "The upstream provider marker.",
"$ref": "agent.mock.Upstream"
}
}
}