Skip to content

Method not found: 'Void OpenAI.Builders.FunctionDefinitionBuilder..ctor(System.String, System.String) on GetToolDefinitionsΒ #649

@WilbertE

Description

@WilbertE

Describe the bug
I get an error on this line:
var tools = FunctionCallingHelper.GetToolDefinitions<[MyClass]>();
When upgrading Betalgo.OpenAI from 8.6.2 to 8.7.1.
The Betalgo.OpenAI.Utilities is version 8.1.0

The exception is: `Method not found: 'Void OpenAI.Builders.FunctionDefinitionBuilder..ctor(System.String, System.String)'

The stacktrace is:

  at OpenAI.Utilities.FunctionCalling.FunctionCallingHelper.GetFunctionDefinition(MethodInfo methodInfo)
   at OpenAI.Utilities.FunctionCalling.FunctionCallingHelper.GetToolDefinition(MethodInfo methodInfo)
   at OpenAI.Utilities.FunctionCalling.FunctionCallingHelper.<>c.<GetToolDefinitions>b__4_2(<>f__AnonymousType02 t)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator2.ToList()
   at OpenAI.Utilities.FunctionCalling.FunctionCallingHelper.GetToolDefinitions(Type type)
   at OpenAI.Utilities.FunctionCalling.FunctionCallingHelper.GetToolDefinitions[T]()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions