Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. LLM
  3. LLM Tool Demo v 18.0
  4. Sales Conditions FAQ

LLM Tool Demo

by Apexive https://github.com/apexive/odoo-llm
Odoo
v 18.0 Third Party 8
Download for v 18.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • CRM (crm)
• Discuss (mail)
• Calendar (calendar)
• Contacts (contacts)
• Invoicing (account)
Community Apps Dependencies Show
• LLM Tool
• LLM Integration Base
Lines of code 2776
Technical Name llm_tool_demo
LicenseLGPL-3
Websitehttps://github.com/apexive/odoo-llm
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • CRM (crm)
• Discuss (mail)
• Calendar (calendar)
• Contacts (contacts)
• Invoicing (account)
Community Apps Dependencies Show
• LLM Tool
• LLM Integration Base
Lines of code 2776
Technical Name llm_tool_demo
LicenseLGPL-3
Websitehttps://github.com/apexive/odoo-llm
  • Description
  • Documentation
Developer Reference

LLM Tool Demo

Demonstration of @llm_tool decorator usage.

Learn how to create custom AI tools with practical examples

6 Examples
Best Practices
Open Source

What is LLM Tool Demo?

Your guide to creating custom AI tools for Odoo

This module demonstrates how to create LLM tools using the @llm_tool decorator. It provides 6 example tools showing different decorator patterns and best practices for tool development. Use this as a reference when creating your own AI tools for Odoo.


Included Examples

6 example tools demonstrating different patterns

get_system_info

Simple read-only tool example showing basic decorator usage.

calculate_business_days

Utility tool with type hints for automatic schema generation.

create_lead_from_description

Business logic tool showing CRM integration patterns.

generate_sales_report

Complex reporting tool demonstrating Sales module integration.

legacy_example

Manual schema example for integrating with legacy code.

send_notification_to_user

User interaction tool showing Mail integration for notifications.


What You'll Learn

Best practices demonstrated in these examples

Tool Types

Read-only, destructive, and idempotent tool patterns for safe AI operations.

Type Hints

Use Python type hints for automatic schema generation and validation.

Business Logic

Integration with CRM, Sales, and Mail modules for real-world use cases.


Technical Details

Requirements and dependencies

Module Information

Dependencies:

llm_tool, crm, sale, mail

Category:

Productivity/LLM

Purpose:

Developer reference

License:

LGPL-3

How to Use

Install this module, explore the code in the models directory, and use the patterns in your own modules.


Related Modules

Explore other modules in the Odoo LLM suite

LLM Tool

The core tool framework that provides the @llm_tool decorator.

LLM Base

Core framework for LLM integration with provider management and model configuration.

LLM Thread

Conversational AI threads where tools can be executed.

LLM Assistant

Create assistants with specific tools enabled for their workflows.

OpenAI Provider

Connect to OpenAI GPT models with native function calling support.

MCP Server

Expose tools via Model Context Protocol for external AI clients.

LLM Tool Demo

Learn to build AI tools for Odoo

Developed by Apexive

Licensed under LGPL-3 • © 2025 All rights reserved.

github.com/apexive/odoo-llm
hello@apexive.com

LLM Tool Demo Module

Learn how to create LLM tools with examples.

Module Type: 📖 Demo/Tutorial (Tool Development)

Architecture

┌───────────────────────────────────────────────────────────────┐
│                     Consumers of Tools                        │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────────┐   │
│  │llm_assistant│  │  llm_letta  │  │   llm_mcp_server    │   │
│  └──────┬──────┘  └──────┬──────┘  └──────────┬──────────┘   │
└─────────┼────────────────┼────────────────────┼──────────────┘
          └────────────────┼────────────────────┘
                           ▼
              ┌───────────────────────────────────────────┐
              │              llm_tool                     │
              │         (Tool Framework)                  │
              └─────────────────────┬─────────────────────┘
                                    │
                                    ▼
              ┌───────────────────────────────────────────┐
              │     ★ llm_tool_demo (This Module) ★       │
              │         Example Tool Implementations       │
              │  📖 6 Examples │ Best Practices │ Learn   │
              └─────────────────────┬─────────────────────┘
                                    │
                                    ▼
              ┌───────────────────────────────────────────┐
              │                   llm                     │
              │            (Core Base Module)             │
              └───────────────────────────────────────────┘

Installation

What to Install

For learning tool development:

odoo-bin -d your_db -i llm_tool_demo

Auto-Installed Dependencies

  • llm (core infrastructure)
  • llm_tool (tool framework)

What You'll Learn

Demo Tools

1. get_system_info

Location: models/res_users.py

Simple read-only tool to get Odoo system information.

@llm_tool(read_only_hint=True, idempotent_hint=True)
def get_system_info(self) -> dict:
    """Get basic Odoo system information..."""

2. calculate_business_days

Location: models/utility_tools.py

Utility tool with type hints for automatic schema generation.

3. create_lead_from_description

Location: models/crm_lead.py

Business logic tool that creates CRM leads (destructive operation).

4. generate_sales_report

Location: models/sale_order.py

Complex reporting tool with data aggregation.

5. get_record_info

Location: models/ir_model.py

Legacy code example with manual JSON schema.

6. send_notification_to_user

Location: models/res_users.py

User interaction tool for in-app notifications.

Key Concepts

Type Hints for Schema Generation

def my_tool(self, name: str, count: int = 10) -> dict:
    ...

Metadata Hints

  • read_only_hint=True - Doesn't modify data
  • idempotent_hint=True - Safe to call multiple times
  • destructive_hint=True - Modifies/creates/deletes data

Technical Specifications

  • Version: 18.0.1.0.0
  • License: LGPL-3
  • Dependencies: llm, llm_tool, crm, sale

Related Modules

  • ``llm_tool`` - Tool framework (required reading)
  • ``llm_mcp_server`` - MCP integration
  • ``llm_letta`` - Letta agent integration

License

LGPL-3


© 2025 Apexive Solutions LLC

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with