home/roleplay/prompts-usage-documentation

Prompts Usage Documentation

GPTClaudeGemini··820 copies·updated 2026-07-14
prompts-usage-documentation.prompt
# Prompts Usage Documentation

This section provides an overview of how to effectively use prompts within the LangChain Decorators framework. Prompts are essential for guiding the behavior of language models and customizing their outputs.

## Defining Prompts

Prompts can be defined using the `@llm_prompt` decorator. This allows you to create functions that encapsulate the prompt logic, making it easier to manage and reuse.

### Example

when to use it

Community prompt sourced from the open-source GitHub repo ju-bezdek/langchain-decorators (MIT). A "Prompts Usage Documentation" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

ju-bezdek/langchain-decorators · MIT