oas2mcp.agent.summarizer.prompts¶
Prompt builders for the catalog summarizer agent.
- Purpose:
Build the prompt text used by the catalog-level summarizer agent.
- Design:
Keep prompt construction deterministic.
Separate the base system prompt from context serialization.
Align the prompt with the
CatalogSummarystructured output model.Use LangChain v1 dynamic prompt middleware for runtime-aware system instructions.
Prioritize conceptual understanding of the API before operational or implementation detail.
Examples
system_prompt = build_catalog_summary_system_prompt()
user_prompt = build_catalog_summary_user_prompt(context)
Functions¶
Build dynamic prompt middleware for the catalog summarizer. |
|
Build deterministic runtime-specific instructions for summary prompts. |
|
Build the base system prompt for the catalog summarizer agent. |
|
Build the user prompt for the catalog summarizer agent. |
Module Contents¶
- oas2mcp.agent.summarizer.prompts.build_catalog_summary_dynamic_prompt()[source][source]¶
Build dynamic prompt middleware for the catalog summarizer.
- Returns:
The LangChain dynamic prompt middleware callable.
- Raises:
None. –
Examples
middleware = build_catalog_summary_dynamic_prompt()
- oas2mcp.agent.summarizer.prompts.build_catalog_summary_runtime_instruction_lines(runtime: oas2mcp.agent.runtime.Oas2McpRuntimeContext) list[str][source][source]¶
Build deterministic runtime-specific instructions for summary prompts.
- oas2mcp.agent.summarizer.prompts.build_catalog_summary_system_prompt() str[source][source]¶
Build the base system prompt for the catalog summarizer agent.
- Parameters:
None.
- Returns:
The system prompt string.
- Raises:
None. –
Examples
prompt = build_catalog_summary_system_prompt()
- oas2mcp.agent.summarizer.prompts.build_catalog_summary_user_prompt(context: oas2mcp.agent.summarizer.context.CatalogSummaryContext) str[source][source]¶
Build the user prompt for the catalog summarizer agent.
- Parameters:
context – The structured summarizer context.
- Returns:
The user prompt string.
- Raises:
None. –
Examples
user_prompt = build_catalog_summary_user_prompt(context)