Skip to content

chatbot/nodes

This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.

  • Package: @leipzigtreechat/chatbot
  • Source file: packages/chatbot/src/nodes.ts

Logger that prints the node name in each log message.

function NodeLoggerLayer(nodeName: string): void

Logger that prints the node name in each log message.

Parameters

  • nodeName (string): Name of the node that should be logged. Defined at: line 24
function runTimedNode(nodeName: string, effect: Effect.Effect<A, E, LangGraphRuntimeEnvironment>): Promise<A>

Runs a node effect inside the shared chatbot runtime and emits timing logs.

Parameters

  • nodeName (string): Name used for scoped logging.
  • effect (Effect.Effect<A, E, LangGraphRuntimeEnvironment>): Effect implementing the node behavior. Returns
  • Promise<A>: The resolved node result. Defined at: line 48
function Nodes(printMessage: (message: BaseMessage) => Promise<void>, onMetadata: ChatBotMetadataCallback | undefined, _nodes: N): void

Constructor for Nodes with type-safe routing between them.

Parameters

  • printMessage ((message: BaseMessage) => Promise): Function to print messages, used for updating the user interface
  • onMetadata (ChatBotMetadataCallback | undefined): Optional callback for progress and error metadata updates
  • _nodes (N) Defined at: line 72