Skip to main content

AiSessionHandle

interface
interface AiSessionHandle

Import

import { AiSessionHandle } from '@modular/sdk';

Members16

artifacts
Artifacts
history
AiSessionHistory
id
SessionId
lineage
AiSessionLineage
resource
string
tasks
AiTasksApi
children()
() => Promise<readonly AiSessionHandle[]>
fork()
(config?: AiSessionForkConfig) => Promise<AiSessionHandle>
getTurn()
(submissionId: SubmissionId) => AiTurnHandle
metadata()
() => Promise<AiSessionMetadata> | <TValue>(declaration: MetadataDeclaration<TValue>) => BoundMetadata<TValue>
notify()
(notification: AiNotification) => Promise<void>

Deliver a system notification at its declared attention level. Fire-and-forget.

onProgress()
(listener: (signal: AiSessionSignal) => void) => Disposable
parent()
() => Promise<AiSessionHandle | null>
run()
(prompt: string, options?: AiSendOptions) => Promise<AiRunResult> | <T>(prompt: string, options?: AiSendOptions) => Promise<T>
send()
(message: AiPromptMessage, options?: AiSendOptions) => Promise<AiTurnHandle>
spawn()
(config: AiSessionSpawnConfig) => Promise<AiSessionHandle>