Extract OpenAIChatToolCompletionService trait providing just a single method -- createChatToolCompletion. Provide OpenAIAnthropicChatToolCompletionService.
Additionally, OpenAI tool choice is translated to Anthropic AI as an additional user message with encouragement to use the tool in question, namely: Use the $toolChoice tool in your response.
Extract
OpenAIChatToolCompletionService
trait providing just a single method --createChatToolCompletion
. ProvideOpenAIAnthropicChatToolCompletionService
.Additionally, OpenAI tool choice is translated to Anthropic AI as an additional user message with encouragement to use the tool in question, namely:
Use the $toolChoice tool in your response
.