29 lines
1.5 KiB
TypeScript
29 lines
1.5 KiB
TypeScript
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
import type { CreateEventPayloadAutoEvalBehaviorSpecAnswers } from "./CreateEventPayloadAutoEvalBehaviorSpecAnswers";
|
|
import type { CreateEventPayloadAutoEvalExampleLabelingAnswers } from "./CreateEventPayloadAutoEvalExampleLabelingAnswers";
|
|
import type { CreateEventPayloadToolCallAuthorization } from "./CreateEventPayloadToolCallAuthorization";
|
|
import type { CreateEventPayloadToolResult } from "./CreateEventPayloadToolResult";
|
|
import type { EventPayloadMessage } from "./EventPayloadMessage";
|
|
import type { EventPayloadUserQuestionsAnswers } from "./EventPayloadUserQuestionsAnswers";
|
|
|
|
/**
|
|
* Payload enum restricted to client-writable event types.
|
|
*
|
|
* Unlike `EventPayload`, this only includes variants that API clients are allowed
|
|
* to create. Server-enriched fields (e.g. `tool_call_name`, `tool_call_arguments`)
|
|
* are omitted from the inner structs.
|
|
*/
|
|
export type CreateEventPayload =
|
|
| ({ type: "message" } & EventPayloadMessage)
|
|
| ({
|
|
type: "tool_call_authorization";
|
|
} & CreateEventPayloadToolCallAuthorization)
|
|
| ({ type: "tool_result" } & CreateEventPayloadToolResult)
|
|
| ({ type: "user_questions_answers" } & EventPayloadUserQuestionsAnswers)
|
|
| ({
|
|
type: "auto_eval_example_labeling_answers";
|
|
} & CreateEventPayloadAutoEvalExampleLabelingAnswers)
|
|
| ({
|
|
type: "auto_eval_behavior_spec_answers";
|
|
} & CreateEventPayloadAutoEvalBehaviorSpecAnswers);
|