langchain_core.runnables.utils.ConfigurableFieldSpec¶

class langchain_core.runnables.utils.ConfigurableFieldSpec(id: str, annotation: Any, name: Optional[str] = None, description: Optional[str] = None, default: Any = None, is_shared: bool = False, dependencies: Optional[List[str]] = None)[source]¶

Field that can be configured by the user. It is a specification of a field.

Parameters
  • id (str) – The unique identifier of the field.

  • annotation (Any) – The annotation of the field.

  • name (Optional[str]) – The name of the field. Defaults to None.

  • description (Optional[str]) – The description of the field. Defaults to None.

  • default (Any) – The default value for the field. Defaults to None.

  • is_shared (bool) – Whether the field is shared. Defaults to False.

  • dependencies (Optional[List[str]]) – The dependencies of the field. Defaults to None.

Create new instance of ConfigurableFieldSpec(id, annotation, name, description, default, is_shared, dependencies)

Attributes

annotation

Alias for field number 1

default

Alias for field number 4

dependencies

Alias for field number 6

description

Alias for field number 3

id

Alias for field number 0

is_shared

Alias for field number 5

name

Alias for field number 2

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

__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.

Examples using ConfigurableFieldSpec¶