Uses of Class
dyntabs.ai.AgentBuilder
Packages that use AgentBuilder
-
Uses of AgentBuilder in dyntabs.ai
Methods in dyntabs.ai that return AgentBuilderModifier and TypeMethodDescriptionstatic AgentBuilderEasyAI.agent()Starts building anEasyAgentthat autonomously plans and executes multi-step tasks by orchestrating calls to your registered Java services.AgentBuilder.withApiKey(String apiKey) Overrides the API key for this agent.AgentBuilder.withChatLanguageModel(dev.langchain4j.model.chat.ChatLanguageModel model) Uses the givenChatLanguageModeldirectly, bypassingeasyai.propertiesandEasyAI.configure().AgentBuilder.withMaxSteps(int maxSteps) Sets the maximum number of sequential service method calls the agent is allowed to make before returning a response.Overrides the model name for this agent.AgentBuilder.withPlanningPrompt(boolean enable) Enables the built-in planning system message that instructs the LLM to think step by step before calling tools.AgentBuilder.withServices(Object... services) Adds service objects whose public methods the agent can call.AgentBuilder.withStepListener(StepListener stepListener) Registers a listener that is called after each tool execution.AgentBuilder.withSystemMessage(String systemMessage) Sets a custom system message for the agent.