chatbot/nodes
This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.
chatbot/nodes
Section titled “chatbot/nodes”- Package:
@leipzigtreechat/chatbot - Source file:
packages/chatbot/src/nodes.ts
Summary
Section titled “Summary”Logger that prints the node name in each log message.
Functions
Section titled “Functions”NodeLoggerLayer
Section titled “NodeLoggerLayer”function NodeLoggerLayer(nodeName: string): voidLogger that prints the node name in each log message.
Parameters
nodeName(string): Name of the node that should be logged. Defined at: line 24
runTimedNode
Section titled “runTimedNode”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. ReturnsPromise<A>: The resolved node result. Defined at: line 48
function Nodes(printMessage: (message: BaseMessage) => Promise<void>, onMetadata: ChatBotMetadataCallback | undefined, _nodes: N): voidConstructor 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
In chatbot
Section titled “In chatbot”chatbot/__benchmarks__/fixtureschatbot/__benchmarks__/indexchatbot/__benchmarks__/reportchatbot/__benchmarks__/runnerchatbot/__benchmarks__/scoringchatbot/__benchmarks__/typeschatbot/constantschatbot/errorschatbot/graphchatbot/indexchatbot/langgraph-runtimechatbot/llm-servicechatbot/metadatachatbot/nodeschatbot/state/clarification_conversationchatbot/state/indexchatbot/state/qanary-typeschatbot/triplestore-servicechatbot/unit