langchain_core.runnables.utils.ConfigurableField¶

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

Field that can be configured by the user.

Create new instance of ConfigurableField(id, name, description, annotation, is_shared)

Attributes

annotation

Alias for field number 3

description

Alias for field number 2

id

Alias for field number 0

is_shared

Alias for field number 4

name

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) –

  • name (Optional[str]) –

  • description (Optional[str]) –

  • annotation (Optional[Any]) –

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

Examples using ConfigurableField¶