AgentSessionFactoryContext
Unpublished development API. This package is under development and is not available as a published release.
What AgentProvider hands its session factory each time it needs a session.
import type { AgentSessionFactoryContext } from '@threadplane/react';Declaration
export interface AgentSessionFactoryContext {
readonly onThreadId: (threadId: string) => void;
readonly threadId: string | null;
}Members
onThreadId
Tells the provider the id of a thread the session created. Pass it to the
session as its onThreadId. A report from a replaced session is ignored.
readonly onThreadId: (threadId: string) => void;threadId
The thread the new session belongs to, or null for a new empty one.
readonly threadId: string | null;