PrefixContext#
- class langchain_core.beta.runnables.context.PrefixContext(prefix: str = '')[source]#
Context for a runnable with a prefix.
Attributes
prefix
Methods
- Parameters:
prefix (str) –
- getter(key: str | List[str], /) ContextGet [source]#
- Parameters:
key (str | List[str]) –
- Return type:
- setter(_key: str | None = None, _value: Runnable[Input, Output] | Callable[[Input], Output] | Callable[[Input], Awaitable[Output]] | Any | None = None, /, **kwargs: Runnable[Input, Output] | Callable[[Input], Output] | Callable[[Input], Awaitable[Output]] | Any) ContextSet [source]#
- Parameters:
- Return type: