Variable: ConversationSchema
const
ConversationSchema:ZodObject
<{prompt
:ZodString
;response
:ZodObject
<{analysis
:ZodOptional
<ZodString
>;parts
:ZodOptional
<ZodArray
<ZodUnion
<[ZodObject
<{text
:ZodString
;type
:ZodLiteral
<...>; },"strip"
,ZodTypeAny
, {text
:string
;type
:"text"
; }, {text
:string
;type
:"text"
; }>,ZodObject
<{toolCallMessages
:ZodArray
<..., ...>;type
:ZodLiteral
<...>; },"strip"
,ZodTypeAny
, {toolCallMessages
: ...[];type
:"tool"
; }, {toolCallMessages
: ...[];type
:"tool"
; }>]>,"many"
>>;reasoning
:ZodOptional
<ZodString
>;text
:ZodOptional
<ZodString
>;toolCallMessages
:ZodOptional
<ZodArray
<ZodObject
<{additionalData
:ZodOptional
<ZodUnknown
>;args
:ZodRecord
<ZodString
,ZodUnknown
>;isCompleted
:ZodBoolean
;llmResult
:ZodOptional
<ZodUnknown
>;text
:ZodOptional
<ZodString
>;toolCallId
:ZodString
;toolName
:ZodString
; },"strip"
,ZodTypeAny
, {additionalData
:unknown
;args
:Record
<string
,unknown
>;isCompleted
:boolean
;llmResult
:unknown
;text
:string
;toolCallId
:string
;toolName
:string
; }, {additionalData
:unknown
;args
:Record
<string
,unknown
>;isCompleted
:boolean
;llmResult
:unknown
;text
:string
;toolCallId
:string
;toolName
:string
; }>,"many"
>>; },"strip"
,ZodTypeAny
, {analysis
:string
;parts
: ({text
:string
;type
:"text"
; } | {toolCallMessages
:object
[];type
:"tool"
; })[];reasoning
:string
;text
:string
;toolCallMessages
:object
[]; }, {analysis
:string
;parts
: ({text
:string
;type
:"text"
; } | {toolCallMessages
:object
[];type
:"tool"
; })[];reasoning
:string
;text
:string
;toolCallMessages
:object
[]; }>; },"strip"
,ZodTypeAny
, {prompt
:string
;response
: {analysis
:string
;parts
: ({text
:string
;type
:"text"
; } | {toolCallMessages
:object
[];type
:"tool"
; })[];reasoning
:string
;text
:string
;toolCallMessages
:object
[]; }; }, {prompt
:string
;response
: {analysis
:string
;parts
: ({text
:string
;type
:"text"
; } | {toolCallMessages
:object
[];type
:"tool"
; })[];reasoning
:string
;text
:string
;toolCallMessages
:object
[]; }; }>
Defined in: packages/core/src/utils/messages.ts:9