Uses of Class
io.agentscope.harness.agent.subagent.SubagentDeclaration
Packages that use SubagentDeclaration
Package
Description
-
Uses of SubagentDeclaration in io.agentscope.harness.agent
Methods in io.agentscope.harness.agent with parameters of type SubagentDeclarationModifier and TypeMethodDescriptionHarnessAgent.Builder.subagent(SubagentDeclaration declaration) Adds a subagent declaration.Method parameters in io.agentscope.harness.agent with type arguments of type SubagentDeclarationModifier and TypeMethodDescriptionHarnessAgent.Builder.subagents(List<SubagentDeclaration> declarations) -
Uses of SubagentDeclaration in io.agentscope.harness.agent.middleware
Methods in io.agentscope.harness.agent.middleware that return SubagentDeclarationModifier and TypeMethodDescriptionSubagentEntry.declaration()Returns the value of thedeclarationrecord component.Constructors in io.agentscope.harness.agent.middleware with parameters of type SubagentDeclarationModifierConstructorDescriptionSubagentEntry(String name, String description, SubagentFactory factory, SubagentDeclaration declaration) Creates an instance of aSubagentEntryrecord class.Constructor parameters in io.agentscope.harness.agent.middleware with type arguments of type SubagentDeclarationModifierConstructorDescriptionDynamicSubagentsMiddleware(List<SubagentEntry> staticEntries, AbstractFilesystem filesystem, Path mainWorkspace, Function<SubagentDeclaration, SubagentFactory> factoryBuilder, DefaultAgentManager agentManager, Object subagentTool, TaskRepository taskRepository) SubagentsMiddleware(List<SubagentEntry> entries, TaskRepository taskRepository, WorkspaceManager workspaceManager, AbstractFilesystem filesystem, Path mainWorkspace, Function<SubagentDeclaration, SubagentFactory> factoryBuilder) Default mode: createsAgentSpawnTool+DefaultAgentManagerinternally. -
Uses of SubagentDeclaration in io.agentscope.harness.agent.subagent
Methods in io.agentscope.harness.agent.subagent that return SubagentDeclarationModifier and TypeMethodDescriptionSubagentDeclaration.Builder.build()Builds theSubagentDeclaration.SubagentSpecGenerator.GeneratedSpec.declaration()Returns the value of thedeclarationrecord component.static SubagentDeclarationAgentSpecLoader.loadFromFile(Path filePath, Path mainWorkspace) Parses a single Markdown declaration file.static SubagentDeclarationParses markdown content with YAML front matter into aSubagentDeclaration.Methods in io.agentscope.harness.agent.subagent that return types with arguments of type SubagentDeclarationModifier and TypeMethodDescriptionDefaultAgentManager.getDeclaration(String agentId) Optional declaration metadata for the givenagent_id(e.g. remote URL).static List<SubagentDeclaration>AgentSpecLoader.loadFromDirectory(Path subagentsDir, Path mainWorkspace) static List<SubagentDeclaration>AgentSpecLoader.loadFromFilesystem(AbstractFilesystem filesystem, io.agentscope.core.agent.RuntimeContext runtimeContext, Path mainWorkspace) Loads subagent declarations via theAbstractFilesystem, respecting the supplied runtime context's namespace isolation.static List<SubagentDeclaration>AgentSpecLoader.loadFromFilesystem(AbstractFilesystem filesystem, Path mainWorkspace) Loads subagent declarations via theAbstractFilesystemusing an empty runtime context.Constructors in io.agentscope.harness.agent.subagent with parameters of type SubagentDeclarationModifierConstructorDescriptionGeneratedSpec(String markdown, SubagentDeclaration declaration) Creates an instance of aGeneratedSpecrecord class.