langchain.js
    Preparing search index...

    Class RunnableTraceable<RunInput, RunOutput>

    RunnableTraceable is a Runnable that wraps a traceable function. This allows adding Langsmith traced functions into LangChain sequences.

    Wrap or pass directly instead.

    Type Parameters

    • RunInput
    • RunOutput

    Hierarchy

    Index

    Constructors

    Properties

    func: AnyTraceableFunction
    lc_namespace: string[] = ...

    A path to the module that contains the class, eg. ["langchain", "llms"] Usually should be the same as the entrypoint the class is exported from.

    lc_serializable: boolean = false

    Methods

    • Default streaming implementation. Subclasses should override this method if they support streaming output.

      Parameters

      • input: RunInput
      • Optionaloptions: Partial<RunnableConfig<Record<string, any>>>

      Returns AsyncGenerator<RunOutput>

    • Parameters

      • input: RunInput
      • Optionaloptions: Partial<RunnableConfig<Record<string, any>>>

      Returns Promise<RunOutput>

    • Parameters

      • func: AnyTraceableFunction

      Returns RunnableTraceable<unknown, unknown>