AS AgentScopeAPI 手册 / API Reference

AsBasePythonRunner

public class AsBasePythonRunner extends AgentScopeSandboxAwareTool<RunPythonTool>
源码Source io/agentscope/runtime/engine/agents/agentscope/tools/base/AsBasePythonRunner.java:26–48

As 基类 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
inputMap<String, Object>输入消息(类型 `Map`)。The input.
返回Returns Mono<ToolResultBlock>
返回Mono。Returns mono.
源码Source io/agentscope/runtime/engine/agents/agentscope/tools/base/AsBasePythonRunner.java:31–46
基于官方固定版本源码静态生成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.