Runner implementation for a single LangChain agent.

Wraps a compiled LangChain agent graph (from langchain's createAgent) and delegates execution to it. Tool calling and loop management are handled internally by the graph, matching the Python SDK's approach.

Returned by LangChainRunnerFactory.createAgent.

Hierarchy

  • LangChainAgentRunner

Implements

  • Runner

Constructors

Properties

Methods

Constructors

Properties

_logger?: LDLogger

Methods

  • Run the agent with the given prompt.

    Delegates to the compiled LangChain agent, which handles the tool-calling loop internally.

    Parameters

    • input: string

      The user prompt to send to the agent.

    • Optional _outputType: Record<string, unknown>

      Reserved for future structured output support; currently ignored by the agent runner.

      Optional

    Returns Promise<RunnerResult>

Generated using TypeDoc