AS AgentScopeAPI 手册 / API Reference

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.

返回Returns List<ToolSchema>
返回列出。Returns list.
源码Source io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:34–43

isHandsTool

public static boolean isHandsTool(String name)
static

判断是否 isHandsTool。

Names of tools that must be executed by a self-hosted worker.

参数Parameters
名称Name类型Type说明Description
nameString名称(类型 `String`)。The name.
返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:46–57

execute

public static ToolSchema execute()
static

返回执行。

Returns the execute.

返回Returns ToolSchema
返回ToolSchema。Returns tool schema.
源码Source io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:59–81

readFile

public static ToolSchema readFile()
static

返回读取文件。

Returns the read file.

返回Returns ToolSchema
返回ToolSchema。Returns tool schema.
源码Source io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:83–105

writeFile

public static ToolSchema writeFile()
static

返回写入文件。

Returns the write file.

返回Returns ToolSchema
返回ToolSchema。Returns tool schema.
源码Source io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:107–120

editFile

public static ToolSchema editFile()
static

返回 editFile 结果。

Returns the edit file.

返回Returns ToolSchema
返回ToolSchema。Returns tool schema.
源码Source io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:122–143

grepFiles

public static ToolSchema grepFiles()
static

返回 grepFiles 结果。

Returns the grep files.

返回Returns ToolSchema
返回ToolSchema。Returns tool schema.
源码Source io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:145–160

globFiles

public static ToolSchema globFiles()
static

返回 globFiles 结果。

Returns the glob files.

返回Returns ToolSchema
返回ToolSchema。Returns tool schema.
源码Source io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:162–175

listFiles

public static ToolSchema listFiles()
static

列出文件。

Lists the files.

返回Returns ToolSchema
返回ToolSchema。Returns tool schema.
源码Source io/agentscope/builder/web/managed/selfhosted/SelfHostedToolSchemas.java:177–186
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.