langchain.agents.mrkl.base
.ChainConfig¶
- class langchain.agents.mrkl.base.ChainConfig(action_name: str, action: Callable, action_description: str)[source]¶
MRKL系统中用于链配置。
- 参数:
action_name:操作的名称。 action:要调用的操作函数。 action_description:操作的描述。
Create new instance of ChainConfig(action_name, action, action_description)
Attributes
action
Alias for field number 1
action_description
Alias for field number 2
action_name
Alias for field number 0
Methods
__init__
()count
(value, /)Return number of occurrences of value.
index
(value[, start, stop])Return first index of value.
- Parameters
action_name (str) –
action (Callable) –
action_description (str) –
- __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.