Variable CreateMessageRequestParamsSchemaConst
CreateMessageRequestParamsSchema: ZodObject<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>> },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>> },
ZodTypeAny,
"passthrough",
>,
>,
>;
},
{
includeContext: ZodOptional<
ZodEnum<["none", "thisServer", "allServers"]>,
>;
maxTokens: ZodNumber;
messages: ZodArray<
ZodObject<
{
content: ZodUnion<
[
ZodObject<
{
_meta: ZodOptional<(...)>;
text: ZodString;
type: ZodLiteral<(...)>;
},
"strip",
ZodTypeAny,
{ _meta?: (...)
| (...); text: string; type: "text" },
{ _meta?: (...) | (...); text: string; type: "text" },
>,
ZodObject<
{
_meta: ZodOptional<(...)>;
data: ZodEffects<(...), (...), (...)>;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
"strip",
ZodTypeAny,
{
_meta?: (...)
| (...);
data: string;
mimeType: string;
type: "image";
},
{
_meta?: (...)
| (...);
data: string;
mimeType: string;
type: "image";
},
>,
ZodObject<
{
_meta: ZodOptional<(...)>;
data: ZodEffects<(...), (...), (...)>;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
"strip",
ZodTypeAny,
{
_meta?: (...)
| (...);
data: string;
mimeType: string;
type: "audio";
},
{
_meta?: (...)
| (...);
data: string;
mimeType: string;
type: "audio";
},
>,
],
>;
role: ZodEnum<["user", "assistant"]>;
},
"strip",
ZodTypeAny,
{
content: | {
_meta?: Record<string, unknown>;
text: string;
type: "text";
}
| {
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "image";
}
| {
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "audio";
};
role: "user"
| "assistant";
},
{
content: | {
_meta?: Record<string, unknown>;
text: string;
type: "text";
}
| {
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "image";
}
| {
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "audio";
};
role: "user"
| "assistant";
},
>,
"many",
>;
metadata: ZodOptional<ZodType<object, ZodTypeDef, object>>;
modelPreferences: ZodOptional<
ZodObject<
{
costPriority: ZodOptional<ZodNumber>;
hints: ZodOptional<
ZodArray<
ZodObject<
{ name: ZodOptional<(...)> },
"strip",
ZodTypeAny,
{ name?: (...) | (...) },
{ name?: (...) | (...) },
>,
"many",
>,
>;
intelligencePriority: ZodOptional<ZodNumber>;
speedPriority: ZodOptional<ZodNumber>;
},
"strip",
ZodTypeAny,
{
costPriority?: number;
hints?: { name?: string }[];
intelligencePriority?: number;
speedPriority?: number;
},
{
costPriority?: number;
hints?: { name?: string }[];
intelligencePriority?: number;
speedPriority?: number;
},
>,
>;
stopSequences: ZodOptional<ZodArray<ZodString, "many">>;
systemPrompt: ZodOptional<ZodString>;
temperature: ZodOptional<ZodNumber>;
},
>,
"strip",
ZodTypeAny,
{
_meta?: objectOutputType<
{ progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>> },
ZodTypeAny,
"passthrough",
>;
includeContext?: "none" | "thisServer" | "allServers";
maxTokens: number;
messages: {
content:
| { _meta?: Record<string, unknown>; text: string; type: "text" }
| {
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "image";
}
| {
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "audio";
};
role: "user"
| "assistant";
}[];
metadata?: object;
modelPreferences?: {
costPriority?: number;
hints?: { name?: string }[];
intelligencePriority?: number;
speedPriority?: number;
};
stopSequences?: string[];
systemPrompt?: string;
temperature?: number;
},
{
_meta?: objectInputType<
{ progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>> },
ZodTypeAny,
"passthrough",
>;
includeContext?: "none" | "thisServer" | "allServers";
maxTokens: number;
messages: {
content:
| { _meta?: Record<string, unknown>; text: string; type: "text" }
| {
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "image";
}
| {
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "audio";
};
role: "user"
| "assistant";
}[];
metadata?: object;
modelPreferences?: {
costPriority?: number;
hints?: { name?: string }[];
intelligencePriority?: number;
speedPriority?: number;
};
stopSequences?: string[];
systemPrompt?: string;
temperature?: number;
},
> = ...
Parameters for a
sampling/createMessagerequest.