Skip to content
Threadplane
Pricing
164Talk to Us
@threadplane/ag-uiTypeAliasv0.3.7

DeclaredSessionOptions

SessionOptions with the state declaration as the type parameter, so createSession can infer the snapshot's state type from stateType.

View sourceView Markdown
import type { DeclaredSessionOptions } from '@threadplane/ag-ui';

Declaration

export type DeclaredSessionOptions<D> = Omit<SessionCommonOptions, 'stateType'> & {
    readonly stateType?: D;
} & (HttpSessionSource | AgentSessionSource);

Type parameters

D