Skip to main content

Interface: SkillSegment

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

Skill activation segment — a point-in-time marker that a Skill's instructions shaped this turn's prompt. Rendered inline in a timeline like a tool-call chip. Produced from the skill_activated stream event.

Extends​

Properties​

agentId?​

optional agentId?: string

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

Set in group chat.

Inherited from​

BaseSegment.agentId


agentName?​

optional agentName?: string

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

Inherited from​

BaseSegment.agentName


avatarEmoji?​

optional avatarEmoji?: string

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

Inherited from​

BaseSegment.avatarEmoji


id​

id: string

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

Inherited from​

BaseSegment.id


reason​

reason: "keyword" | "load_skill" | "requested"

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

Why it was active this turn: a keyword match, a load_skill call, or the host requested it (ProcessOptions.activeSkills).


skill​

skill: string

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

The activated skill's name.


step?​

optional step?: number

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

The model step (0-based, within its turn) that produced this segment. History stamps it when the step finishes, so a turn is rebuilt for the next request one step at a time, in the order it was sent (see deriveAPIMessages). Absent on segments stored without it, which are rebuilt as one assistant message per turn.

Inherited from​

BaseSegment.step


timestamp​

timestamp: number

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

Epoch milliseconds.

Inherited from​

BaseSegment.timestamp


type​

type: "skill"

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