agents.reflection.promptsΒΆ

Prompts for reflection agents.

FunctionsΒΆ

create_expert_prompt(expertise_config)

Create an expert prompt template.

create_grading_prompt()

Create a grading prompt template.

create_improvement_prompt([include_grading, ...])

Create an improvement prompt template.

create_reflection_prompt()

Create a reflection prompt template.

Module ContentsΒΆ

agents.reflection.prompts.create_expert_prompt(expertise_config)ΒΆ

Create an expert prompt template.

Parameters:

expertise_config (dict)

Return type:

langchain_core.prompts.ChatPromptTemplate

agents.reflection.prompts.create_grading_prompt()ΒΆ

Create a grading prompt template.

Return type:

langchain_core.prompts.ChatPromptTemplate

agents.reflection.prompts.create_improvement_prompt(include_grading=True, improvement_focus='all identified areas')ΒΆ

Create an improvement prompt template.

Parameters:
  • include_grading (bool)

  • improvement_focus (str)

Return type:

langchain_core.prompts.ChatPromptTemplate

agents.reflection.prompts.create_reflection_prompt()ΒΆ

Create a reflection prompt template.

Return type:

langchain_core.prompts.ChatPromptTemplate