Skip to content

Runtime

new Runtime(config): Runtime;
Parameter Type

config

HarnessConfig

Runtime

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

sessionId

string

reason?

string

void


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

sessionId

string

Promise<void>


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