INNER CODE UNIT · Python
main
aws-samples/serverless-samples · apigw-ai-agents/strands-lambda/api-inspector-agent/src/main.py:158
def main():
"""
Local invocation function for testing the agent
"""
print("Starting local invocation of API Inspector Agent...")
print("Please provide your API ID as input:")
try:
# Get user input for the request
user_request = input("Enter your API ID: ")
if not user_request.strip():
print("No request provided. Exiting.")
return
request_event = {"request": user_request}
print(f"Processing request: {user_request}")
print("-" * 50)