Skip to content

Commit 829a5c3

Browse files
committed
updated package versiosn to what I have locally
1 parent ab44b5a commit 829a5c3

File tree

7 files changed

+1996
-1
lines changed

7 files changed

+1996
-1
lines changed

aws-opentelemetry-distro/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ dependencies = [
8484
"opentelemetry-instrumentation-cassandra == 0.54b1",
8585
"langchain == 0.3.27",
8686
"langchain-core == 0.3.72",
87-
"langchain-aws == 0.1.16",
87+
"langchain-aws == 0.2.15",
8888
"langchain-community == 0.3.27",
8989
"langgraph == 0.6.3",
9090
]

aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test-opentelemetry-instrumentation-langchain-v2/fixtures/vcr_cassettes/test_agents.yaml

Lines changed: 466 additions & 0 deletions
Large diffs are not rendered by default.

aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test-opentelemetry-instrumentation-langchain-v2/fixtures/vcr_cassettes/test_agents_with_events_with_content.yaml

Lines changed: 651 additions & 0 deletions
Large diffs are not rendered by default.

aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test-opentelemetry-instrumentation-langchain-v2/fixtures/vcr_cassettes/test_agents_with_events_with_no_content.yaml

Lines changed: 617 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
interactions:
2+
- request:
3+
body: '{"anthropic_version": "bedrock-2023-05-31", "messages": [{"role": "user",
4+
"content": "What''s 5 + 5?"}], "system": "You are a mathematician.", "max_tokens":
5+
1000, "temperature": 0}'
6+
headers:
7+
Accept:
8+
- !!binary |
9+
YXBwbGljYXRpb24vanNvbg==
10+
Content-Length:
11+
- '179'
12+
Content-Type:
13+
- !!binary |
14+
YXBwbGljYXRpb24vanNvbg==
15+
User-Agent:
16+
- !!binary |
17+
Qm90bzMvMS40MC4zIG1kL0JvdG9jb3JlIzEuNDAuMyB1YS8yLjEgb3MvbWFjb3MjMjQuNS4wIG1k
18+
L2FyY2gjYXJtNjQgbGFuZy9weXRob24jMy4xMS4xMyBtZC9weWltcGwjQ1B5dGhvbiBtL2IsWixE
19+
IGNmZy9yZXRyeS1tb2RlI2xlZ2FjeSBCb3RvY29yZS8xLjQwLjM=
20+
amz-sdk-invocation-id:
21+
- !!binary |
22+
ZTgzYzY1MDItM2M0Zi00NmIxLTg0MmEtMWUyOWFiN2NlNGM5
23+
amz-sdk-request:
24+
- !!binary |
25+
YXR0ZW1wdD0x
26+
method: POST
27+
uri: https://bedrock-runtime.us-west-2.amazonaws.com/model/anthropic.claude-3-haiku-20240307-v1%3A0/invoke
28+
response:
29+
body:
30+
string: '{"id":"msg_bdrk_01AJS6KmqXvybCZpFmvbDJKV","type":"message","role":"assistant","model":"claude-3-haiku-20240307","content":[{"type":"text","text":"10."}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":21,"output_tokens":6}}'
31+
headers:
32+
Connection:
33+
- keep-alive
34+
Content-Length:
35+
- '245'
36+
Content-Type:
37+
- application/json
38+
Date:
39+
- Wed, 06 Aug 2025 20:23:52 GMT
40+
X-Amzn-Bedrock-Input-Token-Count:
41+
- '21'
42+
X-Amzn-Bedrock-Invocation-Latency:
43+
- '270'
44+
X-Amzn-Bedrock-Output-Token-Count:
45+
- '6'
46+
x-amzn-RequestId:
47+
- 0bfc2606-772e-4e8a-853f-3e26393c6a41
48+
status:
49+
code: 200
50+
message: OK
51+
version: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
interactions:
2+
- request:
3+
body: '{"anthropic_version": "bedrock-2023-05-31", "messages": [{"role": "user",
4+
"content": "What''s 5 + 5?"}], "system": "You are a mathematician.", "max_tokens":
5+
1000, "temperature": 0}'
6+
headers:
7+
Accept:
8+
- !!binary |
9+
YXBwbGljYXRpb24vanNvbg==
10+
Content-Length:
11+
- '179'
12+
Content-Type:
13+
- !!binary |
14+
YXBwbGljYXRpb24vanNvbg==
15+
User-Agent:
16+
- !!binary |
17+
Qm90bzMvMS40MC4zIG1kL0JvdG9jb3JlIzEuNDAuMyB1YS8yLjEgb3MvbWFjb3MjMjQuNS4wIG1k
18+
L2FyY2gjYXJtNjQgbGFuZy9weXRob24jMy4xMS4xMyBtZC9weWltcGwjQ1B5dGhvbiBtL2IsWixE
19+
IGNmZy9yZXRyeS1tb2RlI2xlZ2FjeSBCb3RvY29yZS8xLjQwLjM=
20+
amz-sdk-invocation-id:
21+
- !!binary |
22+
NDhiOTJhODMtMTJjMS00N2VlLThkZmItMDljMmZhMTJiZGRj
23+
amz-sdk-request:
24+
- !!binary |
25+
YXR0ZW1wdD0x
26+
method: POST
27+
uri: https://bedrock-runtime.us-west-2.amazonaws.com/model/anthropic.claude-3-haiku-20240307-v1%3A0/invoke
28+
response:
29+
body:
30+
string: '{"id":"msg_bdrk_01UJQwxyahyo3ZYBanZo6Mqw","type":"message","role":"assistant","model":"claude-3-haiku-20240307","content":[{"type":"text","text":"10."}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":21,"output_tokens":6}}'
31+
headers:
32+
Connection:
33+
- keep-alive
34+
Content-Length:
35+
- '245'
36+
Content-Type:
37+
- application/json
38+
Date:
39+
- Wed, 06 Aug 2025 20:23:51 GMT
40+
X-Amzn-Bedrock-Input-Token-Count:
41+
- '21'
42+
X-Amzn-Bedrock-Invocation-Latency:
43+
- '350'
44+
X-Amzn-Bedrock-Output-Token-Count:
45+
- '6'
46+
x-amzn-RequestId:
47+
- 959a0ba7-f626-4203-826e-211b0f4c8f70
48+
status:
49+
code: 200
50+
message: OK
51+
version: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
interactions:
2+
- request:
3+
body: '{"max_tokens_to_sample": 500, "prompt": "\n\nHuman: You are a playwright.
4+
Given the title of play and the era it is set in, it is your job to write a
5+
synopsis for that title.\n\n Title: Tragedy at sunset on the beach\n Era:
6+
Victorian England\n Playwright: This is a synopsis for the above play:\n\nAssistant:",
7+
"temperature": 0.7}'
8+
headers:
9+
Accept:
10+
- !!binary |
11+
YXBwbGljYXRpb24vanNvbg==
12+
Content-Length:
13+
- '339'
14+
Content-Type:
15+
- !!binary |
16+
YXBwbGljYXRpb24vanNvbg==
17+
User-Agent:
18+
- !!binary |
19+
Qm90bzMvMS40MC4zIG1kL0JvdG9jb3JlIzEuNDAuMyB1YS8yLjEgb3MvbWFjb3MjMjQuNS4wIG1k
20+
L2FyY2gjYXJtNjQgbGFuZy9weXRob24jMy4xMS4xMyBtZC9weWltcGwjQ1B5dGhvbiBtL2IsWixE
21+
IGNmZy9yZXRyeS1tb2RlI2xlZ2FjeSBCb3RvY29yZS8xLjQwLjM=
22+
amz-sdk-invocation-id:
23+
- !!binary |
24+
YTAzMjlmZjUtYWUyYi00YjVlLWJiYzEtZGFlOTIxZDliNTc1
25+
amz-sdk-request:
26+
- !!binary |
27+
YXR0ZW1wdD0x
28+
method: POST
29+
uri: https://bedrock-runtime.us-west-2.amazonaws.com/model/anthropic.claude-v2/invoke
30+
response:
31+
body:
32+
string: '{"type":"completion","completion":" Here is a potential synopsis for
33+
the play \"Tragedy at Sunset on the Beach\" set in Victorian England:\n\nIt
34+
is the height of summer in a seaside town in Victorian England. Lady Elizabeth,
35+
a young wealthy woman, is engaged to be married to Lord Henry, a respectable
36+
gentleman. However, Elizabeth has fallen deeply in love with Thomas, a poor
37+
fisherman she met on the beach one sunset. They begin a secret romance, meeting
38+
every evening at sunset on the beach. \n\nAs the wedding day approaches, Elizabeth
39+
becomes increasingly distraught, torn between her duty to marry Henry and
40+
her passionate love for Thomas. On the eve of her wedding, Elizabeth slips
41+
away to the beach one last time to see Thomas and say goodbye. When Henry
42+
discovers her affair, he is enraged and confronts Thomas on the beach at sunset.
43+
A physical altercation ensues, during which Henry accidentally strikes Thomas,
44+
killing him. \n\nElizabeth arrives at the beach to find her lifeless lover
45+
and Henry standing over him. Overcome by grief and anguish, she throws herself
46+
into the ocean. Henry is arrested for murder as the sun sets on the tragedy
47+
and ruined lives brought about by societal expectations, class differences,
48+
and forbidden love.","stop_reason":"stop_sequence","stop":"\n\nHuman:"}'
49+
headers:
50+
Connection:
51+
- keep-alive
52+
Content-Length:
53+
- '1301'
54+
Content-Type:
55+
- application/json
56+
Date:
57+
- Wed, 06 Aug 2025 20:23:37 GMT
58+
X-Amzn-Bedrock-Input-Token-Count:
59+
- '70'
60+
X-Amzn-Bedrock-Invocation-Latency:
61+
- '10380'
62+
X-Amzn-Bedrock-Output-Token-Count:
63+
- '256'
64+
x-amzn-RequestId:
65+
- 0c01f57a-6ab5-40fe-b9e8-cc42cdd68463
66+
status:
67+
code: 200
68+
message: OK
69+
- request:
70+
body: '{"max_tokens_to_sample": 500, "prompt": "\n\nHuman: You are a play critic
71+
from the New York Times. Given the synopsis of play, it is your job to write
72+
a review for that play.\n\n Play Synopsis:\n Here is a potential synopsis
73+
for the play \"Tragedy at Sunset on the Beach\" set in Victorian England:\n\nIt
74+
is the height of summer in a seaside town in Victorian England. Lady Elizabeth,
75+
a young wealthy woman, is engaged to be married to Lord Henry, a respectable
76+
gentleman. However, Elizabeth has fallen deeply in love with Thomas, a poor
77+
fisherman she met on the beach one sunset. They begin a secret romance, meeting
78+
every evening at sunset on the beach. \n\nAs the wedding day approaches, Elizabeth
79+
becomes increasingly distraught, torn between her duty to marry Henry and her
80+
passionate love for Thomas. On the eve of her wedding, Elizabeth slips away
81+
to the beach one last time to see Thomas and say goodbye. When Henry discovers
82+
her affair, he is enraged and confronts Thomas on the beach at sunset. A physical
83+
altercation ensues, during which Henry accidentally strikes Thomas, killing
84+
him. \n\nElizabeth arrives at the beach to find her lifeless lover and Henry
85+
standing over him. Overcome by grief and anguish, she throws herself into the
86+
ocean. Henry is arrested for murder as the sun sets on the tragedy and ruined
87+
lives brought about by societal expectations, class differences, and forbidden
88+
love.\n Review from a New York Times play critic of the above play:\n\nAssistant:",
89+
"temperature": 0.7}'
90+
headers:
91+
Accept:
92+
- !!binary |
93+
YXBwbGljYXRpb24vanNvbg==
94+
Content-Length:
95+
- '1517'
96+
Content-Type:
97+
- !!binary |
98+
YXBwbGljYXRpb24vanNvbg==
99+
User-Agent:
100+
- !!binary |
101+
Qm90bzMvMS40MC4zIG1kL0JvdG9jb3JlIzEuNDAuMyB1YS8yLjEgb3MvbWFjb3MjMjQuNS4wIG1k
102+
L2FyY2gjYXJtNjQgbGFuZy9weXRob24jMy4xMS4xMyBtZC9weWltcGwjQ1B5dGhvbiBtL2IsWixE
103+
IGNmZy9yZXRyeS1tb2RlI2xlZ2FjeSBCb3RvY29yZS8xLjQwLjM=
104+
amz-sdk-invocation-id:
105+
- !!binary |
106+
ODAwMWEyNWMtYWY1ZC00YjIwLWI2NTktODFmYzFiMjA1NjJh
107+
amz-sdk-request:
108+
- !!binary |
109+
YXR0ZW1wdD0x
110+
method: POST
111+
uri: https://bedrock-runtime.us-west-2.amazonaws.com/model/anthropic.claude-v2/invoke
112+
response:
113+
body:
114+
string: "{\"type\":\"completion\",\"completion\":\" Here is a potential review
115+
of the play \\\"Tragedy at Sunset on the Beach\\\" from a New York Times critic:\\n\\nTragedy
116+
at Sunset on the Beach is a heartrending new play that vividly brings to life
117+
a tale of forbidden love and its devastating consequences. Set in a seaside
118+
Victorian town, the play centers on the ill-fated romance between Lady Elizabeth,
119+
an upper-class woman engaged to the respectable Lord Henry, and Thomas, a
120+
poor local fisherman. Their secret trysts on the beach at sunset provide an
121+
atmospheric backdrop for their blossoming passion. \\n\\nPlaywright John Smith
122+
expertly ratchets up the dramatic tension as their clandestine affair collides
123+
with Lady Elizabeth\u2019s impending marriage. The raw emotion and moral dilemmas
124+
of the lovers are rendered with nuance by the first-rate cast. Portia James
125+
is captivating as Lady Elizabeth, conveying her character\u2019s mix of romantic
126+
optimism and anguished indecision. Meanwhile, Tom Wilson brings an earthy
127+
charm to the role of Thomas, capturing the character\u2019s humility and deep
128+
affection for Elizabeth. \\n\\nThe play\u2019s stunning climax at sunset on
129+
the eve of Elizabeth\u2019s wedding is stagecraft at its finest. When Henry
130+
violently confronts Thomas on the beach, the ensuing scuffle leads to accidental
131+
tragedy. As Elizabeth arrives to find her dead lover and Henry above his body,
132+
the scene culminates in heartbreaking fashion with her suicide by drowning.
133+
\\n\\nWith its themes of social rigidity and forbidden interclass desire,
134+
Tragedy at Sunset on the Beach has clear echoes of Shakespearean drama, while
135+
still feeling wholly original. The playwright has crafted an absorbing period
136+
piece that will deeply affect audiences, leading them to reflect on the timeless
137+
consequences of following one\u2019s heart over societal expectations. This
138+
is world-class theater that is not to be missed.\",\"stop_reason\":\"stop_sequence\",\"stop\":\"\\n\\nHuman:\"}"
139+
headers:
140+
Connection:
141+
- keep-alive
142+
Content-Length:
143+
- '1937'
144+
Content-Type:
145+
- application/json
146+
Date:
147+
- Wed, 06 Aug 2025 20:23:51 GMT
148+
X-Amzn-Bedrock-Input-Token-Count:
149+
- '311'
150+
X-Amzn-Bedrock-Invocation-Latency:
151+
- '14035'
152+
X-Amzn-Bedrock-Output-Token-Count:
153+
- '387'
154+
x-amzn-RequestId:
155+
- e3f1e287-24cd-438e-ac93-5bd6ce4229bd
156+
status:
157+
code: 200
158+
message: OK
159+
version: 1

0 commit comments

Comments
 (0)