Skip to content

Commit 01e638e

Browse files
committed
add title to thinking steps
1 parent 6d42380 commit 01e638e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

python-sdk/ag_ui/core/events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ class ThinkingStartEvent(BaseEvent):
149149
Event indicating the start of a thinking step event.
150150
"""
151151
type: Literal[EventType.THINKING_START]
152+
title: Optional[str] = 'Thinking...'
152153

153154
class ThinkingEndEvent(BaseEvent):
154155
"""

typescript-sdk/packages/core/src/events.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export const ToolCallChunkEventSchema = BaseEventSchema.extend({
125125

126126
export const ThinkingStartEventSchema = BaseEventSchema.extend({
127127
type: z.literal(EventType.THINKING_START),
128+
title: z.string().optional().default("Thinking..."),
128129
});
129130

130131
export const ThinkingEndEventSchema = BaseEventSchema.extend({

0 commit comments

Comments
 (0)