
Node Details
- Name: seqStart
- Label: Start
- Version: 2.0
- Type: Start
- Category: Sequential Agents
- Base Class: Start
Parameters
Required
-
Chat Model
- Type: BaseChatModel
- Description: The language model used for the conversation. Only compatible with models capable of function calling, such as ChatOpenAI, ChatMistral, ChatAnthropic, ChatGoogleGenerativeAI, ChatVertexAI, and GroqChat.
Optional
-
Agent Memory
- Type: BaseCheckpointSaver
- Description: Used to save the state of the agent, allowing for persistence across sessions or restarts.
-
State
- Type: State
- Description: An object that is updated by nodes in the graph, passing from one node to another. By default, it contains “messages” that are updated with each message sent and received.
-
Input Moderation
- Type: Moderation
- Description: Detects text that could generate harmful output and prevents it from being sent to the language model. Can have multiple moderation checks.
Initialization
Theinit
method of this node:
- Retrieves the input moderation settings (if any)
- Gets the specified chat model
-
Creates and returns an
ISeqAgentNode
object with:- Node identification (id, name, label, type)
- The START constant as output
-
The language model (both as
llm
andstartLLM
) - Moderation settings
- Checkpoint memory (if specified)