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

# prompt.toPromptBlocks

```typescript
toPromptBlocks(input: PromptInput): CognitionContentBlock[]
```

Normalize a [PromptInput](https://docs.devin.ai/sdk/reference/prompt/types/PromptInput.md) into the `prompt` array sent on the wire.

## Parameters

**input** `PromptInput` *required*

## Returns

`CognitionContentBlock[]`


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