langchain.schema.agent.AgentFinish¶

class langchain.schema.agent.AgentFinish(return_values: dict, log: str)[source]¶

Bases: NamedTuple

The final return value of an ActionAgent.

Create new instance of AgentFinish(return_values, log)

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

log

Additional information to log about the return value

return_values

Dictionary of return values.

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.

log: str¶

Additional information to log about the return value

return_values: dict¶

Dictionary of return values.

Examples using AgentFinish¶