agents.structured.promptsΒΆ
Prompt templates for structured output agents.
This module provides prompt templates used by structured agents to guide the conversion of unstructured text into structured formats.
FunctionsΒΆ
|
Create a prompt with custom context for specific extraction needs. |
|
Get the appropriate prompt for a given output model. |
Module ContentsΒΆ
- agents.structured.prompts.create_contextual_prompt(additional_context)ΒΆ
Create a prompt with custom context for specific extraction needs.
- Parameters:
additional_context (str) β Additional instructions for extraction
- Returns:
ChatPromptTemplate with the custom context
- Return type:
langchain_core.prompts.ChatPromptTemplate
- agents.structured.prompts.get_prompt_for_model(model_name, custom_context=None)ΒΆ
Get the appropriate prompt for a given output model.