mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-21 15:12:26 +02:00
336 lines
10 KiB
YAML
336 lines
10 KiB
YAML
interactions:
|
|
- request:
|
|
body: '{"max_tokens": 1024, "messages": [{"role": "user", "content": "Write me
|
|
an incredible haiku about water."}], "model": "claude-3-haiku-20240307", "temperature":
|
|
0.0, "tools": [{"name": "master_haiku_generator", "description": "Generates
|
|
a haiku based on the provided topics.", "input_schema": {"type": "object", "properties":
|
|
{"request": {"type": "object", "properties": {"topic": {"minItems": 3, "maxItems":
|
|
3, "type": "array", "items": {"type": "string"}}}, "required": ["topic"]}},
|
|
"required": ["request"]}}]}'
|
|
headers:
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- gzip, deflate
|
|
anthropic-version:
|
|
- '2023-06-01'
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '511'
|
|
content-type:
|
|
- application/json
|
|
host:
|
|
- api.anthropic.com
|
|
user-agent:
|
|
- Anthropic/Python 0.34.2
|
|
x-stainless-arch:
|
|
- arm64
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- MacOS
|
|
x-stainless-package-version:
|
|
- 0.34.2
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.11.9
|
|
method: POST
|
|
uri: https://api.anthropic.com/v1/messages
|
|
response:
|
|
body:
|
|
string: !!binary |
|
|
H4sIAAAAAAAAA1SQW0vDQBCF/0o4z1tI7U320UbtgxUEEWspYZuOaWi6G3dmqW3If5esiPo0zOV8
|
|
5zAtqh00jlzm6fCpdKZ5f2uy20m2uF9dXraHu20GBTk31F8RsykJCt7V/cAwVyzGChSObkc1NIra
|
|
hB0NRoO9qQ5hcJVejdNROoNC4ayQFeh1+0MU+uy1sWgsyFNScWKSqE3M1gVJTkbIa3TqV+VcnQfu
|
|
g8T0fR/ydDh5WLJdBjln8/nrafq4f3armwsUrDnG/IaFfB7heUmWvBHne4ptgkC3ENdUBfQa0RSb
|
|
rtsosLgm92TY2f/mccH0EcgWBG1DXSuE+CLdfkNzcQeyDD26Hiu4IH9n01nXfQEAAP//AwCBPb9K
|
|
gQEAAA==
|
|
headers:
|
|
CF-Cache-Status:
|
|
- DYNAMIC
|
|
CF-RAY:
|
|
- 8c22635df8630cbe-EWR
|
|
Connection:
|
|
- keep-alive
|
|
Content-Encoding:
|
|
- gzip
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Thu, 12 Sep 2024 19:43:45 GMT
|
|
Server:
|
|
- cloudflare
|
|
Transfer-Encoding:
|
|
- chunked
|
|
X-Robots-Tag:
|
|
- none
|
|
request-id:
|
|
- req_017HEeP2VrXgjXQjYMVBGzPd
|
|
via:
|
|
- 1.1 google
|
|
x-cloud-trace-context:
|
|
- 9c50a7971351cc13fbc07d05b39bc3e7
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: '{"max_tokens": 1024, "messages": [{"role": "user", "content": "Write me
|
|
an incredible haiku about water."}], "model": "claude-3-5-sonnet-20240620",
|
|
"temperature": 0.0, "tools": [{"name": "master_haiku_generator", "description":
|
|
"Generates a haiku based on the provided topics.", "input_schema": {"type":
|
|
"object", "properties": {"request": {"type": "object", "properties": {"topic":
|
|
{"minItems": 3, "maxItems": 3, "type": "array", "items": {"type": "string"}}},
|
|
"required": ["topic"]}}, "required": ["request"]}}]}'
|
|
headers:
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- gzip, deflate
|
|
anthropic-version:
|
|
- '2023-06-01'
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '514'
|
|
content-type:
|
|
- application/json
|
|
host:
|
|
- api.anthropic.com
|
|
user-agent:
|
|
- Anthropic/Python 0.34.2
|
|
x-stainless-arch:
|
|
- arm64
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- MacOS
|
|
x-stainless-package-version:
|
|
- 0.34.2
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.11.9
|
|
method: POST
|
|
uri: https://api.anthropic.com/v1/messages
|
|
response:
|
|
body:
|
|
string: !!binary |
|
|
H4sIAAAAAAAAA2xSwW7bMAz9FY6XXJwgSbsN83XF0A4dMLTbDmsKQ5GYWI0sOSKVLA7y74WUdkOB
|
|
nURRJN971DuiNVhjx+tmOrvfbWfXw52++D27/rT5NWyu9ju7wQrl0FOuIma1JqwwBpcTitmyKC9Y
|
|
YRcMOaxRO5UMjS/G78ccvCcZz6fzy+mH+RQr1MELecH64fg6VOhPbi9HjZ8pirLeHd7BzcjAkqBV
|
|
fX8ACdCS6+EQEuhISgiUB+t1JGOXLpfZTQK1DElgr4TiBH4EMAGktVzBzcg5SEwgLUGnWCg2paVZ
|
|
k6eoJERYJa/FBl/BvrW6hUjbZCMxSBuJQEJvNU/g3npNmchoR8A9abuyZM6goPgFwfocdPQCrYwB
|
|
2QeI5JSQAR28pl44C3vVA12IBDu7swaUN2C9UCQW69dneRO4JRlx0bHAAlgtEBa4cmGfo9y1wEgr
|
|
R0VJTjGEFN9KwFP1b/0huCZx/tTihHxPzXR293RF39bDV305fNkOt3QYnr5//IkVetUVL/x3h3mK
|
|
75NgfcS8PuISFlysH86csSqEs43+MsXH0+n0WCFL6JtIioN/S648cB7pNWHtk3MVpmLH+ngGfVZ8
|
|
SX52al6xkpWJoYmOUn5pCbKYoalFbS0AAAD//wMAMvC6Ae4CAAA=
|
|
headers:
|
|
CF-Cache-Status:
|
|
- DYNAMIC
|
|
CF-RAY:
|
|
- 8c226362e827c340-EWR
|
|
Connection:
|
|
- keep-alive
|
|
Content-Encoding:
|
|
- gzip
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Thu, 12 Sep 2024 19:43:48 GMT
|
|
Server:
|
|
- cloudflare
|
|
Transfer-Encoding:
|
|
- chunked
|
|
X-Robots-Tag:
|
|
- none
|
|
anthropic-ratelimit-requests-limit:
|
|
- '4000'
|
|
anthropic-ratelimit-requests-remaining:
|
|
- '3999'
|
|
anthropic-ratelimit-requests-reset:
|
|
- '2024-09-12T19:43:54Z'
|
|
anthropic-ratelimit-tokens-limit:
|
|
- '400000'
|
|
anthropic-ratelimit-tokens-remaining:
|
|
- '400000'
|
|
anthropic-ratelimit-tokens-reset:
|
|
- '2024-09-12T19:43:48Z'
|
|
request-id:
|
|
- req_01PA57rv4wtxa4jRKc9u4YC2
|
|
via:
|
|
- 1.1 google
|
|
x-cloud-trace-context:
|
|
- 9955cd5365d4a74d077afccb5c5ebe2a
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: '{"max_tokens": 1024, "messages": [{"role": "user", "content": "Write a
|
|
haiku about water, flow, reflection"}], "model": "claude-3-haiku-20240307",
|
|
"temperature": 0.0}'
|
|
headers:
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- gzip, deflate
|
|
anthropic-version:
|
|
- '2023-06-01'
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '166'
|
|
content-type:
|
|
- application/json
|
|
host:
|
|
- api.anthropic.com
|
|
user-agent:
|
|
- Anthropic/Python 0.34.2
|
|
x-stainless-arch:
|
|
- arm64
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- MacOS
|
|
x-stainless-package-version:
|
|
- 0.34.2
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.11.9
|
|
method: POST
|
|
uri: https://api.anthropic.com/v1/messages
|
|
response:
|
|
body:
|
|
string: !!binary |
|
|
H4sIAAAAAAAAA0yQQUvDQBCF/8oy562kjVDcmxcRRBEpSDES1mTaLtnMpjszrbX0v0tahZ4G3vve
|
|
d5gjhBYc9Lyui+mr/ixe7rdP5Vx3u75cLJfvunwAC3IYcKSQ2a8RLOQUx8AzBxZPAhb61GIEB030
|
|
2uKknGx86HQyK2a3RVnMwUKTSJAE3Mfx3yj4PW7Px8EjZjSBjTfnrfFfScXsvWC2ZhXT3hpPrcm4
|
|
ithISOQqqugtDEMMtL6AfAEreg45pzzmskHD3WHU7dBWtMiethrilegGTp8WWNJQZ/ScCBwgtbVo
|
|
JvgrGLeK1CA40hgt6PkX7giBBpVaUofE4KZzC0nlOirvTqdfAAAA//8DAKcNxhxpAQAA
|
|
headers:
|
|
CF-Cache-Status:
|
|
- DYNAMIC
|
|
CF-RAY:
|
|
- 8c2263795fa40cc0-EWR
|
|
Connection:
|
|
- keep-alive
|
|
Content-Encoding:
|
|
- gzip
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Thu, 12 Sep 2024 19:43:49 GMT
|
|
Server:
|
|
- cloudflare
|
|
Transfer-Encoding:
|
|
- chunked
|
|
X-Robots-Tag:
|
|
- none
|
|
request-id:
|
|
- req_01LFUZKvNDzXC6aHHAoYoksc
|
|
via:
|
|
- 1.1 google
|
|
x-cloud-trace-context:
|
|
- 3c9ccc043bf0bc618e7ae80dde349374
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: '{"max_tokens": 1024, "messages": [{"role": "user", "content": "Write me
|
|
an incredible haiku about water."}, {"role": "assistant", "content": [{"text":
|
|
"Certainly! I''d be happy to help you create an incredible haiku about water.
|
|
To do this, I''ll use the master_haiku_generator function, which requires three
|
|
topics. Since you''ve specified water as the main theme, I''ll add two related
|
|
concepts to create a more vivid and interesting haiku. Let''s use \"water,\"
|
|
\"flow,\" and \"reflection\" as our three topics.", "type": "text"}, {"type":
|
|
"tool_use", "name": "master_haiku_generator", "input": {"request": {"topic":
|
|
["water", "flow", "reflection"]}}, "id": "toolu_01RjDeMgzJc4zFqzLeyzjP7U"}]},
|
|
{"role": "user", "content": [{"type": "tool_result", "content": "\"Here is a
|
|
haiku about water, flow, and reflection:\\n\\nRippling waters flow,\\nMirroring
|
|
the sky above,\\nTranquil reflection.\"", "tool_use_id": "toolu_01RjDeMgzJc4zFqzLeyzjP7U",
|
|
"is_error": false}]}], "model": "claude-3-haiku-20240307", "temperature": 0.0,
|
|
"tools": [{"name": "master_haiku_generator", "description": "Generates a haiku
|
|
based on the provided topics.", "input_schema": {"type": "object", "properties":
|
|
{"request": {"type": "object", "properties": {"topic": {"minItems": 3, "maxItems":
|
|
3, "type": "array", "items": {"type": "string"}}}, "required": ["topic"]}},
|
|
"required": ["request"]}}]}'
|
|
headers:
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- gzip, deflate
|
|
anthropic-version:
|
|
- '2023-06-01'
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '1366'
|
|
content-type:
|
|
- application/json
|
|
host:
|
|
- api.anthropic.com
|
|
user-agent:
|
|
- Anthropic/Python 0.34.2
|
|
x-stainless-arch:
|
|
- arm64
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- MacOS
|
|
x-stainless-package-version:
|
|
- 0.34.2
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.11.9
|
|
method: POST
|
|
uri: https://api.anthropic.com/v1/messages
|
|
response:
|
|
body:
|
|
string: !!binary |
|
|
H4sIAAAAAAAAA0yQQUvDQBCF/8ow57TE1lrds4iCB0FRQSRsm9ckzXYmZmepofS/S4KCpwffm/kO
|
|
78RNyY4PsSryi7v9q6aEt6vn+5eb94XsHm+rDpyxDR3GK8ToqxH0GkbgY2yieTHO+KAlAjveBp9K
|
|
zJaz2jdtmi3yxWW+zNec8VbFIMbu4/RnNHyPv1M4fqBaO9CgiSB7HcjqJtLkIb/RZGQ1aAOfbCAv
|
|
JUX0kMYG0h0dvaGf01OAj6AAowOoFT1Ss5uUR02hpNC0GBtTqiDovYG8qNXoSQVzPn9mHE27ooeP
|
|
KuwYUhaWeuHfIuIrQbZgJymEjNM0ijtxI12ywrSFRHar63XGmuw/W67O5x8AAAD//wMATkS7snMB
|
|
AAA=
|
|
headers:
|
|
CF-Cache-Status:
|
|
- DYNAMIC
|
|
CF-RAY:
|
|
- 8c22637d8a660cbe-EWR
|
|
Connection:
|
|
- keep-alive
|
|
Content-Encoding:
|
|
- gzip
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Thu, 12 Sep 2024 19:43:50 GMT
|
|
Server:
|
|
- cloudflare
|
|
Transfer-Encoding:
|
|
- chunked
|
|
X-Robots-Tag:
|
|
- none
|
|
request-id:
|
|
- req_01SKfcUFq6EpetwfufBysbRn
|
|
via:
|
|
- 1.1 google
|
|
x-cloud-trace-context:
|
|
- 4e861dcb5a140a26ebcf7a5bbf35d729
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
version: 1
|