Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasyu888 committed May 24, 2024
1 parent 231b9e4 commit 2ccc20c
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions bedrock/invoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,15 @@ def invoke_agent(agents_runtime_client, agent_id, agent_alias_id, session_id, pr
return completion


runtime_client=boto3.client(
service_name="bedrock-agent-runtime", region_name="us-east-1"
)


response = invoke_agent(
agents_runtime_client=runtime_client,
agent_id="7O1Q74HUYJ",
agent_alias_id="EGWXPZWTLS",
session_id=str(uuid.uuid1()),
prompt="give me some observations about NF1fl/fl;Dhh-Cre"
)
json.loads(response)
if __name__ == "__main__":
runtime_client = boto3.client(
service_name="bedrock-agent-runtime", region_name="us-east-1"
)
response = invoke_agent(
agents_runtime_client=runtime_client,
agent_id="7O1Q74HUYJ",
agent_alias_id="EGWXPZWTLS",
session_id=str(uuid.uuid1()),
prompt="give me some observations about NF1fl/fl;Dhh-Cre"
)
print(json.loads(response))

0 comments on commit 2ccc20c

Please sign in to comment.