langchain.schema.agent.AgentFinish¶
class langchain.schema.agent.AgentFinish(return_values: dict, log: str)[source]¶
The final return value of an ActionAgent.
Create new instance of AgentFinish(return_values, log)
Attributes
log
Additional information to log about the return value
return_values
Dictionary of return values.
Methods
__init__()
count(value, /)
Return number of occurrences of value.
index(value[, start, stop])
Return first index of value.
__init__()¶
count(value, /)¶
Return number of occurrences of value.
index(value, start=0, stop=9223372036854775807, /)¶
Return first index of value.
Raises ValueError if the value is not present.
Examples using AgentFinish¶
Plug-and-Plai
Wikibase Agent
SalesGPT - Your Context-Aware AI Sales Assistant With Knowledge Base
Custom Agent with PlugIn Retrieval
Custom multi-action agent
Running Agent as an Iterator
Custom agent
Custom agent with tool retrieval