# create_json_agent

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/agent_toolkits/json/base/create_json_agent)

Construct a json agent from an LLM and tools.

## Signature

```python
create_json_agent(
    llm: BaseLanguageModel,
    toolkit: JsonToolkit,
    callback_manager: Optional[BaseCallbackManager] = None,
    prefix: str = JSON_PREFIX,
    suffix: str = JSON_SUFFIX,
    format_instructions: Optional[str] = None,
    input_variables: Optional[List[str]] = None,
    verbose: bool = False,
    agent_executor_kwargs: Optional[Dict[str, Any]] = None,
    **kwargs: Any = {},
) -> AgentExecutor
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `llm` | `BaseLanguageModel` | Yes | The language model to use. |
| `toolkit` | `JsonToolkit` | Yes | The toolkit to use. |
| `callback_manager` | `Optional[BaseCallbackManager]` | No | The callback manager to use. Default is None. (default: `None`) |
| `prefix` | `str` | No | The prefix to use. Default is JSON_PREFIX. (default: `JSON_PREFIX`) |
| `suffix` | `str` | No | The suffix to use. Default is JSON_SUFFIX. (default: `JSON_SUFFIX`) |
| `format_instructions` | `Optional[str]` | No | The format instructions to use. Default is None. (default: `None`) |
| `input_variables` | `Optional[List[str]]` | No | The input variables to use. Default is None. (default: `None`) |
| `verbose` | `bool` | No | Whether to print verbose output. Default is False. (default: `False`) |
| `agent_executor_kwargs` | `Optional[Dict[str, Any]]` | No | Optional additional arguments for the agent executor. (default: `None`) |
| `kwargs` | `Any` | No | Additional arguments for the agent. (default: `{}`) |

## Returns

`AgentExecutor`

The agent executor.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/agent_toolkits/json/base.py#L17)