refactor: return agent on create and resume instead of waiting

This commit is contained in:
Mohamed Boudra
2026-02-02 12:51:04 +07:00
parent bf9555829b
commit b2f9bb1294
6 changed files with 30 additions and 63 deletions
+2
View File
@@ -979,6 +979,7 @@ const AgentStatusWithTimelineSchema = AgentStatusWithRequestSchema.extend({
export const AgentCreatedStatusPayloadSchema = z
.object({
status: z.literal("agent_created"),
agent: AgentSnapshotPayloadSchema,
})
.extend(AgentStatusWithRequestSchema.shape);
@@ -991,6 +992,7 @@ export const AgentCreateFailedStatusPayloadSchema = z.object({
export const AgentResumedStatusPayloadSchema = z
.object({
status: z.literal("agent_resumed"),
agent: AgentSnapshotPayloadSchema,
})
.extend(AgentStatusWithTimelineSchema.shape);