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

Metadata and return description for the tools #143

Open
raffaeler opened this issue Nov 16, 2024 · 3 comments
Open

Metadata and return description for the tools #143

raffaeler opened this issue Nov 16, 2024 · 3 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@raffaeler
Copy link

I wrote a C# code generator that already generates the serialized metadata (json schema) for my tools.

  • I would love not to be forced to derive the agent from the Tool class to avoid dependencies (*)
  • I would love to initialize the metadata using the full json schema so that I avoid serialization and reflection at runtime
  • Even using the Tool function, I don't see how to specify the description for the return parameter. How can I do that?

(*) I am already facing to the dependencies problem. My agents should be used from multiple implementations of "chat" providers and they currently have conflicting dependencies. Being forced to add a reference to all those libraries in a single project is a big mess.

Thanks!

@awaescher
Copy link
Owner

Sounds interesting, but I guess I need for information about the issues you face and maybe a look on the code you already have. Do you have it in a public repository?
Also, might Microsoft.Extensions.AI be an approach to that dependency issue you mentioned? OllamaSharp implements it.

@raffaeler
Copy link
Author

raffaeler commented Nov 16, 2024

Sounds interesting, but I guess I need for information about the issues you face and maybe a look on the code you already have. Do you have it in a public repository?

Unfortunately it's not public yet. It's a large solution of 20+ projects that i use as a demo in my public talks.

I'll probably do at a later time, but it's still a work in progress.

Also, might Microsoft.Extensions.AI be an approach to that dependency issue you mentioned? OllamaSharp implements it.

Yes I know and those extensions are suffering a similar issue: AITool cannot be constructed with just the json string which is a lost occasion and a waste of time as the code generator can serialize the schema at compile time instead of runtime.

May I help in any other way?

@awaescher
Copy link
Owner

I am not sure how I could help you here. Would you mind forking this repository and pushing a pull request? I'd be happy to review and merge it.

@awaescher awaescher added the help wanted Extra attention is needed label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants