Variable ElicitRequestSchemaConst
ElicitRequestSchema: ZodObject<
extendShape<
{
method: ZodString;
params: ZodOptional<
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<ZodUnion<(...)>> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ progressToken: ZodOptional<(...)> },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ progressToken: ZodOptional<(...)> },
ZodTypeAny,
"passthrough",
>,
>,
>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<(...)> },
"passthrough",
ZodTypeAny,
objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<(...)> },
"passthrough",
ZodTypeAny,
objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>,
>,
>;
},
{
method: ZodLiteral<"elicitation/create">;
params: ZodObject<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<ZodUnion<(...)>> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ progressToken: ZodOptional<(...)> },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ progressToken: ZodOptional<(...)> },
ZodTypeAny,
"passthrough",
>,
>,
>;
},
{
message: ZodString;
requestedSchema: ZodObject<
{
properties: ZodRecord<
ZodString,
ZodUnion<[(...), (...), (...), (...)]>,
>;
required: ZodOptional<ZodArray<ZodString, "many">>;
type: ZodLiteral<"object">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
properties: ZodRecord<ZodString, ZodUnion<(...)>>;
required: ZodOptional<ZodArray<(...), (...)>>;
type: ZodLiteral<"object">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
properties: ZodRecord<ZodString, ZodUnion<(...)>>;
required: ZodOptional<ZodArray<(...), (...)>>;
type: ZodLiteral<"object">;
},
ZodTypeAny,
"passthrough",
>,
>;
},
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<(...)> },
"passthrough",
ZodTypeAny,
objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
>,
>;
},
{
message: ZodString;
requestedSchema: ZodObject<
{
properties: ZodRecord<ZodString, ZodUnion<(...)>>;
required: ZodOptional<ZodArray<(...), (...)>>;
type: ZodLiteral<"object">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
properties: ZodRecord<(...), (...)>;
required: ZodOptional<(...)>;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
properties: ZodRecord<(...), (...)>;
required: ZodOptional<(...)>;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
>;
},
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<(...)> },
"passthrough",
ZodTypeAny,
objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
>,
>;
},
{
message: ZodString;
requestedSchema: ZodObject<
{
properties: ZodRecord<ZodString, ZodUnion<(...)>>;
required: ZodOptional<ZodArray<(...), (...)>>;
type: ZodLiteral<"object">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
properties: ZodRecord<(...), (...)>;
required: ZodOptional<(...)>;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
properties: ZodRecord<(...), (...)>;
required: ZodOptional<(...)>;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
>;
},
>,
ZodTypeAny,
"passthrough",
>,
>;
},
>,
"strip",
ZodTypeAny,
{
method: "elicitation/create";
params: {
_meta?: objectOutputType<
{ progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>> },
ZodTypeAny,
"passthrough",
>;
message: string;
requestedSchema: {
properties: Record<
string,
| objectOutputType<
{
default: ZodOptional<(...)>;
description: ZodOptional<(...)>;
title: ZodOptional<(...)>;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>
| objectOutputType<
{
description: ZodOptional<(...)>;
format: ZodOptional<(...)>;
maxLength: ZodOptional<(...)>;
minLength: ZodOptional<(...)>;
title: ZodOptional<(...)>;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>
| objectOutputType<
{
description: ZodOptional<(...)>;
maximum: ZodOptional<(...)>;
minimum: ZodOptional<(...)>;
title: ZodOptional<(...)>;
type: ZodEnum<(...)>;
},
ZodTypeAny,
"passthrough",
>
| objectOutputType<
{
description: ZodOptional<(...)>;
enum: ZodArray<(...), (...)>;
enumNames: ZodOptional<(...)>;
title: ZodOptional<(...)>;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
>;
required?: string[];
type: "object";
} & { [k: string]: unknown };
} & { [k: string]: unknown };
},
{
method: "elicitation/create";
params: {
_meta?: objectInputType<
{ progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>> },
ZodTypeAny,
"passthrough",
>;
message: string;
requestedSchema: {
properties: Record<
string,
| objectInputType<
{
default: ZodOptional<(...)>;
description: ZodOptional<(...)>;
title: ZodOptional<(...)>;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>
| objectInputType<
{
description: ZodOptional<(...)>;
format: ZodOptional<(...)>;
maxLength: ZodOptional<(...)>;
minLength: ZodOptional<(...)>;
title: ZodOptional<(...)>;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>
| objectInputType<
{
description: ZodOptional<(...)>;
maximum: ZodOptional<(...)>;
minimum: ZodOptional<(...)>;
title: ZodOptional<(...)>;
type: ZodEnum<(...)>;
},
ZodTypeAny,
"passthrough",
>
| objectInputType<
{
description: ZodOptional<(...)>;
enum: ZodArray<(...), (...)>;
enumNames: ZodOptional<(...)>;
title: ZodOptional<(...)>;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
>;
required?: string[];
type: "object";
} & { [k: string]: unknown };
} & { [k: string]: unknown };
},
> = ...
A request from the server to elicit user input via the client. The client should present the message and form fields to the user.