Construct a json agent from an LLM and tools.
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| Name | Type | Description |
|---|---|---|
llm* | BaseLanguageModel | The language model to use. |
toolkit* | JsonToolkit | The toolkit to use. |
callback_manager | Optional[BaseCallbackManager] | Default: NoneThe callback manager to use. Default is None. |
prefix | str | Default: JSON_PREFIXThe prefix to use. Default is JSON_PREFIX. |
suffix | str | Default: JSON_SUFFIXThe suffix to use. Default is JSON_SUFFIX. |
format_instructions | Optional[str] | Default: NoneThe format instructions to use. Default is None. |
input_variables | Optional[List[str]] | Default: NoneThe input variables to use. Default is None. |
verbose | bool | Default: FalseWhether to print verbose output. Default is False. |
agent_executor_kwargs | Optional[Dict[str, Any]] | Default: NoneOptional additional arguments for the agent executor. |
kwargs | Any | Default: {}Additional arguments for the agent. |