前缀上下文#
- class langchain_core.beta.runnables.context.PrefixContext(prefix: str = '')[source]#
带有前缀的可运行内容的上下文。
属性
prefix
方法
- Parameters:
prefix (str)
- getter(key: str | list[str], /) ContextGet [来源]#
- 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: