# parse_agent_response

> **Function** in `langchain_aws`

📖 [View in docs](https://reference.langchain.com/python/langchain-aws/agents/utils/parse_agent_response)

Parses the raw response from Bedrock Agent

## Signature

```python
parse_agent_response(
    response: Any,
) -> OutputType
```

## Description

Returns
Either a BedrockAgentAction or a BedrockAgentFinish

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `response` | `Any` | Yes | The raw response from Bedrock Agent |

---

[View source on GitHub](https://github.com/langchain-ai/langchain-aws/blob/ea22fe3d744a3248b0b74ed555e9c34844b35a54/libs/aws/langchain_aws/agents/utils.py#L93)