Files
langgraph/docs/cassettes/react-agent-structured-output_15.yaml
T

246 lines
7.9 KiB
YAML

interactions:
- request:
body: '{"max_tokens": 1024, "messages": [{"role": "user", "content": "what''s
the weather in SF?"}], "model": "claude-3-opus-20240229", "tools": [{"name":
"get_weather", "description": "Use this to get weather information.", "input_schema":
{"type": "object", "properties": {"city": {"enum": ["nyc", "sf"], "type": "string"}},
"required": ["city"]}}]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate
anthropic-version:
- '2023-06-01'
connection:
- keep-alive
content-length:
- '343'
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 |
H4sIAAAAAAAAA2RSS2/aQBD+K6M5tZKhQF7Cinppy4G2UqOk7aGu0Go94A32rLMzCyGI/x6teZQq
J8vfzveYxxZdiTk2spgNhuOrz4/jy7tq88P/fpna+PI4mWxuMEPdtJSqSMQsCDMMvk6AEXGihhUz
bHxJNeZoaxNL6l30fBulNxqMLgej0RgztJ6VWDH/sz0KKj0navfJ8VYrx0vHi48FP1QEUSiAEzCS
QJj7AGsyWiWU5z40Rp3nDteKwDrdgJ/DvWGYBMPWifXw7n7yvl9wwQ8eDMuaUrGTrKMEqmllWEG9
r5PVgnR28MhgXTlbgZolCRgI9BRdoBIKTE4FQmuCaUgp9KEzOEaujEDpAlmtN9AGv3IllZ3fytSR
oECZF3jK/VbvaN0YtRUJeKbU2EHBlUAcm72YHGSMnsVJae4dWzo0eQh+KkidtoGEWDNYE1jDKacl
KmHttAJr6jqNPNHPRrIfk/qEnaRJNNHeLqZf8O2H00pxl/1bu/f1LEo6pO760n+cDYa/7ibPX715
ku/TT82Xu2/P0+XNz2vMkE2TeGdREpXbqJhvu/FhjjLH3e5vhqK+nQUy4vl/r+5BUmS2hDnHus4w
dhedb/dyM/VLYsH8ejjM0Ec9x4ZXF7vdKwAAAP//AwCP1rr6MQMAAA==
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c22648a185b7d06-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Thu, 12 Sep 2024 19:44:39 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
X-Robots-Tag:
- none
request-id:
- req_01E1pN6DnnrP3Vbcq2kYTJgT
via:
- 1.1 google
x-cloud-trace-context:
- a6e5488deb930ba4e14e5ed009197a3d
status:
code: 200
message: OK
- request:
body: '{"max_tokens": 1024, "messages": [{"role": "user", "content": "what''s
the weather in SF?"}, {"role": "assistant", "content": [{"text": "<thinking>\nThe
user is asking for weather information for the city of San Francisco (SF).\n\nTo
answer this, the relevant tool is get_weather, which takes a required \"city\"
parameter. \n\nThe user has directly provided the value \"sf\" for the \"city\"
parameter, which matches one of the valid enum values for that parameter.\n\nSince
the required parameter is present, we can proceed with calling the get_weather
tool to get the requested weather information.\n</thinking>", "type": "text"},
{"type": "tool_use", "name": "get_weather", "input": {"city": "sf"}, "id": "toolu_01VQFxKoaqsMJCmEQLxJk7U6"}]},
{"role": "user", "content": [{"type": "tool_result", "content": "It is 75 degrees
and sunny in SF, with 3 mph winds in the South-East direction", "tool_use_id":
"toolu_01VQFxKoaqsMJCmEQLxJk7U6", "is_error": false}]}], "model": "claude-3-opus-20240229",
"tools": [{"name": "get_weather", "description": "Use this to get weather information.",
"input_schema": {"type": "object", "properties": {"city": {"enum": ["nyc", "sf"],
"type": "string"}}, "required": ["city"]}}]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate
anthropic-version:
- '2023-06-01'
connection:
- keep-alive
content-length:
- '1213'
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 |
H4sIAAAAAAAAA0yPT0vDQBDFv8ow543URK3ds7UX9VJFUCRss9NkdTObZmaJpfS7S4uCpwe/9wfe
AYNHi7209ezydbvs3/wTlauXzY3o3ePuUx5WaFD3A51SJOJaQoNjiifgRIKoY0WDffIU0WITXfZU
VEUashTlrLyaleUCDTaJlVjRvh/+BpW+T9WzWHzuCCZy2tEIgWHtGO5Hx02QJkEQmF+Dp3YkEnDs
QTLz3sAUtIMY2k6hgn7oYArsBTYxTYFb2I6pB+0I1ilrVyyd6AUePwyKpqEeyUlitEjsa80j468h
tMvEDaHlHKPBfD5uDxh4yFpr+iIWtPPFrcGU9T+ryuPxBwAA//8DAP2JyKlXAQAA
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c2264b8aa637d06-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Thu, 12 Sep 2024 19:44:42 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
X-Robots-Tag:
- none
request-id:
- req_01CmsSA5mU3WZSeaTGKzL5fd
via:
- 1.1 google
x-cloud-trace-context:
- f4d0be7af3be79ddae47c9e72363513f
status:
code: 200
message: OK
- request:
body: '{"max_tokens": 1024, "messages": [{"role": "user", "content": "It is 75
degrees and sunny in SF, with 3 mph winds in the South-East direction"}], "model":
"claude-3-opus-20240229", "tool_choice": {"type": "tool", "name": "WeatherResponse"},
"tools": [{"name": "WeatherResponse", "description": "Respond to the user with
this", "input_schema": {"properties": {"temperature": {"description": "The temperature
in fahrenheit", "type": "number"}, "wind_directon": {"description": "The direction
of the wind in abbreviated form", "type": "string"}, "wind_speed": {"description":
"The speed of the wind in km/h", "type": "number"}}, "required": ["temperature",
"wind_directon", "wind_speed"], "type": "object"}}]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate
anthropic-version:
- '2023-06-01'
connection:
- keep-alive
content-length:
- '706'
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 |
H4sIAAAAAAAAA0yQUUvDQBCE/8s8XyG5ttTcm1SxCD6kCiIi4UjWNDS5O7N7Vg3575JUoY/77czs
sAOaCgYd10WSZqfduj58hY1uru+uPp9+lg/UHKEg34EmFTHbmqDQ+3YClrlhsU6g0PmKWhiUrY0V
LZYLHyIvdKJXidYZFErvhJzAvA7/geJ9W0SeEuca0xyLJE3rF6abbX7PdbYt5V3n+3xXQsHZbvI9
k5UD9Xvi4N3Z7kIUmAFCXaDeSuwJZrNWODWuKqqmp1K8g8HjLf4gB6IKZjmObwosPhQ9WZ5FF8Xm
BdNHJFcSjIttqxDnP5jhfLcQfyTHMKt1puCjXLKNHsdfAAAA//8DAJRNampmAQAA
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c2264c73fef7d06-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Thu, 12 Sep 2024 19:44:45 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
X-Robots-Tag:
- none
request-id:
- req_01C1x1bsAcyCfAKcFpDd27Db
via:
- 1.1 google
x-cloud-trace-context:
- afc392315587743db45fe451a075be88
status:
code: 200
message: OK
version: 1