SelfHostedToolSchemas
public final class SelfHostedToolSchemas
源码Source
io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:29–203自身托管工具模式,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.web.managed.selfhosted 包。核心成员包括 all、isHandsTool、execute、readFile、writeFile、editFile。
Schema definitions for the self-hosted external toolset. Names and parameters mirror
FilesystemTool / ShellExecuteTool so the model sees the same surface while
execution is suspended to an Environment Worker.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static List<ToolSchema> all()static | 返回所有。 All externalized hands tools for `self_hosted` environments. |
public static boolean isHandsTool(String name)static | 判断是否 `isHandsTool`。 Names of tools that must be executed by a self-hosted worker. |
public static ToolSchema execute()static | 返回执行。 Returns the execute. |
public static ToolSchema readFile()static | 返回读取文件。 Returns the read file. |
public static ToolSchema writeFile()static | 返回写入文件。 Returns the write file. |
public static ToolSchema editFile()static | 返回 `editFile` 结果。 Returns the edit file. |
public static ToolSchema grepFiles()static | 返回 `grepFiles` 结果。 Returns the grep files. |
public static ToolSchema globFiles()static | 返回 `globFiles` 结果。 Returns the glob files. |
public static ToolSchema listFiles()static | 列出文件。 Lists the files. |
方法详情Method Detail
all
public static List<ToolSchema> all()
static
返回所有。
All externalized hands tools for self_hosted environments.
List<ToolSchema>返回列出。Returns list.
源码Source
io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:34–43isHandsTool
public static boolean isHandsTool(String name)
static
判断是否 isHandsTool。
Names of tools that must be executed by a self-hosted worker.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
name | String | 名称(类型 `String`)。The name. |
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:46–57execute
public static ToolSchema execute()
static
返回执行。
Returns the execute.
ToolSchema返回ToolSchema。Returns tool schema.
源码Source
io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:59–81readFile
public static ToolSchema readFile()
static
返回读取文件。
Returns the read file.
ToolSchema返回ToolSchema。Returns tool schema.
源码Source
io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:83–105writeFile
public static ToolSchema writeFile()
static
返回写入文件。
Returns the write file.
ToolSchema返回ToolSchema。Returns tool schema.
源码Source
io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:107–120editFile
public static ToolSchema editFile()
static
返回 editFile 结果。
Returns the edit file.
ToolSchema返回ToolSchema。Returns tool schema.
源码Source
io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:122–143grepFiles
public static ToolSchema grepFiles()
static
返回 grepFiles 结果。
Returns the grep files.
ToolSchema返回ToolSchema。Returns tool schema.
源码Source
io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:145–160globFiles
public static ToolSchema globFiles()
static
返回 globFiles 结果。
Returns the glob files.
ToolSchema返回ToolSchema。Returns tool schema.
源码Source
io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:162–175listFiles
public static ToolSchema listFiles()
static
列出文件。
Lists the files.
ToolSchema返回ToolSchema。Returns tool schema.
源码Source
io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:177–186