Handoff Orchestration sample - doesn't work with OpenAI? #12706
Unanswered
brainmurphy
asked this question in
Q&A
Replies: 3 comments
-
This might be #12663 🤔 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Running the same sample with Bedrock/Claude, I get:
I modified protected IChatClient AddChatClientToKernel(IKernelBuilder builder)
{
#pragma warning disable CA2000 // Dispose objects before losing scope
IChatClient chatClient;
var bedrock = new AmazonBedrockRuntimeClient();
chatClient = bedrock.AsIChatClient("eu.anthropic.claude-3-7-sonnet-20250219-v1:0");
IChatClient functionCallingChatClient = chatClient.AsBuilder().UseKernelFunctionInvocation().Build();
builder.Services.AddSingleton(functionCallingChatClient);
return functionCallingChatClient;
#pragma warning restore CA2000 // Dispose objects before losing scope
} It looks like the tool back-and-forth results in the last FunctionResultContent becoming transformed into an empty string which gets passed as part of the conversation? Not sure I follow the logic in |
Beta Was this translation helpful? Give feedback.
0 replies
-
@TaoChenOSU any thoughts here? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've tried to run
Step04_Handoff
against OpenAI withgpt-4o-2024-08-06
. I'm getting this back:All I've done is git clone, set the secrets (
OpenAI:ChatModelId
andOpenAI:ApiKey
), thendotnet test --filter Step04_Handoff
.Should this just work?
The conversation log:
Beta Was this translation helpful? Give feedback.
All reactions