接口的使用
io.agentscope.core.agent.Agent
使用Agent的程序包
程序包
说明
-
io.agentscope.core中Agent的使用
实现Agent的io.agentscope.core中的类 -
io.agentscope.core.agent中Agent的使用
修饰符和类型类说明classAbstract base class for all agents in the AgentScope framework.classAbstract base class for agents that support structured output generation. -
io.agentscope.core.agent.user中Agent的使用
修饰符和类型类说明classUserAgent class for handling user interaction within the agent framework. -
io.agentscope.core.hook中Agent的使用
返回Agent的io.agentscope.core.hook中的方法参数类型为Agent的io.agentscope.core.hook中的构造器限定符构造器说明ActingChunkEvent(Agent agent, Toolkit toolkit, ToolUseBlock toolUse, ToolResultBlock chunk) Constructor for ActingChunkEvent.protectedActingEvent(HookEventType type, Agent agent, Toolkit toolkit, ToolUseBlock toolUse) Constructor for ActingEvent.ErrorEvent(Agent agent, Throwable error) Constructor for ErrorEvent.protectedHookEvent(HookEventType type, Agent agent) Constructor for HookEvent.PostActingEvent(Agent agent, Toolkit toolkit, ToolUseBlock toolUse, ToolResultBlock toolResult) Constructor for PostActingEvent.PostCallEvent(Agent agent, Msg finalMessage) Constructor for PostCallEvent.PostReasoningEvent(Agent agent, String modelName, GenerateOptions generateOptions, Msg reasoningMessage) Constructor for PostReasoningEvent.PostSummaryEvent(Agent agent, String modelName, GenerateOptions generateOptions, Msg summaryMessage) Constructor for PostSummaryEvent.PreActingEvent(Agent agent, Toolkit toolkit, ToolUseBlock toolUse) Constructor for PreActingEvent.PreCallEvent(Agent agent, List<Msg> inputMessages) Constructor for PreCallEvent.PreReasoningEvent(Agent agent, String modelName, GenerateOptions generateOptions, List<Msg> inputMessages) Constructor for PreReasoningEvent.PreSummaryEvent(Agent agent, String modelName, GenerateOptions generateOptions, List<Msg> inputMessages, int maxIterations, int currentIteration) Constructor for PreSummaryEvent.ReasoningChunkEvent(Agent agent, String modelName, GenerateOptions generateOptions, Msg incrementalChunk, Msg accumulated) Constructor for ReasoningChunkEvent.protectedReasoningEvent(HookEventType type, Agent agent, String modelName, GenerateOptions generateOptions) Constructor for ReasoningEvent.SummaryChunkEvent(Agent agent, String modelName, GenerateOptions generateOptions, Msg incrementalChunk, Msg accumulated) Constructor for SummaryChunkEvent.protectedSummaryEvent(HookEventType type, Agent agent, String modelName, GenerateOptions generateOptions) Constructor for SummaryEvent. -
io.agentscope.core.rag中Agent的使用
参数类型为Agent的io.agentscope.core.rag中的方法修饰符和类型方法说明KnowledgeRetrievalTools.retrieveKnowledge(String query, Integer limit, Agent agent) Retrieves relevant documents from the knowledge base. -
io.agentscope.core.shutdown中Agent的使用
参数类型为Agent的io.agentscope.core.shutdown中的方法修饰符和类型方法说明voidGracefulShutdownManager.bindSession(Agent agent, Session session, SessionKey sessionKey) booleanGracefulShutdownManager.checkAndClearShutdownInterrupted(Agent agent) Check whether the agent's session was previously interrupted by shutdown, and clear the flag.voidGracefulShutdownManager.interruptIfShuttingDown(Agent agent) GracefulShutdownManager.registerRequest(Agent agent) voidGracefulShutdownManager.saveOnInterruptObserved(Agent agent) Called from agent's handleInterrupt when a SYSTEM interrupt is observed.voidGracefulShutdownManager.unregisterRequest(Agent agent) -
io.agentscope.core.tool中Agent的使用
返回Agent的io.agentscope.core.tool中的方法参数类型为Agent的io.agentscope.core.tool中的方法修饰符和类型方法说明Sets the calling agent.reactor.core.publisher.Mono<List<ToolResultBlock>> Toolkit.callTools(List<ToolUseBlock> toolCalls, ExecutionConfig agentExecutionConfig, Agent agent, ToolExecutionContext agentContext) Execute multiple tools asynchronously with agent-level context (internal use by ReActAgent). -
io.agentscope.core.tool.subagent中Agent的使用
类型参数类型为Agent的io.agentscope.core.tool.subagent中的类修饰符和类型接口说明interfaceSubAgentProvider<T extends Agent>Factory interface for creating agent instances.