ame\": \"getWeather\", \"parameters\": {\"city\": \"NY\"}} </functioncall>\n <functioncall> {\"name\": \"getWeather\", \"parameters\": {\"city\": \"LA\"}} </functioncall>\n </multiplefunctions>\n\nTask: You are a helpful assistant that helps a user with their tasks and todos. The user can add a todos, mark todos as completed, or reopen certain todos.\nThe user can provide multiple actions at once so you've to break those down and call the appropriate functions in the correct sequence.",
"max_tokens": 1000
}
2024-04-27 16:43:57 - httpx - INFO - HTTP Request: POST https://bedrock-runtime.us-east-1.amazonaws.com/model/anthropic.claude-3-sonnet-20240229/invoke "HTTP/1.1 403 Forbidden"
Traceback (most recent call last):
File "/Users/anantkan/autoContra/claude.py", line 56, in <module>
output = tool(model="anthropic.claude-3-sonnet-20240229",
File "/Users/anantkan/autoContra/myenv/lib/python3.9/site-packages/claudetools/tools/tool.py", line 101, in __call__
return asyncio.run(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/Users/anantkan/autoContra/myenv/lib/python3.9/site-packages/claudetools/tools/tool.py", line 61, in tool_call
output = await self.perform_model_call(model,
File "/Users/anantkan/autoContra/myenv/lib/python3.9/site-packages/claudetools/tools/tool.py", line 91, in perform_model_call
return self.complete(model, messages, system=system, **kwargs)
File "/Users/anantkan/autoContra/myenv/lib/python3.9/site-packages/claudetools/completion/complete.py", line 33, in __call__
output = self.client.messages.create(model=model,
File "/Users/anantkan/autoContra/myenv/lib/python3.9/site-packages/anthropic/_utils/_utils.py", line 275, in wrapper
return func(*args, **kwargs)
File "/Users/anantkan/autoContra/myenv/lib/python3.9/site-packages/anthropic/resources/messages.py", line 658, in create
return self._post(
File "/Users/anantkan/autoContra/myenv/lib/python3.9/site-packages/anthropic/_base_client.py", line 1208, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
File "/Users/anantkan/autoContra/myenv/lib/python3.9/site-packages/anthropic/_base_client.py", line 897, in request
return self._request(
File "/Users/anantkan/autoContra/myenv/lib/python3.9/site-packages/anthropic/_base_client.py", line 988, in _request
raise self._make_status_error_from_response(err.response) from None
anthropic.PermissionDeniedError: Error code: 403 - {'message': 'The security token included in the request is invalid.'}
(myenv) anantkan@f84d898fedb6 autoContra % ```