Extend OpenAIResponseInput with MCP types

When posting chained resposnes with MCP tools, llamastack fails
to validate OpenAIResponseInput.

Signed-off-by: Yuval Turgeman <yturgema@redhat.com>
This commit is contained in:
Yuval Turgeman 2025-09-18 16:33:25 -04:00
parent 4c2fcb6b51
commit 3baca53eba

View file

@ -724,6 +724,8 @@ OpenAIResponseInput = Annotated[
OpenAIResponseOutputMessageWebSearchToolCall
| OpenAIResponseOutputMessageFileSearchToolCall
| OpenAIResponseOutputMessageFunctionToolCall
| OpenAIResponseOutputMessageMCPCall
| OpenAIResponseOutputMessageMCPListTools
| OpenAIResponseInputFunctionToolCallOutput
|
# Fallback to the generic message type as a last resort