类的使用
io.agentscope.core.ReActAgent.Builder
使用ReActAgent.Builder的程序包
-
io.agentscope.core中ReActAgent.Builder的使用
修饰符和类型方法说明static ReActAgent.BuilderReActAgent.builder()ReActAgent.Builder.checkRunning(boolean checkRunning) ReActAgent.Builder.description(String description) ReActAgent.Builder.enableMetaTool(boolean enableMetaTool) Enables or disables the meta-tool functionality.ReActAgent.Builder.enablePendingToolRecovery(boolean enable) Enables or disables automatic recovery from orphaned pending tool calls.ReActAgent.Builder.enablePlan()Enables plan functionality with default configuration.ReActAgent.Builder.generateOptions(GenerateOptions generateOptions) Sets the generation options for model API calls.Adds a hook for monitoring and intercepting agent execution events.Adds multiple hooks for monitoring and intercepting agent execution events.Adds a knowledge base for RAG (Retrieval-Augmented Generation).ReActAgent.Builder.knowledges(List<Knowledge> knowledges) Adds multiple knowledge bases for RAG.ReActAgent.Builder.longTermMemory(LongTermMemory longTermMemory) Sets the long-term memory for this agent.ReActAgent.Builder.longTermMemoryAsyncRecord(boolean asyncRecord) Sets whether long-term memory recording should be performed asynchronously.ReActAgent.Builder.longTermMemoryMode(LongTermMemoryMode mode) Sets the long-term memory mode.ReActAgent.Builder.maxIters(int maxIters) Sets the maximum number of reasoning-acting iterations.Sets the memory for storing conversation history.Sets the language model for this agent.ReActAgent.Builder.modelExecutionConfig(ExecutionConfig modelExecutionConfig) Sets the execution configuration for model API calls.Sets the name for this agent.ReActAgent.Builder.planNotebook(PlanNotebook planNotebook) Sets the PlanNotebook for plan-based task execution.Sets the RAG mode.ReActAgent.Builder.retrieveConfig(RetrieveConfig config) Sets the retrieve configuration for RAG.Sets the skill box for this agent.ReActAgent.Builder.statePersistence(StatePersistence statePersistence) Sets the state persistence configuration.ReActAgent.Builder.structuredOutputReminder(StructuredOutputReminder reminder) Sets the structured output enforcement mode.Sets the system prompt for this agent.ReActAgent.Builder.toolExecutionConfig(ExecutionConfig toolExecutionConfig) Sets the execution configuration for tool executions.ReActAgent.Builder.toolExecutionContext(ToolExecutionContext toolExecutionContext) Sets the tool execution context for this agent.Sets the toolkit containing available tools for this agent.