oas2mcp.agent.runtime ===================== .. py:module:: oas2mcp.agent.runtime .. autoapi-nested-parse:: 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. .. rubric:: Examples .. code-block:: python runtime_context = Oas2McpRuntimeContext( source_uri="https://example.com/openapi.json", user_goal="Summarize this API for MCP planning.", ) Classes ------- .. autoapisummary:: oas2mcp.agent.runtime.Oas2McpRuntimeContext Module Contents --------------- .. py:class:: Oas2McpRuntimeContext(/, **data: Any) Bases: :py:obj:`oas2mcp.models.normalized.NormalizedBaseModel` Runtime context shared across ``oas2mcp`` agent workflows. :param None.: :returns: None. :raises None.: .. rubric:: Examples .. code-block:: python runtime_context = Oas2McpRuntimeContext( source_uri="https://example.com/openapi.json", output_style="compact", ) .. py:attribute:: include_mcp_recommendations :type: bool :value: True .. py:attribute:: include_risk_notes :type: bool :value: True .. py:attribute:: notes :type: list[str] :value: None .. py:attribute:: output_style :type: str :value: 'compact' .. py:attribute:: project_name :type: str | None :value: None .. py:attribute:: source_uri :type: str .. py:attribute:: user_goal :type: str | None :value: None