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
Just a suggestion as I had implemented this a while ago in an experimental plugin. Similar to this plugin there is a way to register "tools" (though was the openai "function" naming then). And I added another layer to populate a tool's metadata based off a given function's signature and documentation. E.g
So, this essentially made it easier / simpler to expose functionality as tools. Is a bit opinionated and not sure if the taste is right for this project of course!
Just a suggestion as I had implemented this a while ago in an experimental plugin. Similar to this plugin there is a way to register "tools" (though was the openai "function" naming then). And I added another layer to populate a tool's metadata based off a given function's signature and documentation. E.g
https://github.com/humanmade/ai-plugin/blob/main/inc/dashboard-assistant/functions/namespace.php#L24
The implementation for which is at https://github.com/humanmade/ai-plugin/blob/13e60218b4bf612eca5ed231353829f48aa6a874/inc/openai/class-function_.php#L40
So, this essentially made it easier / simpler to expose functionality as tools. Is a bit opinionated and not sure if the taste is right for this project of course!