langchain.agents.mrkl.base.ChainConfig¶
- class langchain.agents.mrkl.base.ChainConfig(action_name: str, action: Callable, action_description: str)[source]¶
Bases:
NamedTupleConfiguration for chain to use in MRKL system.
- Parameters
action_name – Name of the action.
action – Action function to call.
action_description – Description of the action.
Create new instance of ChainConfig(action_name, action, action_description)
Methods
__init__()count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
Alias for field number 1
Alias for field number 2
Alias for field number 0
- 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.
- action: Callable¶
Alias for field number 1
- action_description: str¶
Alias for field number 2
- action_name: str¶
Alias for field number 0