Skip to content

ShellCallResultItem

type ShellCallResultItem = object;
callId: string;
optional id: string;

An ID to identify the item. This is optional by default. If a model provider absolutely requires this field, it will be validated on the model level.

optional maxOutputLength: number;
output: objectOutputType<{
outcome: ZodDiscriminatedUnion<"type", [ZodObject<{
type: ZodLiteral<"timeout">;
}, "strip", ZodTypeAny, {
type: "timeout";
}, {
type: "timeout";
}>, ZodObject<{
exitCode: ZodNullable<ZodNumber>;
type: ZodLiteral<"exit">;
}, "strip", ZodTypeAny, {
exitCode: number | null;
type: "exit";
}, {
exitCode: number | null;
type: "exit";
}>]>;
stderr: ZodString;
stdout: ZodString;
}, ZodTypeAny, "passthrough">[];
optional providerData: Record<string, any>;

Additional optional provider specific data. Used for custom functionality or model provider specific fields.

type: "shell_call_output";