oas2mcp.agent.state¶
Typed state definitions for oas2mcp agents.
- Purpose:
Define the state carried through stateful OpenAPI enhancement workflows.
- Design:
Use
TypedDictbecause LangChain v1 custom agent state requires it.Keep the state centered on the source URL and progressively enriched API understanding.
Store deterministic catalog artifacts plus enhancer results so they can later be exported into an enhanced spec/config surface.
Examples
state: OpenApiEnhancementState = {
"source_url": "https://example.com/openapi.json",
}
Classes¶
State carried through the OpenAPI enhancement workflow. |
|
Serializable enhancer result stored in agent state. |
Module Contents¶
- class oas2mcp.agent.state.OpenApiEnhancementState[source][source]¶
Bases:
langchain.agents.AgentStateState carried through the OpenAPI enhancement workflow.
- enhanced_operations: NotRequired[list[OperationEnhancementRecord]][source][source]¶