Interface AgentRuntimeSource
public interface AgentRuntimeSource
Optional harness-/app-specific hooks kept out of
agentscope-extensions-aistio so the
extension stays free of an agentscope-harness dependency. Wire from the host app (e.g.
paw) after the AgentScopeAdapter bean is created.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancancelSubagentTask(io.agentscope.core.agent.Agent agent, String sessionId, String userId, String taskId) default voidenrichAgentConfig(io.agentscope.core.agent.Agent agent, Map<String, Object> agentConfig) Enrich the Definition snapshot (GET /agentscope/info→agentConfig).default List<Inventory.SubagentInfo>listSubagents(io.agentscope.core.agent.Agent agent) listSubagentTasks(io.agentscope.core.agent.Agent agent, String sessionId, String userId) default List<Inventory.WorkspaceInfo>listWorkspaces(io.agentscope.core.agent.Agent agent) readPlanExcerpt(io.agentscope.core.agent.Agent agent, String sessionId, String userId, String planFile) Optional plan-file excerpt for ContextframeworkState.default booleansetPlanMode(io.agentscope.core.agent.Agent agent, String sessionId, String userId, boolean active) Enter/exit plan mode for a session.
-
Method Details
-
listSubagents
-
listWorkspaces
-
listSubagentTasks
-
cancelSubagentTask
-
enrichAgentConfig
default void enrichAgentConfig(io.agentscope.core.agent.Agent agent, Map<String, Object> agentConfig) Enrich the Definition snapshot (GET /agentscope/info→agentConfig). -
readPlanExcerpt
default Optional<String> readPlanExcerpt(io.agentscope.core.agent.Agent agent, String sessionId, String userId, String planFile) Optional plan-file excerpt for ContextframeworkState. -
setPlanMode
default boolean setPlanMode(io.agentscope.core.agent.Agent agent, String sessionId, String userId, boolean active) Enter/exit plan mode for a session. Returntruewhen handled (including no-op exit when already inactive).
-