Skip to content

Fix Vertex AI tool response roles#701

Open
Gujiassh wants to merge 1 commit intocrmne:mainfrom
Gujiassh:fix/vertex-tool-response-roles
Open

Fix Vertex AI tool response roles#701
Gujiassh wants to merge 1 commit intocrmne:mainfrom
Gujiassh:fix/vertex-tool-response-roles

Conversation

@Gujiassh
Copy link

Summary

  • override Vertex AI chat payload rendering so tool response batches use role: 'user' instead of inheriting Gemini's role: 'function'
  • add focused provider coverage that exercises the rendered payload directly

Testing

  • bundle exec rspec spec/ruby_llm/providers/vertex_ai_spec.rb
  • bundle exec rubocop lib/ruby_llm/providers/vertexai/chat.rb spec/ruby_llm/providers/vertex_ai_spec.rb

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant