ConfigurableFieldMultiOption#
- class langchain_core.runnables.utils.ConfigurableFieldMultiOption(
- id: str,
- options: Mapping[str, Any],
- default: Sequence[str],
- name: str | None = None,
- description: str | None = None,
- is_shared: bool = False,
Field that can be configured by the user with multiple default values.
Create new instance of ConfigurableFieldMultiOption(id, options, default, name, description, is_shared)
Attributes
defaultThe default values for the field.
descriptionThe description of the field.
idThe unique identifier of the field.
is_sharedWhether the field is shared.
nameThe name of the field.
optionsThe options for the field.
Methods
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 (str | None)
description (str | None)
is_shared (bool)
- 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.