fix: unconditional system prompt for call_aws availability
This commit is contained in:
@@ -496,7 +496,7 @@ async def main(payload: dict, context):
|
||||
_now = datetime.now(_tz)
|
||||
_time_str = _now.strftime('%A, %B %d, %Y %I:%M %p %Z')
|
||||
system_prompt = system_prompt + f'\n\nCurrent date/time: {_time_str}'
|
||||
system_prompt += 'AWS access: Native boto3 tools available (aws_list_lambda_functions, aws_get_cost_and_usage, aws_describe_service). If AWS MCP Server connected at startup: call_aws (any AWS API), search_documentation, read_documentation, run_script also available.'
|
||||
system_prompt += 'AWS tools available: call_aws (any AWS API via AWS MCP Server), aws_list_lambda_functions, aws_get_cost_and_usage, aws_describe_service. Use call_aws directly for AWS API calls — do NOT say you lack AWS access.'
|
||||
print(f'[main] System prompt time injection: {_time_str}')
|
||||
|
||||
# Model: claude-sonnet-4-6 via cross-region inference
|
||||
|
||||
Reference in New Issue
Block a user