Closed kiarina closed 3 days ago
Huge thanks for the fix!
@kiarina linter is still failing, could you take a look, please?
Sorry.
I had a different version of ruff, so I modified some unnecessary files.
After poetry install --with lint
, I checked the modified files with make lint
and undid the unnecessary modifications.
Locally, all checks passed.
@kiarina please, feel free to send a PR to the contribution guide if you find that some things were unclear to a new contributor!
When using
with_structured_output
withChatAnthropicVertex
, the server response is ignored, resulting inNone
being returned from theinvoke
method.The server response at this time is as follows:
In
_format_output
, thecontent
ofAIMessage
becomes empty.Therefore, the condition in the following part of
ToolsOutputParser
does not retrieve data.By making use of
AIMessage.tool_calls
when it is not empty, the issue is fixed.After the fix, data can be retrieved as follows: