GraphQL input type for forwarding AI model parameters like temperature, max tokens, and stop sequences. Reuse when configuring LLM execution options.
// Source: https://github.com/rainbowbeast0/copilotkit | License: MIT | Copyright Atai Barkai
// Provided via justclaw.it.com; keep this notice with the code.
import { Field, InputType } from "type-graphql";
@InputType()
export class ForwardedParametersInput {
@Field(() => String, { nullable: true })
model?: string;
@Field(() => Number, { nullable: true })
maxTokens?: number;
@Field(() => [String], { nullable: true })
stop?: string[];
@Field(() => String, { nullable: true })
toolChoice?: String;
@Field(() => String, { nullable: true })
toolChoiceFunctionName?: string;
@Field(() => Number, { nullable: true })
temperature?: number;
}
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key