Skip to main content

Interface: DSLBotState

Defined in: packages/core/src/stream-segments/types.ts:159

State for a bot defined in DSL

Properties

childSegments

childSegments: StreamSegment[]

Defined in: packages/core/src/stream-segments/types.ts:169

Child segments from this bot's execution


error?

optional error?: string

Defined in: packages/core/src/stream-segments/types.ts:175

Error message if failed


goal

goal: string

Defined in: packages/core/src/stream-segments/types.ts:163

Goal from DSL definition


name

name: string

Defined in: packages/core/src/stream-segments/types.ts:161

Bot name from DSL definition


result?

optional result?: unknown

Defined in: packages/core/src/stream-segments/types.ts:173

Final result when complete


status

status: "completed" | "failed" | "running" | "pending"

Defined in: packages/core/src/stream-segments/types.ts:167

Current execution status


tokensUsed

tokensUsed: number

Defined in: packages/core/src/stream-segments/types.ts:171

Tokens used so far


tools?

optional tools?: string[]

Defined in: packages/core/src/stream-segments/types.ts:165

Tools available to this bot