MCPcopy Create free account
hub / github.com/Noumena-Network/code / isMalformedToolOutputApiError

Function isMalformedToolOutputApiError

src/query.ts:221–229  ·  view source on GitHub ↗
(
  msg: Message | StreamEvent | undefined,
)

Source from the content-addressed store, hash-verified

219}
220
221function isMalformedToolOutputApiError(
222 msg: Message | StreamEvent | undefined,
223): msg is AssistantMessage {
224 return (
225 msg?.type === 'assistant' &&
226 msg.isApiErrorMessage === true &&
227 msg.apiError === MALFORMED_TOOL_OUTPUT_API_ERROR
228 )
229}
230
231export type QueryParams = {
232 messages: Message[]

Callers 1

queryLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected