Skip to content

OpenAICompatRuntime

abortSession(sessionId, reason?): void;
Parameter Type

sessionId

string

reason?

string

void


optional compressNow(sessionId, opts?): Promise<Record<string, unknown>>;
Parameter Type

sessionId

string

opts?

{ focusTopic?: string; force?: boolean; }

opts.focusTopic?

string

opts.force?

boolean

Promise<Record<string, unknown>>


deleteSession(sessionId): Promise<void>;
Parameter Type

sessionId

string

Promise<void>


optional getConversationLength(sessionId): Promise<number>;
Parameter Type

sessionId

string

Promise<number>


getSession(sessionId): Promise<Session | null>;
Parameter Type

sessionId

string

Promise<Session | null>


getSessionStore(): SessionStore;

SessionStore


markOutcome(
sessionId,
outcome,
opts?): Promise<void>;
Parameter Type

sessionId

string

outcome

ConversationOutcome

opts?

{ markedBy?: ConversationOutcomeMarkedBy; reason?: string; }

opts.markedBy?

ConversationOutcomeMarkedBy

opts.reason?

string

Promise<void>


replayAuditLog(sessionId, opts?): Promise<ConversationAuditEntry[]>;
Parameter Type

sessionId

string

opts?

AuditListOptions

Promise<ConversationAuditEntry[]>


run(opts): TurnHandle;
Parameter Type

opts

RunOptions

TurnHandle


stream(opts): TurnHandle;
Parameter Type

opts

RunOptions

TurnHandle