You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actionsbot
changed the title
New Feature: Support DateTime parameters in tools for Assistants API
.Net: New Feature: Support DateTime parameters in tools for Assistants API
Dec 10, 2024
name: Support
DateTime
parameter in tool definition for Assistants APIDateTime
is currently converted toobject
which prevents the model from generating proper tool calls in Assistants API as object is defined as a dictionary or property bag in JSON Schema: https://json-schema.org/understanding-json-schema/reference/objectCurrent logic:
semantic-kernel/dotnet/src/Agents/OpenAI/Extensions/KernelFunctionExtensions.cs
Lines 62 to 94 in 43235b8
This can be worked around by changing the kernel function parameter type to string and handling type conversion manually.
By contrast, tool definitions generated for Chat Completion API are higher fidelity. For example, it converts
DateTime
toThe text was updated successfully, but these errors were encountered: