Skip to content

chatbot/index

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

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

Re-exported from ”./graph.js”.

function createInitialAgentState(): AgentState

Creates the initial graph state expected by the chatbot runtime.

The state starts in question mode and already contains the assistant greeting so UIs can render the opening message before the first user turn.

Returns

  • AgentState Defined at: line 24
const INITIAL_ASSISTANT_MESSAGE_CONTENT: string

Initial assistant greeting inserted into a freshly created chatbot state.

Defined at: line 15

export { ChatBotGraph }

Re-exported from ”./graph.js”.

Defined at: line 4

export { CHATBOT_METADATA_MESSAGES }

Re-exported from ”./metadata.js”.

Defined at: line 6

export { type ChatBotMetadataCallback }

Re-exported from ”./metadata.js”.

Defined at: line 7

export { type ChatBotMetadataEvent }

Re-exported from ”./metadata.js”.

Defined at: line 8

export { type ChatBotMetadataStatus }

Re-exported from ”./metadata.js”.

Defined at: line 9