MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / formatToolError

Function formatToolError

packages/components/src/agents.ts:39–41  ·  view source on GitHub ↗
(errorMessage: string, params: any)

Source from the content-addressed store, hash-verified

37 * @returns Formatted error message with tool arguments appended
38 */
39export const formatToolError = (errorMessage: string, params: any): string => {
40 return errorMessage + TOOL_ARGS_PREFIX + JSON.stringify(params)
41}
42
43export type AgentFinish = {
44 returnValues: Record<string, any>

Callers 15

_callMethod · 0.90
_callMethod · 0.90
_callMethod · 0.90
_callMethod · 0.90
_callMethod · 0.90
_callMethod · 0.90
_callMethod · 0.90
_callMethod · 0.90
_callMethod · 0.90
_callMethod · 0.90
_callMethod · 0.90
_callMethod · 0.90

Calls 1

stringifyMethod · 0.80

Tested by

no test coverage detected