AgentData.xml
2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="UTF-8"?>
<entity-facade-xml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/entity-facade-3.xsd" type="seed">
<!-- ========================================================= -->
<!-- Agent Runtime Scheduled Job -->
<!-- ========================================================= -->
<moqui.service.ScheduledJob
jobName="AgentQueuePoller"
description="Polls Agent Queue and processes pending tasks"
serviceName="AgentServices.poll#AgentQueue"
cronExpression="0/30 * * * * ?"
runAsUser="ADMIN"
paused="N"/>
<!-- ========================================================= -->
<!-- Agent User Account (for authentication) -->
<!-- ========================================================= -->
<moqui.security.UserAccount
userId="AGENT_CLAUDE"
username="agent-claude"
currentPassword="16ac58bbfa332c1c55bd98b53e60720bfa90d394"
passwordHashType="SHA"
enabled="Y"
description="Agent user for AI runtime"/>
<moqui.security.UserGroup userGroupId="AgentUsers" description="AI Agent Users"/>
<moqui.security.UserGroupMember userGroupId="AgentUsers" userId="AGENT_CLAUDE" fromDate="2026-02-04 00:00:00.000"/>
<!-- Agent users have permission to execute the delegation service -->
<moqui.security.ArtifactGroup artifactGroupId="AgentDelegationServices" description="Agent Tool Delegation Services"/>
<moqui.security.ArtifactGroupMember artifactGroupId="AgentDelegationServices" artifactName="AgentServices.call#McpToolWithDelegation" artifactTypeEnumId="AT_SERVICE"/>
<moqui.security.ArtifactAuthz userGroupId="AgentUsers" artifactGroupId="AgentDelegationServices" authzTypeEnumId="AUTHZT_ALLOW" authzActionEnumId="AUTHZA_ALL"/>
<!-- ========================================================= -->
<!-- Sample AI Configuration (for testing) -->
<!-- ========================================================= -->
<!-- VLLM Configuration for Brainfood -->
<moqui.mcp.agent.ProductStoreAiConfig
productStoreId="POPCOMMERCE_RETAIL"
aiConfigId="DEFAULT"
serviceTypeEnumId="AistVllm"
description="Brainfood VLLM for Agent Runtime"
endpointUrl="http://crunchy.private.brainfood.com:11434/v1"
apiKey="brainfood"
modelName="bf-ai"
temperature="0.7"
maxTokens="4096"
/>
</entity-facade-xml>