@deprecated( "0.1.0", message=AGENT_DEPRECATION_WARNING, removal="1.0", ) classAgentType(str, Enum): """An enum for agent types. See documentation: https://python.langchain.com/api_reference/langchain/agents/langchain.agents.agent_types.AgentType.html """
ZERO_SHOT_REACT_DESCRIPTION = "zero-shot-react-description" """A zero shot agent that does a reasoning step before acting."""
REACT_DOCSTORE = "react-docstore" """A zero shot agent that does a reasoning step before acting. This agent has access to a document store that allows it to look up relevant information to answering the question. """
SELF_ASK_WITH_SEARCH = "self-ask-with-search" """An agent that breaks down a complex question into a series of simpler questions. This agent uses a search tool to look up answers to the simpler questions in order to answer the original complex question. """ CONVERSATIONAL_REACT_DESCRIPTION = "conversational-react-description" CHAT_ZERO_SHOT_REACT_DESCRIPTION = "chat-zero-shot-react-description" """A zero shot agent that does a reasoning step before acting. This agent is designed to be used in conjunction """
STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION = ( "structured-chat-zero-shot-react-description" ) """An zero-shot react agent optimized for chat models. This agent is capable of invoking tools that have multiple inputs. """
OPENAI_FUNCTIONS = "openai-functions" """An agent optimized for using open AI functions."""
The output should be formatted as a JSON instance that conforms to the JSON schema below.
As an example, for the schema {"properties": {"foo": {"title": "Foo", "description": "a list of strings", "type": "array", "items": {"type": "string"}}}, "required": ["foo"]} the object {"foo": ["bar", "baz"]} is a well-formatted instance of the schema. The object {"properties": {"foo": ["bar", "baz"]}} is not well-formatted.
Here is the output schema: ``` {"properties": {"args": {"default": "输入的参数:", "title": "Args", "type": "string"}, "result": {"default": "返回的结果", "title": "Result", "type": "string"}}} ```