AsBasePythonRunner
public class AsBasePythonRunner extends AgentScopeSandboxAwareTool<RunPythonTool>
源码Source
io/agentscope/runtime/engine/agents/agentscope/tools/base/AsBasePythonRunner.java:26–48As 基类 Python 运行器,让智能体以受控方式调用外部能力。位于 io.agentscope.runtime.engine.agents.agentscope.tools.base 包,继承自 AgentScopeSandboxAwareTool<RunPythonTool>。核心成员包括 callAsync、AsBasePythonRunner。
A class in io.agentscope.runtime.engine.agents.agentscope.tools.base that lets agents invoke external capabilities under control. Declared in io.agentscope.runtime.engine.agents.agentscope.tools.base. Extends AgentScopeSandboxAwareTool
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public AsBasePythonRunner() | 初始化 `AsBasePythonRunner` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Mono<ToolResultBlock> callAsync(Map<String, Object> input) | 调用异步。 Calls the async. |
构造器详情Constructor Detail
AsBasePythonRunner
public AsBasePythonRunner()
初始化 AsBasePythonRunner 实例。
Creates a new instance.
源码Source
io/agentscope/runtime/engine/agents/agentscope/tools/base/AsBasePythonRunner.java:27–29方法详情Method Detail
callAsync
public Mono<ToolResultBlock> callAsync(Map<String, Object> input)
调用异步。
Calls the async.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | Map<String, Object> | 输入消息(类型 `Map`)。The input. |
Mono<ToolResultBlock>返回Mono。Returns mono.
源码Source
io/agentscope/runtime/engine/agents/agentscope/tools/base/AsBasePythonRunner.java:31–46