Intelligence · interface

AiSession

Explained in Agents and behaviour.

interface AiSession
import type { AiSession } from '@driftengine/ai';

Methods

run

run(request: AiRequest): AsyncIterable<AiEvent>
ParameterTypeDescription
requestAiRequest

abort

abort(reason?: string): void
ParameterTypeDescription
reason?string