File tree Expand file tree Collapse file tree 1 file changed +1
-28
lines changed
typescript-sdk/packages/core/src Expand file tree Collapse file tree 1 file changed +1
-28
lines changed Original file line number Diff line number Diff line change @@ -34,34 +34,6 @@ const BaseEventSchema = z.object({
34
34
rawEvent : z . any ( ) . optional ( ) ,
35
35
} ) ;
36
36
37
- export const RunStartedSchema = BaseEventSchema . extend ( {
38
- type : z . literal ( EventType . RUN_STARTED ) ,
39
- threadId : z . string ( ) ,
40
- runId : z . string ( ) ,
41
- } ) ;
42
-
43
- export const RunFinishedSchema = BaseEventSchema . extend ( {
44
- type : z . literal ( EventType . RUN_FINISHED ) ,
45
- threadId : z . string ( ) ,
46
- runId : z . string ( ) ,
47
- } ) ;
48
-
49
- export const RunErrorSchema = BaseEventSchema . extend ( {
50
- type : z . literal ( EventType . RUN_ERROR ) ,
51
- message : z . string ( ) ,
52
- code : z . string ( ) . optional ( ) ,
53
- } ) ;
54
-
55
- export const StepStartedSchema = BaseEventSchema . extend ( {
56
- type : z . literal ( EventType . STEP_STARTED ) ,
57
- stepName : z . string ( ) ,
58
- } ) ;
59
-
60
- export const StepFinishedSchema = BaseEventSchema . extend ( {
61
- type : z . literal ( EventType . STEP_FINISHED ) ,
62
- stepName : z . string ( ) ,
63
- } ) ;
64
-
65
37
export const TextMessageStartEventSchema = BaseEventSchema . extend ( {
66
38
type : z . literal ( EventType . TEXT_MESSAGE_START ) ,
67
39
messageId : z . string ( ) ,
@@ -181,6 +153,7 @@ export const RunFinishedEventSchema = BaseEventSchema.extend({
181
153
type : z . literal ( EventType . RUN_FINISHED ) ,
182
154
threadId : z . string ( ) ,
183
155
runId : z . string ( ) ,
156
+ result : z . any ( ) . optional ( ) ,
184
157
} ) ;
185
158
186
159
export const RunErrorEventSchema = BaseEventSchema . extend ( {
You can’t perform that action at this time.
0 commit comments