oas2mcp.agent.surface.models¶
Structured models for the catalog surface planner agent.
- Purpose:
Define the deterministic input and structured output models used by the catalog-level surface planner. This workflow refines shared FastMCP-facing server instructions, prompts, and resources after per-operation enhancement.
- Design:
Keep these models specific to catalog-level surface planning.
Separate deterministic planning context from LLM-produced surface output.
Preserve a stable, inspectable shape for later export and bootstrapping.
Constrain resource planning to handlers supported by the runtime layer.
Classes¶
Compact operation summary used by the catalog surface planner. |
|
Structured catalog-level surface plan produced by the planner agent. |
|
Deterministic context passed into the catalog surface planner agent. |
|
Catalog-level prompt definition proposed by the surface planner. |
|
Catalog-level resource definition proposed by the surface planner. |
Module Contents¶
- class oas2mcp.agent.surface.models.CatalogSurfaceOperationContext(/, **data: Any)[source][source]¶
Bases:
oas2mcp.models.normalized.NormalizedBaseModelCompact operation summary used by the catalog surface planner.
- class oas2mcp.agent.surface.models.CatalogSurfacePlan(/, **data: Any)[source][source]¶
Bases:
oas2mcp.models.normalized.NormalizedBaseModelStructured catalog-level surface plan produced by the planner agent.
- catalog_prompts: list[CatalogSurfacePromptPlan] = None[source][source]¶
- catalog_resources: list[CatalogSurfaceResourcePlan] = None[source][source]¶
- class oas2mcp.agent.surface.models.CatalogSurfacePlanningContext(/, **data: Any)[source][source]¶
Bases:
oas2mcp.models.normalized.NormalizedBaseModelDeterministic context passed into the catalog surface planner agent.
- default_catalog_prompts: list[CatalogSurfacePromptPlan] = None[source][source]¶
- default_catalog_resources: list[CatalogSurfaceResourcePlan] = None[source][source]¶
- operations: list[CatalogSurfaceOperationContext] = None[source][source]¶
- class oas2mcp.agent.surface.models.CatalogSurfacePromptPlan(/, **data: Any)[source][source]¶
Bases:
oas2mcp.models.normalized.NormalizedBaseModelCatalog-level prompt definition proposed by the surface planner.
- class oas2mcp.agent.surface.models.CatalogSurfaceResourcePlan(/, **data: Any)[source][source]¶
Bases:
oas2mcp.models.normalized.NormalizedBaseModelCatalog-level resource definition proposed by the surface planner.