prebuilt.perplexity.base.prompts¶

Prompt templates for the Perplexity multi-agent system.

This module contains all the prompt templates used by different agents in the Perplexity system. Each prompt follows a structured format with system context, task instructions, input/output formats, and examples.

Functions¶

create_prompt_with_examples(system_prompt, ...)

Helper function to create prompts with a consistent structure.

Module Contents¶

prebuilt.perplexity.base.prompts.create_prompt_with_examples(system_prompt, task_description, input_format, output_format, examples)¶

Helper function to create prompts with a consistent structure.

Parameters:
  • system_prompt (str)

  • task_description (str)

  • input_format (str)

  • output_format (str)

  • examples (list)

Return type:

langchain_core.prompts.ChatPromptTemplate