ai*
This commit is contained in:
38
ai_mcp/data/ir_actions_server_data.xml
Normal file
38
ai_mcp/data/ir_actions_server_data.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="ai.ir_actions_server_get_models" model="ir.actions.server">
|
||||
<field name="use_in_mcp" eval="True"/>
|
||||
<field name="is_readonly" eval="True"/>
|
||||
</record>
|
||||
|
||||
<record id="ai.ir_actions_server_get_fields" model="ir.actions.server">
|
||||
<field name="use_in_mcp" eval="True"/>
|
||||
<field name="is_readonly" eval="True"/>
|
||||
</record>
|
||||
|
||||
<record id="ai.ir_actions_server_search" model="ir.actions.server">
|
||||
<field name="use_in_mcp" eval="True"/>
|
||||
<field name="is_readonly" eval="True"/>
|
||||
</record>
|
||||
|
||||
<record id="ai.ir_actions_server_read_group" model="ir.actions.server">
|
||||
<field name="use_in_mcp" eval="True"/>
|
||||
<field name="is_readonly" eval="True"/>
|
||||
</record>
|
||||
|
||||
<record id="ir_actions_server_mcp_retrieve_initial_context" model="ir.actions.server">
|
||||
<field name="name">AI Tool: MCP Retrieve initial context</field>
|
||||
<field name="state">code</field>
|
||||
<field name="model_id" ref="ai.model_ai_tool"/>
|
||||
<field name="use_in_mcp" eval="True"/>
|
||||
<field name="ai_tool_name">ai_tool_mcp_retrieve_initial_context</field>
|
||||
<field name="is_readonly" eval="True"/>
|
||||
<field name="ai_tool_description">
|
||||
Retrieves information about the current user, their timezone and their companies.
|
||||
MANDATORY: You MUST call this tool exactly once at the very beginning of every conversation, before invoking any other tool or producing any response to the user.
|
||||
It returns essential context that is required to correctly use every other tool: the current user, their timezone, their active company and all companies available to them, plus general instructions.
|
||||
Skipping this call will lead to incorrect tool usage (wrong timezone, wrong company scope). Do not call it more than once in the same conversation.
|
||||
</field>
|
||||
<field name="code">ai['result'] = record._ai_tool_mcp_retrieve_initial_context()</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user