ConfigurableFieldSingleOption#
- class langchain_core.runnables.utils.ConfigurableFieldSingleOption(id: str, options: Mapping[str, Any], default: str, name: str | None = None, description: str | None = None, is_shared: bool = False)[source]#
Field that can be configured by the user with a default value.
- Parameters:
id (str) β The unique identifier of the field.
options (Mapping[str, Any]) β The options for the field.
default (str) β The default value for the field.
name (str | None) β The name of the field. Defaults to None.
description (str | None) β The description of the field. Defaults to None.
is_shared (bool) β Whether the field is shared. Defaults to False.
Create new instance of ConfigurableFieldSingleOption(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
count
(value,Β /)Return number of occurrences of value.
index
(value[,Β start,Β stop])Return first index of value.
- 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.