langchain_core.beta.runnables.context.PrefixContext¶
- class langchain_core.beta.runnables.context.PrefixContext(prefix: str = '')[source]¶
Attributes
prefixMethods
__init__([prefix])getter(key, /)setter([_key, _value])- getter(key: Union[str, List[str]], /) ContextGet[source]¶
- setter(_key: Optional[str] = None, _value: Optional[Union[Runnable[Input, Output], Callable[[Input], Output], Callable[[Input], Awaitable[Output]], Any]] = None, /, **kwargs: Union[Runnable[Input, Output], Callable[[Input], Output], Callable[[Input], Awaitable[Output]], Any]) ContextSet[source]¶