> ## 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.

# Make Array Error • AI Agent SDK

> make_array_error: Create a helpful error message for invalid array format.

# make\_array\_error

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**parse\_utils**](../modules/parse_utils) module.

Create a helpful error message for invalid array format.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def make_array_error(param_name: str, value: list, expected_format: str) -> ValueError
```

## Parameters

<ParamField query="param_name" type="str" required={true}>
  Name of the parameter
</ParamField>

<ParamField query="value" type="list" required={true}>
  Invalid array value
</ParamField>

<ParamField query="expected_format" type="str" required={true}>
  Description of expected format
</ParamField>

### Returns

<ResponseField name="Returns" type="ValueError">
  ValueError with helpful message
</ResponseField>

## Uses

* `ValueError`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/config/parse_utils.py#L237">
  `praisonaiagents/config/parse_utils.py` at line 237
</Card>
