ConfigurableField#
- class langchain_core.runnables.utils.ConfigurableField(
- id: str,
- name: str | None = None,
- description: str | None = None,
- annotation: Any | None = None,
- is_shared: bool = False,
Field that can be configured by the user.
Create new instance of ConfigurableField(id, name, description, annotation, is_shared)
Attributes
annotation
The annotation of the field.
description
The description of the field.
id
The unique identifier of the field.
is_shared
Whether the field is shared.
name
The name of the field.
Methods
count
(value, /)Return number of occurrences of value.
index
(value[, start, stop])Return first index of value.
- Parameters:
id (str)
name (str | None)
description (str | None)
annotation (Any | 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.
Examples using ConfigurableField