RubyLLM 2.0: The Agentic Loop, Exposed
Strip any agent framework down and you find the same loop: call the model, run the tools it asked for, call the model again, stop when it answers without wanting a tool. # Run the agentic loop automatically chat = RubyLLM.chat(model: "claude-sonnet-4-6").with_tools(Weather).ask("What's the weather in Paris?") # => #<RubyLLM::Message role::assistant, content: "Here's the current...
