langchain_core.runnables.utils
.ConfigurableFieldMultiOption¶
- class langchain_core.runnables.utils.ConfigurableFieldMultiOption(id: str, options: Mapping[str, Any], default: Sequence[str], name: Optional[str] = None, description: Optional[str] = None, is_shared: bool = False)[source]¶
用户可以使用多个默认值配置的字段。
Create new instance of ConfigurableFieldMultiOption(id, options, default, name, description, is_shared)
Attributes
default
Alias for field number 2
description
Alias for field number 4
id
Alias for field number 0
is_shared
Alias for field number 5
name
Alias for field number 3
options
Alias for field number 1
Methods
__init__
()count
(value, /)Return number of occurrences of value.
index
(value[, start, stop])Return first index of value.
- Parameters
id (str) –
options (Mapping[str, Any]) –
default (Sequence[str]) –
name (Optional[str]) –
description (Optional[str]) –
is_shared (bool) –
- __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.