Files
langgraph/docs/cassettes/tool-calling-errors_13.yaml
T

428 lines
15 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 |
H4sIAAAAAAAAA1SQS2/CMBCE/0o0ZyMFgnj4TAWqygG1PSCELJNs04jEDva6lEb571VcVS2n1T7m
m9F2qApINL5U6Xh3eVpvGn3avb59rBdNttyu9rcHCPCtpeGKvNclQcDZehho7yvP2jAEGltQDYm8
1qGgUTZ619U5jCbpZJpm6RwCuTVMhiEP3S+R6XPQxiKxIUdJ5ROdRG2iTzZwctVMTqIXfypraxX8
ECSmH/qg0vF6sbqcluVj81wV7fT6tdq+7DczCBjdxPzaMzkV4aokQ06zdQPFtIEhO7BtqxzygGiK
Y98fBTzbVjnS3pp787jwdAlkcoI0oa4FQnyR7H6giu2ZjIfMFlMBG/j/bDbv+28AAAD//wMAF3eZ
UYEBAAA=
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c22634379a67c8e-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Thu, 12 Sep 2024 19:43:40 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
X-Robots-Tag:
- none
request-id:
- req_018so3vaAmF6cV9vw7gTH8q1
via:
- 1.1 google
x-cloud-trace-context:
- bdbb1176089fc9552f434ba0a5893d98
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":
"Here is a haiku about water:", "type": "text"}, {"type": "tool_use", "name":
"master_haiku_generator", "input": {"topic": ["water"]}, "id": "toolu_01G8Dqb9gJmSidp4wzDMTYH6"}]},
{"role": "user", "content": [{"type": "tool_result", "content": "Error: ValidationError(model=''master_haiku_generatorSchema'',
errors=[{''loc'': (''request'',), ''msg'': ''field required'', ''type'': ''value_error.missing''}])\n
Please fix your mistakes.", "tool_use_id": "toolu_01G8Dqb9gJmSidp4wzDMTYH6",
"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:
- '1047'
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 |
H4sIAAAAAAAAA1RQ20rDQBD9lWWet5K0FnXfvIB490HFUkpYk2m6ZLMTd2bREvLvkoioT3M958yZ
HlwFBlquiyx/uXg+2TeXcnd+dEqPPH+6TsenDBpk3+G4hcy2RtAQyY8Ny+xYbBDQ0FKFHgyU3qYK
Z4vZzromzebZ/DBbZEegoaQgGATMuv9hFPwcsVMw8EAda+WJGlbeNaiu1JZiTaKElAulTxUq672S
HaqI78lFrFRno21RMPKBukVRLSqJeyU7K8rW1gUDg/5VJPJF4tHE5HysU5Hlzyv5fFu5/cXZfaiq
1+i6xfbmHDQE207eLQvGYjJV1BgwWqE4soQuCZgexoOQp1SocyWYNXxYwQibYRg2GlioKyJapvD/
kGnAIzyUCCYk7zWk6dWm/xYohBoMDGaZLzVQkr+9k3wYvgAAAP//AwBiOgQLyQEAAA==
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c22634858127c8e-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Thu, 12 Sep 2024 19:43:41 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
X-Robots-Tag:
- none
request-id:
- req_01HStkgEvRjN8eM5sWiQ9t7t
via:
- 1.1 google
x-cloud-trace-context:
- fb9cd56be9aba9c6781ad0d999bddd8a
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":
"Here is a haiku about water:", "type": "text"}, {"type": "tool_use", "name":
"master_haiku_generator", "input": {"topic": ["water"]}, "id": "toolu_01G8Dqb9gJmSidp4wzDMTYH6"}]},
{"role": "user", "content": [{"type": "tool_result", "content": "Error: ValidationError(model=''master_haiku_generatorSchema'',
errors=[{''loc'': (''request'',), ''msg'': ''field required'', ''type'': ''value_error.missing''}])\n
Please fix your mistakes.", "tool_use_id": "toolu_01G8Dqb9gJmSidp4wzDMTYH6",
"is_error": false}]}, {"role": "assistant", "content": [{"text": "Oops, looks
like I forgot to include all the required parameters. Let me try that again:",
"type": "text"}, {"type": "tool_use", "name": "master_haiku_generator", "input":
{"request": {"topic": ["water"]}}, "id": "toolu_01UYtxbYiyDBNnddXrip3fKC"}]},
{"role": "user", "content": [{"type": "tool_result", "content": "Error: ValidationError(model=''master_haiku_generatorSchema'',
errors=[{''loc'': (''request'', ''topic''), ''msg'': ''ensure this value has
at least 3 items'', ''type'': ''value_error.list.min_items'', ''ctx'': {''limit_value'':
3}}])\n Please fix your mistakes.", "tool_use_id": "toolu_01UYtxbYiyDBNnddXrip3fKC",
"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:
- '1722'
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 |
H4sIAAAAAAAAA1RRXWvDMAz8K0bP7kibsRI/FgplG4Ox0Q5KCV4iWhPHziy5XSn578Pe95Os8/nu
JF/AtKCgp31dTKvnRctds9S+PId1c7eulofNAiTwecDEQiK9R5AQvE2AJjLE2jFI6H2LFhQ0VscW
J+XkoE0XJ7Nidl2UxRwkNN4xOga1vXwrMr6nt7koWPW9FIaF9b4jYU2Hgg8ospDYo8Og2QcR8C2a
gCQ0C4uaWJSC/WAauhL3yKJHMQR/NC2KUgS0mrH9IigY5a+597aOlObJS0h9rItpedo8NC+r2ynH
atoat34sn14jSHC6z2vQxBjqHKv+iZVU3BAZ1AVSQqR8zL6gtnDSjInkG9QOJJz0EQl24zjuJBD7
oQ6oybv/wfIFJTnXICgXrZUQ8y+oy6dhzb5DR6BuqkKCj/wXq+bj+AEAAP//AwC6E+Wq5AEAAA==
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c22634e987a7c8e-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Thu, 12 Sep 2024 19:43:42 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
X-Robots-Tag:
- none
request-id:
- req_01GbG5mwNnpkMDAa9hfePGpJ
via:
- 1.1 google
x-cloud-trace-context:
- 029bf3f055467ead3fbdf74cbb8d3fcd
status:
code: 200
message: OK
- request:
body: '{"max_tokens": 1024, "messages": [{"role": "user", "content": "Write a
haiku about water, ocean, waves"}], "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:
- '162'
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 |
H4sIAAAAAAAAA0yQQW7CQAxFr2J5081QBdIKOidgQbdEtFSRSSwSMXjSsacUIe5eBVqpK0v/v/cX
vmDfosej7utiuqn2w9vL+VC9rnbr6rwo8/K52qBDOw88UqxKe0aHKYYxINVejcTQ4TG2HNBjEyi3
PCknHfWHPJkVs6eiLObosIliLIb+/fK3aPw9urfjccmJoVcguLlAu5gNTmScHMSGSRyQtHCiL1a/
la2sSe3ePCjwcZeoYbeVagSgSaQd5CEKWMegXUwcerkDxmlUjJNQgJak4Ue8fjhUi0OdmDQKemRp
a8tJ8LdQ/swsDaOXHILDfHuIv2AvQ7ba4oFF0U/nDmO2/1G5uF5/AAAA//8DAMNBPcxuAQAA
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c2263556adc7cb2-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Thu, 12 Sep 2024 19:43:43 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
X-Robots-Tag:
- none
request-id:
- req_01PrtViPekyf1YCqP5i6iHRW
via:
- 1.1 google
x-cloud-trace-context:
- e9b06a8e5496a48430bad4b43fb0baa1
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":
"Here is a haiku about water:", "type": "text"}, {"type": "tool_use", "name":
"master_haiku_generator", "input": {"topic": ["water"]}, "id": "toolu_01G8Dqb9gJmSidp4wzDMTYH6"}]},
{"role": "user", "content": [{"type": "tool_result", "content": "Error: ValidationError(model=''master_haiku_generatorSchema'',
errors=[{''loc'': (''request'',), ''msg'': ''field required'', ''type'': ''value_error.missing''}])\n
Please fix your mistakes.", "tool_use_id": "toolu_01G8Dqb9gJmSidp4wzDMTYH6",
"is_error": false}]}, {"role": "assistant", "content": [{"text": "Oops, looks
like I forgot to include all the required parameters. Let me try that again:",
"type": "text"}, {"type": "tool_use", "name": "master_haiku_generator", "input":
{"request": {"topic": ["water"]}}, "id": "toolu_01UYtxbYiyDBNnddXrip3fKC"}]},
{"role": "user", "content": [{"type": "tool_result", "content": "Error: ValidationError(model=''master_haiku_generatorSchema'',
errors=[{''loc'': (''request'', ''topic''), ''msg'': ''ensure this value has
at least 3 items'', ''type'': ''value_error.list.min_items'', ''ctx'': {''limit_value'':
3}}])\n Please fix your mistakes.", "tool_use_id": "toolu_01UYtxbYiyDBNnddXrip3fKC",
"is_error": false}]}, {"role": "assistant", "content": [{"text": "Hmm, it looks
like the haiku generator requires at least 3 topics. Let me provide 3 related
topics:", "type": "text"}, {"type": "tool_use", "name": "master_haiku_generator",
"input": {"request": {"topic": ["water", "ocean", "waves"]}}, "id": "toolu_013wWNcXHJ1tu91dinVQ3Sbu"}]},
{"role": "user", "content": [{"type": "tool_result", "content": "Here is a haiku
about water, ocean, and waves:\n\nVast ocean''s embrace,\nWaves crash upon the
shoreline,\nWater''s eternal dance.", "tool_use_id": "toolu_013wWNcXHJ1tu91dinVQ3Sbu",
"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:
- '2312'
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/8o4Fy8biYkY2WMPUsGrJ5GwTSbNNslMujtLDSX/XVIUPA18773v
MFf0LVqc4rHOH6vmsAunZj+dp9dQTc/8ofvujAZ1mWlrUYzuSGgwyLgBF6OP6ljR4CQtjWixGV1q
KSuz3vkhZUVePOVlXqHBRliJFe3n9c+o9L1tb8fiG/QyEyySgPgkC2jvI9w84A6SFLQnOJBLuoDj
Fma5UADp4OKUwh28k8JEMLBcwHeb6L6F0Q+0URU4ElNwSuBYtN+mTA+4fhmMKnMdyEVhtEjc1poC
428Q6ZyIG0LLaRwNptsb7BU9z0lrlYE4on0pC4OS9D8ri3X9AQAA//8DAJYzwcllAQAA
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c2263594fd87c8e-EWR
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Thu, 12 Sep 2024 19:43:44 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
X-Robots-Tag:
- none
request-id:
- req_01MrWRL9MftSrpePPLtkkDq5
via:
- 1.1 google
x-cloud-trace-context:
- 2f672e65a5ffb10cc50f6eb557685dd6
status:
code: 200
message: OK
version: 1