Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Providing default value to tool definition doesn't compile. #25

Open
ras-matusevich-sh opened this issue Jul 15, 2024 · 0 comments
Open

Comments

@ras-matusevich-sh
Copy link

ras-matusevich-sh commented Jul 15, 2024

For

[ClaudiaFunction]
  public static async Task<string> RouteToSubflow(string newSubflow, string additionalInfo = "") => await StaticObjectResolver.Instance
        .Resolve<IClaudeFunctionRunner>()
        .ExecuteFunction(nameof(RouteToSubflow), JsonSerializer.Serialize(new { newSubflow, additionalInfo }));

Tool generation generates

 case "RouteToSubflow":
 {
     var _0 = GetValueOrDefault<string>(item, "newSubflow", default!);
     var _1 = GetValueOrDefault<string>(item, "additionalInfo", );

     string? _callResult;
     bool? _isError = null;
     try
     {
         _callResult = (await RouteToSubflow(_0, _1)).ToString();
     }

And it fails to compile due to ,); (var _1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant