public abstract class PanguUnifyTool extends Object implements Tool
| Constructor and Description |
|---|
PanguUnifyTool() |
| Modifier and Type | Method and Description |
|---|---|
String |
getInputDesc()
工具的输入描述
|
String |
getInputSchema()
获取入参的Json Schema定义
|
String |
getOutputDesc()
工具的输出描述
|
String |
getOutputSchema()
获取出参的Json Schema定义,在prompt模板中调用
|
String |
getToolDesc()
工具的描述
|
String |
getToolPrinciple()
工具使用原则,告诉模型在什么情况下使用工具
|
boolean |
isEmptyInput()
是否入参为空
|
boolean |
isSingleInput()
是否入参为单个字段
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPanguFunction, getToolId, runFromJsonpublic String getToolDesc()
ToolgetToolDesc in interface Toolpublic String getToolPrinciple()
ToolgetToolPrinciple in interface Toolpublic String getInputDesc()
ToolgetInputDesc in interface Toolpublic String getOutputDesc()
ToolgetOutputDesc in interface Toolpublic boolean isSingleInput()
ToolisSingleInput in interface Toolpublic boolean isEmptyInput()
ToolisEmptyInput in interface Toolpublic String getInputSchema()
ToolgetInputSchema in interface Toolpublic String getOutputSchema()
ToolgetOutputSchema in interface ToolCopyright © 2024. All rights reserved.