108 lines
3.1 KiB
YAML
108 lines
3.1 KiB
YAML
# MCPletA2A Reference Implementation — Configuration
|
||
# Cancel-Rate Reduction Scenario (キャンセル率低減シナリオ)
|
||
|
||
#llm:
|
||
# provider: claude
|
||
# model: claude-sonnet-4-6
|
||
# apiKey: ${ANTHROPIC_API_KEY}
|
||
|
||
# --- OpenRouter alternative ---
|
||
llm:
|
||
provider: openrouter
|
||
model: anthropic/claude-sonnet-4-5
|
||
apiKey: ${OPENROUTER_API_KEY}
|
||
#siteUrl: https://your-site.example.com
|
||
#siteName: MCPletA2A
|
||
|
||
# Mock service base URL (replace with real service URLs in production)
|
||
mockServiceUrl: http://localhost:5100
|
||
|
||
pools:
|
||
media-pool:
|
||
rateLimitPerMinute: 60
|
||
info-pool:
|
||
rateLimitPerMinute: 120
|
||
|
||
# MCPlet server processes (spawned by the Host via stdio transport).
|
||
# ${REF_IMPL_DIST} is set by start.sh to the reference_impl/dist directory.
|
||
mcpletServers:
|
||
- name: crm-mcplet
|
||
command: node
|
||
args: ["${REF_IMPL_DIST}/mcplets/internal/crm/index.js"]
|
||
env:
|
||
MOCK_SERVICE_URL: http://localhost:5100
|
||
- name: erp-mcplet
|
||
command: node
|
||
args: ["${REF_IMPL_DIST}/mcplets/internal/erp/index.js"]
|
||
env:
|
||
MOCK_SERVICE_URL: http://localhost:5100
|
||
- name: hr-mcplet
|
||
command: node
|
||
args: ["${REF_IMPL_DIST}/mcplets/internal/hr/index.js"]
|
||
env:
|
||
MOCK_SERVICE_URL: http://localhost:5100
|
||
- name: web-access-mcplet
|
||
command: node
|
||
args: ["${REF_IMPL_DIST}/mcplets/info-pool/web-access/index.js"]
|
||
env:
|
||
MOCK_SERVICE_URL: http://localhost:5100
|
||
- name: api-access-mcplet
|
||
command: node
|
||
args: ["${REF_IMPL_DIST}/mcplets/info-pool/api-access/index.js"]
|
||
env:
|
||
MOCK_SERVICE_URL: http://localhost:5100
|
||
- name: site-access-mcplet
|
||
command: node
|
||
args: ["${REF_IMPL_DIST}/mcplets/media-pool/site-access/index.js"]
|
||
env:
|
||
MOCK_SERVICE_URL: http://localhost:5100
|
||
- name: email-mcplet
|
||
command: node
|
||
args: ["${REF_IMPL_DIST}/mcplets/media-pool/email/index.js"]
|
||
env:
|
||
MOCK_SERVICE_URL: http://localhost:5100
|
||
- name: sns-mcplet
|
||
command: node
|
||
args: ["${REF_IMPL_DIST}/mcplets/media-pool/sns/index.js"]
|
||
env:
|
||
MOCK_SERVICE_URL: http://localhost:5100
|
||
|
||
agents:
|
||
info-gathering-agent:
|
||
class: InfoGatheringAgent
|
||
accessiblePools: [info-pool]
|
||
description: 天気予報・在庫・顧客キャンセル傾向を収集・分析するAgent
|
||
planning-agent:
|
||
class: PlanningAgent
|
||
accessiblePools: []
|
||
description: 収集データを元にキャンペーン施策を立案するAgent
|
||
dispatch-agent:
|
||
class: DispatchAgent
|
||
accessiblePools: [media-pool]
|
||
description: 承認済みの施策を実行(Email・SNS送信)するAgent
|
||
|
||
directorAgent:
|
||
# 毎朝 7:00 にトリガー
|
||
schedule: "0 7 * * *"
|
||
targetAgentId: info-gathering-agent
|
||
promptTemplate: |
|
||
今日の天気予報と在庫情報、キャンセル傾向の高い予約客情報を収集・分析し、
|
||
キャンセル率を下げる施策を立案するためのデータを収集してください。
|
||
対象日付: {date}
|
||
maxRetries: 3
|
||
backoffMs: 5000
|
||
|
||
externalAgents: []
|
||
|
||
passkey:
|
||
mode: https
|
||
rpId: a2a-demo.mcplet.ai
|
||
fido2ServerUrl: https://fido2.epk.amipro.me
|
||
apiPort: 8443
|
||
|
||
dashboard:
|
||
port: 4000
|
||
|
||
a2aExternalEndpoint:
|
||
port: 4001
|