|
20 | 20 | "StatusCurrentOperation", |
21 | 21 | "StatusCurrentOperationLlm", |
22 | 22 | "StatusCurrentOperationToolUse", |
| 23 | + "StatusMcpIntegrationStatus", |
23 | 24 | "StatusOutputs", |
24 | 25 | "StatusUsedEnvironment", |
25 | 26 | ] |
@@ -296,6 +297,39 @@ class StatusCurrentOperation(BaseModel): |
296 | 297 | tool_use: Optional[StatusCurrentOperationToolUse] = FieldInfo(alias="toolUse", default=None) |
297 | 298 |
|
298 | 299 |
|
| 300 | +class StatusMcpIntegrationStatus(BaseModel): |
| 301 | + """ |
| 302 | + MCPIntegrationStatus represents the status of a single MCP integration |
| 303 | + within an agent execution context |
| 304 | + """ |
| 305 | + |
| 306 | + id: Optional[str] = None |
| 307 | + """id is the unique name of the MCP integration""" |
| 308 | + |
| 309 | + failure_message: Optional[str] = FieldInfo(alias="failureMessage", default=None) |
| 310 | + """ |
| 311 | + failure_message contains the reason the MCP integration failed to connect or |
| 312 | + operate |
| 313 | + """ |
| 314 | + |
| 315 | + name: Optional[str] = None |
| 316 | + """name is the unique name of the MCP integration (e.g., "linear", "notion")""" |
| 317 | + |
| 318 | + phase: Optional[ |
| 319 | + Literal[ |
| 320 | + "MCP_INTEGRATION_PHASE_UNSPECIFIED", |
| 321 | + "MCP_INTEGRATION_PHASE_INITIALIZING", |
| 322 | + "MCP_INTEGRATION_PHASE_READY", |
| 323 | + "MCP_INTEGRATION_PHASE_FAILED", |
| 324 | + "MCP_INTEGRATION_PHASE_UNAVAILABLE", |
| 325 | + ] |
| 326 | + ] = None |
| 327 | + """phase is the current connection/health phase""" |
| 328 | + |
| 329 | + warning_message: Optional[str] = FieldInfo(alias="warningMessage", default=None) |
| 330 | + """warning_message contains warnings (e.g., rate limiting, degraded performance)""" |
| 331 | + |
| 332 | + |
299 | 333 | class StatusOutputs(BaseModel): |
300 | 334 | bool_value: Optional[bool] = FieldInfo(alias="boolValue", default=None) |
301 | 335 |
|
@@ -355,6 +389,14 @@ class Status(BaseModel): |
355 | 389 | judgement: Optional[str] = None |
356 | 390 | """judgement is the judgement of the agent run produced by the judgement prompt.""" |
357 | 391 |
|
| 392 | + mcp_integration_statuses: Optional[List[StatusMcpIntegrationStatus]] = FieldInfo( |
| 393 | + alias="mcpIntegrationStatuses", default=None |
| 394 | + ) |
| 395 | + """ |
| 396 | + mcp_integration_statuses contains the status of all MCP integrations used by |
| 397 | + this agent execution |
| 398 | + """ |
| 399 | + |
358 | 400 | mode: Optional[AgentMode] = None |
359 | 401 | """ |
360 | 402 | mode is the current operational mode of the agent execution. This is set by the |
|
0 commit comments