结果错误Extractor

Finds an error that a tool reported in its result instead of throwing.

函数

Link copied to clipboard
abstract fun extractErrorFromResult(context: ToolContext, tool: BaseTool, args: Map<String, Any?>, result: Map<String, Any?>): Any?

返回错误信息。 result例如: result 当它包含自身时(即当它自身也是其所包含的内容时) "status": "error",或 null 如果调用成功了……