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
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.
The text was updated successfully, but these errors were encountered:
chr-hertel
changed the title
Empower to return tools whatever they want instead of string
Empower tools to return whatever they want instead of stringOct 5, 2024
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
andobject
to serialize tojson
.potentially later we could extend the
AsTool
config to cover the serializer context as well - enabling groups or similar.The text was updated successfully, but these errors were encountered: