How do custom functions work in the Poly API?

Users can write custom functions in common languages like TypeScript, test them locally, and deploy them server or client-side. These functions become discoverable and usable via the Poly AI Assistant and client library.