Skip to content

.Net: Bug: ToolCall issue #7376

@KSemenenko

Description

@KSemenenko

Describe the bug
Tool Calling parameters

To Reproduce
I use Ollama

 var kernel = Kernel.CreateBuilder()
            .AddOpenAIChatCompletion(
                modelId: modelId,
                apiKey: null,
                endpoint: new Uri(url))
            .Build();

I used this model
https://ollama.com/library/llama3-groq-tool-use

and Im doung function calling (for gpt4o this code works perfectly)

But I see this as text asnwer from model.

<tool_call> {“id”: 0, “name”: “createReservation-Answer”, “arguments”: {“amount”: 1, “roomName”: “Single Room”, “startDate”: “2024-07-21”, “endDate”: “2024-07-23”}} </tool_call>

and the function doesn't work.

Expected behavior
I expected my function will called.

Platform

  • OS: [Mac]
  • IDE: [Rider]
  • Language: [C#]
  • Source: [1.16.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETIssue or Pull requests regarding .NET codebugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions