Files
langgraph/docs/cassettes/tool-calling_25.yaml
T

162 lines
4.9 KiB
YAML

interactions:
- request:
body: '{"max_tokens": 1024, "messages": [{"role": "user", "content": "what''s
the weather in sf?"}], "model": "claude-3-haiku-20240307", "temperature": 0.0,
"tools": [{"name": "get_weather", "description": "Call to get the current weather.",
"input_schema": {"type": "object", "properties": {"location": {"type": "string"}},
"required": ["location"]}}, {"name": "get_coolest_cities", "description": "Get
a list of coolest cities", "input_schema": {"type": "object", "properties":
{}}}]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate
anthropic-version:
- '2023-06-01'
connection:
- keep-alive
content-length:
- '478'
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 |
H4sIAAAAAAAAA1RQS2vDMAz+K0aXXVzIozTMt26wQUcZWw9dGSMYVzQhjp1GMmsI+e/D2ca6k9Cn
7yFphPoIClo6lUmavbxu1of87XGbuv2m8CG/NMMAEnjoMLKQSJ8QJPTeRkAT1cTaMUho/REtKDBW
hyMu8kWl6yYssiRbJnlSgATjHaNjUO/jryPjJWrnouC50YMUFvmGhKnQNIIrFJ+oucJe1E7stBMP
vXamJuMVTPLPyHtbBoq7zQfFPpRJur5QkS27p3R7m+93/d0B2/vtGSQ43UbdCbn8CYhS1wUGNYL1
RnPtHSj4lwnT9CGB2Hdlj5pmwlX0PCA8B3QGQblgrYQw/0yN3+4l+wYdgcqLlQQf+BpbrabpCwAA
//8DAF00WFGSAQAA
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c2263c79ff75e60-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Thu, 12 Sep 2024 19:44:01 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
X-Robots-Tag:
- none
request-id:
- req_01FvSKJxEV4DSrdww4DPBoWg
via:
- 1.1 google
x-cloud-trace-context:
- 5f112eefd1e9f9008e507fc10714364d
status:
code: 200
message: OK
- request:
body: '{"max_tokens": 1024, "messages": [{"role": "user", "content": "what''s
the weather in sf?"}, {"role": "assistant", "content": [{"text": "Okay, let''s
check the weather in San Francisco:", "type": "text"}, {"type": "tool_use",
"name": "get_weather", "input": {"location": "San Francisco"}, "id": "toolu_01Axs724pK1M93WSrBYemCMq"}]},
{"role": "user", "content": [{"type": "tool_result", "content": "It''s 60 degrees
and foggy.", "tool_use_id": "toolu_01Axs724pK1M93WSrBYemCMq", "is_error": false}]}],
"model": "claude-3-haiku-20240307", "temperature": 0.0, "tools": [{"name": "get_weather",
"description": "Call to get the current weather.", "input_schema": {"type":
"object", "properties": {"location": {"type": "string"}}, "required": ["location"]}},
{"name": "get_coolest_cities", "description": "Get a list of coolest cities",
"input_schema": {"type": "object", "properties": {}}}]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate
anthropic-version:
- '2023-06-01'
connection:
- keep-alive
content-length:
- '881'
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 |
H4sIAAAAAAAAA0yPzUoDMRSFXyWcdSrjTKmapYsuxVZxIzKE5DoTO71pc2+opfTdpUXB1YHv/MA5
IUU4bGXom9u3tX+I69Um71ePX8/38+5pfVguYKHHHV1SJOIHgkXJ0wV4kSTqWWGxzZEmOITJ10iz
bjb6tKmztmnnTdfcwSJkVmKFez/9LSp9X7pXcXgdyRzI60jFJDYvns2yeA5JQjZJTKilEOt0NIvG
RBoKkZhD0tF85mE4mpA5Jk2Z5QbnDwvRvOsLeckMB+LYay2MX0NoX4kDwXGdJot6/eZOSLyr2mve
EAvcfNFZ5Kr/Wduczz8AAAD//wMAFLAYJjoBAAA=
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c2263cb9c7e5e60-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Thu, 12 Sep 2024 19:44:02 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
X-Robots-Tag:
- none
request-id:
- req_017t3R3gNgkAdwKauBE1ueuc
via:
- 1.1 google
x-cloud-trace-context:
- 75da273d9134cce560c6abd0a97b5c6e
status:
code: 200
message: OK
version: 1