foundation-model-agent-loop

Orchestrate tool-calling agent loops with Databricks-hosted Foundation Models.

5|6|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/databricks-solutions/vibe-coding-workshop-template --skill foundation-model-agent-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: foundation-model-agent-loop
Source: https://github.com/databricks-solutions/vibe-coding-workshop-template/tree/main/agentic-framework/skills/foundation-model-agent-loop
Command: npx skills add https://github.com/databricks-solutions/vibe-coding-workshop-template --skill foundation-model-agent-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires databricks-sdk, requests.

What problem does it solve?

This Skill provides a robust pattern for creating AI agents that can interact with tools by leveraging Databricks Foundation Models, eliminating the need for complex frameworks like LangGraph.

Core Features & Use Cases

  • Tool-Calling Agent: Orchestrates interactions between a foundation model and defined tools.
  • Function Calling: Utilizes OpenAI-compatible function calling for tool invocation.
  • Use Case: Develop a customer support chatbot that can query a database, calculate prices, and provide direct answers by calling various tools based on user requests.

Quick Start

Use the foundation model agent loop to answer the question "What is the price of item X?".

Frequently Asked Questions about foundation-model-agent-loop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an AI agent with tool calling using Databricks Foundation Models?

To build an AI agent with tool calling using Databricks Foundation Models, implement a canonical agentic loop that sends HTTP requests to model endpoints, handles message history, executes tools, and feeds results back for iterative behavior.

Can I implement function calling with foundation models without using complex frameworks?

Yes, you can implement function calling with foundation models without complex frameworks by orchestrating interactions directly through HTTP requests to OpenAI-compatible endpoints, eliminating the need for heavy framework dependencies.

How does an agentic loop handle tool execution and message history?

An agentic loop handles tool execution by sending message history to a foundation model, invoking defined tools based on the model's function calling output, and appending the tool results back into the conversation for the next iteration.

What is the best way to create a customer support chatbot that queries a database and calculates prices?

The best way to create a customer support chatbot that queries databases and calculates prices is to define specific tools for these actions and use an agent loop to let the foundation model invoke them based on user requests.

Do I need LangGraph to build tool-calling agents on Databricks?

No, you do not need LangGraph to build tool-calling agents on Databricks; you can leverage Foundation Models through direct HTTP requests to handle the agentic loop, tool execution, and message history natively.