oas2mcp.agent.runtime¶
Shared runtime context for oas2mcp agents.
- Purpose:
Define the runtime context passed into agent executions.
- Design:
Keep runtime context separate from normalized API models.
Use runtime context for per-invocation settings and user intent.
Keep the shape small and easy to evolve.
Examples
runtime_context = Oas2McpRuntimeContext(
source_uri="https://example.com/openapi.json",
user_goal="Summarize this API for MCP planning.",
)
Classes¶
Runtime context shared across |
Module Contents¶
- class oas2mcp.agent.runtime.Oas2McpRuntimeContext(/, **data: Any)[source][source]¶
Bases:
oas2mcp.models.normalized.NormalizedBaseModelRuntime context shared across
oas2mcpagent workflows.- Parameters:
None.
- Returns:
None.
- Raises:
None. –
Examples
runtime_context = Oas2McpRuntimeContext( source_uri="https://example.com/openapi.json", output_style="compact", )