Skip to content

Commit d27970a

Browse files
authored
chore(contracts): sync the worker's steer disposition read contract (#9743)
Additive copies of SteerDispositionRequest and SteerDispositionResponse from simstudioai/mothership#932. Nothing in Sim uses them yet; Sim's side of a paired contract merges first.
1 parent ce3e0b6 commit d27970a

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎apps/sim/lib/mothership/generated/protocol.ts‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,27 @@ export const SteerV2Response = z.discriminatedUnion("status", [
569569
]);
570570
export type SteerV2Response = z.infer<typeof SteerV2Response>;
571571

572+
/**
573+
* POST /api/streams/steer/v2/disposition: what became of the input `steeringId`, read without
574+
* sending it. It never queues, renders or claims anything. An input the chat holds answers as
575+
* a retry of it on /api/streams/steer/v2 would (the chat-wide identity included). One it does
576+
* not hold answers `not_applied` once the run `messageId` has ended or stopped, since no
577+
* steer could reach it any more, and `unknown` while the run is live: nothing was delivered,
578+
* and sending it is still the caller's choice. A run that does not exist (or another
579+
* tenant's) is a 404 `steering_target_missing`, as for a steer.
580+
*/
581+
export const SteerDispositionRequest = z.strictObject({
582+
messageId: z.uuid(),
583+
steeringId: z.uuid(),
584+
});
585+
export type SteerDispositionRequest = z.infer<typeof SteerDispositionRequest>;
586+
587+
export const SteerDispositionResponse = z.discriminatedUnion("status", [
588+
...SteerV2Response.options,
589+
z.strictObject({ steeringId: z.string(), status: z.literal("unknown") }),
590+
]);
591+
export type SteerDispositionResponse = z.infer<typeof SteerDispositionResponse>;
592+
572593
/** The `run`/`steering_applied` frame: a steer reached the run's model input. */
573594
export interface StreamSteeringApplied {
574595
kind: "steering_applied";

0 commit comments

Comments
 (0)