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

Empower tools to return whatever they want instead of string #132

Open
chr-hertel opened this issue Oct 5, 2024 · 0 comments
Open

Empower tools to return whatever they want instead of string #132

chr-hertel opened this issue Oct 5, 2024 · 0 comments

Comments

@chr-hertel
Copy link
Member

Currently tools can only return string which makes sense in the first place since we need to provide the LLM a stringy result, but in the end it would be beneficial for users to just mark basically any public method, that returns something, as tool.

One example would be a ProductRepository->findByName(string $name): Product

By default it would be one solution to just call the serializer for array and object to serialize to json.

potentially later we could extend the AsTool config to cover the serializer context as well - enabling groups or similar.

@chr-hertel chr-hertel changed the title Empower to return tools whatever they want instead of string Empower tools to return whatever they want instead of string Oct 5, 2024
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