Repository
OCA/ai · module folder · Try on Runboat
Module version
Category
AI
Folder size
0.11 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/ai
Last tracking update
2026-08-10 17:15:25
Authors
Odoo Community Association (OCA), Binhex
Maintainers
Odoo Community Association (OCA), Binhex
Committers
Weblate, OCA-git-bot, oca-ci, Ariel Barreiros, Adasat Torres de Leon
Odoo dependencies
OCA/ai:
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None
Description
This module is used for adding extra parameters to the AI OCA Bridge's payloads

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
ai_bridge_form_view_extra_parameters ai.bridge.form.extra.parameters ai.bridge form Inherits ai_oca_bridge.ai_bridge_form_view
view_ai_extra_parameter_form ai.extra.parameter.form ai.extra.parameter form New
view_ai_extra_parameter_tree ai.extra.parameter.tree ai.extra.parameter list New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (1)
  • extra_parameter_ids Many2many → ai.extra.parameter
    help='Additional parameters to be sent to the AI system. These can be used to customize the AI request using expressions or fixed input.' string='Extra Parameters' args: 'ai.extra.parameter'
Public methods (0)

No public methods.

New fields (5)
  • evaluate_type Selection
    default='expression' help="Defines how the parameter is evaluated. 'expression' means it will be evaluated as a Python expression, 'formula' means it will be evaluated as a formula expression." required=True args: [('expression', 'Expression'), ('formula', 'Formula')]
  • expression Char
  • formula Text
    default="if object:\n result = {'result_key': object.property}\n"
  • name Char
    required=True
  • parameter_type Selection
    default='record' help="Defines the context in which this parameter is evaluated. 'record' means it will be evaluated in the context of the record being processed, 'self' means it will be evaluated in the context of the AI bridge itself." required=True args: [('record', 'Record'), ('self', 'Bridge Self')]
Public methods (3)
  • evaluate_parameter(self, obj=None)
  • validate_parameter_expression(self)
  • validate_parameter_formula(self)

Loading…

Loading…