feat: factbase-cloud integration — knowledge_agent subagent with M2M auth
This commit is contained in:
@@ -6,6 +6,9 @@ _DEFAULTS = {
|
||||
'/agent-claw/model-id': 'us.anthropic.claude-sonnet-4-6',
|
||||
'/agent-claw/config/compaction_model_id': 'us.anthropic.claude-3-5-haiku-20241022-v1:0',
|
||||
'/agent-claw/aws-mcp-url': 'https://aws-mcp.us-east-1.api.aws/mcp',
|
||||
'/agent-claw/factbase-cloud/client-id': '',
|
||||
'/agent-claw/factbase-cloud/client-secret': '',
|
||||
'/agent-claw/factbase-cloud/mcp-url': '',
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +16,7 @@ def _load():
|
||||
ssm = boto3.client('ssm', region_name='us-east-1')
|
||||
names = list(_DEFAULTS.keys())
|
||||
try:
|
||||
resp = ssm.get_parameters(Names=names)
|
||||
resp = ssm.get_parameters(Names=names, WithDecryption=True)
|
||||
found = {p['Name']: p['Value'] for p in resp['Parameters']}
|
||||
except Exception:
|
||||
found = {}
|
||||
@@ -25,3 +28,6 @@ _params = _load()
|
||||
AGENT_MODEL_ID: str = _params['/agent-claw/model-id']
|
||||
COMPACTION_MODEL_ID: str = _params['/agent-claw/config/compaction_model_id']
|
||||
AWS_MCP_URL: str = _params['/agent-claw/aws-mcp-url']
|
||||
FACTBASE_CLOUD_CLIENT_ID: str = _params.get('/agent-claw/factbase-cloud/client-id', '')
|
||||
FACTBASE_CLOUD_CLIENT_SECRET: str = _params.get('/agent-claw/factbase-cloud/client-secret', '')
|
||||
FACTBASE_CLOUD_MCP_URL: str = _params.get('/agent-claw/factbase-cloud/mcp-url', '')
|
||||
|
||||
Reference in New Issue
Block a user