create Session
Create a new chat session, or restore an existing one.
If contextId is provided, objects from that context are loaded into the blackboard (e.g., user preferences, prior state).
If conversationId is provided and a conversation exists in storage, the session will be restored with its message history. Otherwise, a new conversation is created with that ID.
Parameters
the user to associate the session with, or null for anonymous
the output channel to send messages to
optional context ID to load prior state from
optional ID to restore an existing conversation, or create with specific ID
Create a new chat session, or restore an existing one.
If contextId is provided, objects from that context are loaded into the blackboard (e.g., user preferences, prior state).
If conversationId is provided and a conversation exists in storage, the session will be restored with its message history. Otherwise, a new conversation is created with that ID.
Parameters
the user to associate the session with, or null for anonymous
the output channel to send messages to
optional context ID to load prior state from
optional ID to restore an existing conversation, or create with specific ID
optional spending/action budget; null means use implementation default