create_json_agent(
llm: BaseLanguageModel,
toolkit: JsonToolkit,
callback_manager: Optional[BaseCallbackManager| 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_PREFIX |
suffix | str | Default: JSON_SUFFIX |
format_instructions | Optional[str] | Default: None |
input_variables | Optional[List[str]] | Default: None |
verbose | bool | Default: False |
agent_executor_kwargs | Optional[Dict[str, Any]] | Default: None |
kwargs | Any | Default: {} |
Construct a json agent from an LLM and tools.
The prefix to use. Default is JSON_PREFIX.
The suffix to use. Default is JSON_SUFFIX.
The format instructions to use. Default is None.
The input variables to use. Default is None.
Whether to print verbose output. Default is False.
Optional additional arguments for the agent executor.
Additional arguments for the agent.