PlaygroundOutputSubscription.graphql.ts•6.84 kB
/**
* @generated SignedSource<<3ff9f93560025e5ca8dea31c92ab4c9a>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type CanonicalParameterName = "ANTHROPIC_EXTENDED_THINKING" | "MAX_COMPLETION_TOKENS" | "RANDOM_SEED" | "REASONING_EFFORT" | "RESPONSE_FORMAT" | "STOP_SEQUENCES" | "TEMPERATURE" | "TOOL_CHOICE" | "TOP_P";
export type ChatCompletionMessageRole = "AI" | "SYSTEM" | "TOOL" | "USER";
export type GenerativeProviderKey = "ANTHROPIC" | "AWS" | "AZURE_OPENAI" | "DEEPSEEK" | "GOOGLE" | "OLLAMA" | "OPENAI" | "XAI";
export type PromptTemplateFormat = "F_STRING" | "MUSTACHE" | "NONE";
export type ChatCompletionInput = {
credentials?: ReadonlyArray<GenerativeCredentialInput> | null;
invocationParameters?: ReadonlyArray<InvocationParameterInput>;
messages: ReadonlyArray<ChatCompletionMessageInput>;
model: GenerativeModelInput;
promptName?: string | null;
repetitions: number;
template?: PromptTemplateOptions | null;
tools?: ReadonlyArray<any> | null;
};
export type ChatCompletionMessageInput = {
content?: any;
role: ChatCompletionMessageRole;
toolCallId?: string | null;
toolCalls?: ReadonlyArray<any> | null;
};
export type GenerativeModelInput = {
apiVersion?: string | null;
baseUrl?: string | null;
customHeaders?: any | null;
endpoint?: string | null;
name: string;
providerKey: GenerativeProviderKey;
region?: string | null;
};
export type InvocationParameterInput = {
canonicalName?: CanonicalParameterName | null;
invocationName: string;
valueBool?: boolean | null;
valueBoolean?: boolean | null;
valueFloat?: number | null;
valueInt?: number | null;
valueJson?: any | null;
valueString?: string | null;
valueStringList?: ReadonlyArray<string> | null;
};
export type GenerativeCredentialInput = {
envVarName: string;
value: string;
};
export type PromptTemplateOptions = {
format: PromptTemplateFormat;
variables: any;
};
export type PlaygroundOutputSubscription$variables = {
input: ChatCompletionInput;
};
export type PlaygroundOutputSubscription$data = {
readonly chatCompletion: {
readonly __typename: "ChatCompletionSubscriptionError";
readonly message: string;
} | {
readonly __typename: "ChatCompletionSubscriptionResult";
readonly span: {
readonly id: string;
} | null;
} | {
readonly __typename: "TextChunk";
readonly content: string;
} | {
readonly __typename: "ToolCallChunk";
readonly function: {
readonly arguments: string;
readonly name: string;
};
readonly id: string;
} | {
// This will never be '%other', but we need some
// value in case none of the concrete values match.
readonly __typename: "%other";
};
};
export type PlaygroundOutputSubscription = {
response: PlaygroundOutputSubscription$data;
variables: PlaygroundOutputSubscription$variables;
};
const node: ConcreteRequest = (function(){
var v0 = [
{
"defaultValue": null,
"kind": "LocalArgument",
"name": "input"
}
],
v1 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v2 = [
{
"alias": null,
"args": [
{
"kind": "Variable",
"name": "input",
"variableName": "input"
}
],
"concreteType": null,
"kind": "LinkedField",
"name": "chatCompletion",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__typename",
"storageKey": null
},
{
"kind": "InlineFragment",
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "content",
"storageKey": null
}
],
"type": "TextChunk",
"abstractKey": null
},
{
"kind": "InlineFragment",
"selections": [
(v1/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "FunctionCallChunk",
"kind": "LinkedField",
"name": "function",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "arguments",
"storageKey": null
}
],
"storageKey": null
}
],
"type": "ToolCallChunk",
"abstractKey": null
},
{
"kind": "InlineFragment",
"selections": [
{
"alias": null,
"args": null,
"concreteType": "Span",
"kind": "LinkedField",
"name": "span",
"plural": false,
"selections": [
(v1/*: any*/)
],
"storageKey": null
}
],
"type": "ChatCompletionSubscriptionResult",
"abstractKey": null
},
{
"kind": "InlineFragment",
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "message",
"storageKey": null
}
],
"type": "ChatCompletionSubscriptionError",
"abstractKey": null
}
],
"storageKey": null
}
];
return {
"fragment": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Fragment",
"metadata": null,
"name": "PlaygroundOutputSubscription",
"selections": (v2/*: any*/),
"type": "Subscription",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": (v0/*: any*/),
"kind": "Operation",
"name": "PlaygroundOutputSubscription",
"selections": (v2/*: any*/)
},
"params": {
"cacheID": "aca7bf342ad2dc5db66b07e236a68268",
"id": null,
"metadata": {},
"name": "PlaygroundOutputSubscription",
"operationKind": "subscription",
"text": "subscription PlaygroundOutputSubscription(\n $input: ChatCompletionInput!\n) {\n chatCompletion(input: $input) {\n __typename\n ... on TextChunk {\n content\n }\n ... on ToolCallChunk {\n id\n function {\n name\n arguments\n }\n }\n ... on ChatCompletionSubscriptionResult {\n span {\n id\n }\n }\n ... on ChatCompletionSubscriptionError {\n message\n }\n }\n}\n"
}
};
})();
(node as any).hash = "bb5936a61a0e99dbb4a298a6e552a01c";
export default node;