oas2mcp.agent.enhancer.tools

Enhancer-supporting tools for the operation enhancement workflow.

Functions

get_current_operation_key(→ str | None)

Return the current operation key being enhanced.

list_remaining_operation_keys(→ list[str])

List operation keys that still need enhancement.

Module Contents

oas2mcp.agent.enhancer.tools.get_current_operation_key(state: oas2mcp.agent.state.OpenApiEnhancementState) str | None[source][source]

Return the current operation key being enhanced.

Parameters:

state – The current agent state.

Returns:

The current operation key, if present.

oas2mcp.agent.enhancer.tools.list_remaining_operation_keys(state: oas2mcp.agent.state.OpenApiEnhancementState) list[str][source][source]

List operation keys that still need enhancement.

Parameters:

state – The current agent state.

Returns:

A list of remaining operation keys.