Class: ToolCallParseError
Hierarchy
-
Error
↳
ToolCallParseError
Constructors
constructor
• new ToolCallParseError(«destructured»
): ToolCallParseError
Parameters
Name | Type |
---|---|
«destructured» | Object |
› cause | unknown |
› toolName | string |
› valueText | string |
Returns
Overrides
Error.constructor
Defined in
packages/modelfusion/src/tool/generate-tool-call/ToolCallParseError.ts:8
Methods
toJSON
▸ toJSON(): Object
Returns
Object
Name | Type |
---|---|
cause | unknown |
message | string |
name | string |
stack | undefined | string |
toolName | string |
valueText | string |
Defined in
packages/modelfusion/src/tool/generate-tool-call/ToolCallParseError.ts:30
captureStackTrace
▸ captureStackTrace(targetObject
, constructorOpt?
): void
Create .stack property on a target object
Parameters
Name | Type |
---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Error.captureStackTrace
Defined in
node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:4
Properties
cause
• Readonly
cause: unknown
Overrides
Error.cause
Defined in
packages/modelfusion/src/tool/generate-tool-call/ToolCallParseError.ts:6