| Constructor and Description |
|---|
DynamicTool() |
| Modifier and Type | Method and Description |
|---|---|
String |
getInputSchema()
获取入参的Json Schema定义
|
String |
getOutputSchema()
获取出参的Json Schema定义,在prompt模板中调用
|
String |
getPanguFunction()
获取pangu Function的定义,在prompt模板中调用
|
boolean |
isEmptyInput()
是否入参为空
|
boolean |
isSingleInput()
是否入参为单个字段
|
Object |
runFromJson(String json)
运行工具
|
void |
setInputSchema(String inputSchema) |
void |
setOutputSchema(String outputSchema) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputDesc, getOutputDesc, getToolDesc, getToolId, getToolPrinciplepublic Object runFromJson(String json)
ToolrunFromJson in interface Tooljson - 工具的输入jsonpublic boolean isSingleInput()
ToolisSingleInput in interface Toolpublic boolean isEmptyInput()
ToolisEmptyInput in interface Toolpublic String getInputSchema()
ToolgetInputSchema in interface Toolpublic String getOutputSchema()
ToolgetOutputSchema in interface Toolpublic String getPanguFunction()
ToolgetPanguFunction in interface Toolpublic void setInputSchema(String inputSchema)
public void setOutputSchema(String outputSchema)
Copyright © 2024. All rights reserved.