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