- tools/home_assistant.py: remove hardcoded URL/token; read from per-user
config injected via set_ha_config() at invocation time; return helpful
enrollment prompt when HA not configured
- main.py: inject HA config from user_profile.services at startup; add
manage_service tool (enroll/remove/list) that persists to DynamoDB;
show enrolled services in user context; add USERS_TABLE_NAME env var
- agent-runner/handler.py: pass services dict from DDB user record in
user_profile payload; initialize services={} for new users
- cdk/lib/agent-claw-stack.ts: grant usersTable read/write to runtime1Role
so manage_service tool can update user records
- agentclaw/agentcore/agentcore.json: add USERS_TABLE_NAME env var
59 lines
1.4 KiB
JSON
59 lines
1.4 KiB
JSON
{
|
|
"$schema": "https://schema.agentcore.aws.dev/v1/agentcore.json",
|
|
"name": "agentclaw",
|
|
"version": 1,
|
|
"managedBy": "CDK",
|
|
"tags": {
|
|
"agentcore:created-by": "agentcore-cli",
|
|
"agentcore:project-name": "agentclaw"
|
|
},
|
|
"runtimes": [
|
|
{
|
|
"name": "agent_claw_main",
|
|
"build": "CodeZip",
|
|
"entrypoint": "main.py",
|
|
"codeLocation": "app/agent_claw_main/",
|
|
"runtimeVersion": "PYTHON_3_14",
|
|
"networkMode": "PUBLIC",
|
|
"protocol": "HTTP",
|
|
"environmentVariables": {
|
|
"OAUTH_START_URL": "https://sptejrymri.execute-api.us-east-1.amazonaws.com/oauth/start",
|
|
"USERS_TABLE_NAME": "agent-claw-users"
|
|
}
|
|
}
|
|
],
|
|
"memories": [
|
|
{
|
|
"name": "AgentClawMemory",
|
|
"eventExpiryDuration": 30,
|
|
"strategies": [
|
|
{
|
|
"type": "SEMANTIC",
|
|
"namespaces": [
|
|
"/users/{actorId}/facts"
|
|
]
|
|
},
|
|
{
|
|
"type": "SUMMARIZATION",
|
|
"namespaces": [
|
|
"/summaries/{actorId}/{sessionId}"
|
|
]
|
|
},
|
|
{
|
|
"type": "USER_PREFERENCE",
|
|
"namespaces": [
|
|
"/users/{actorId}/preferences"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"credentials": [],
|
|
"evaluators": [],
|
|
"onlineEvalConfigs": [],
|
|
"agentCoreGateways": [],
|
|
"policyEngines": [],
|
|
"configBundles": [],
|
|
"abTests": [],
|
|
"httpGateways": []
|
|
} |