> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate Prp • AI Agent SDK

> generate_prp: Generate a Product Requirements Prompt (PRP) for a feature.

# generate\_prp

Method

> This is a method of the [**ContextEngineerProtocol**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/ContextEngineerProtocol.md) class in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

Generate a Product Requirements Prompt (PRP) for a feature.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def generate_prp(feature_request: str, context_analysis: Optional[Dict[str, Any]]) -> str
```

## Parameters

**feature\_request** `str` *required*

Description of the feature to implement

**context\_analysis** `Optional`

Optional codebase analysis to include

### Returns

**Returns** `str`

Comprehensive PRP document as string

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/protocols.py#L203)
>
> `praisonaiagents/agent/protocols.py` at line 203


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.