Secondary
Services
Services are collections of functions
A service is a collection of functions that can be executed by an agent.
The Inferable SDK provides a default
service which can be used to register services.
Explicitly registering services is only required if you have multiple hosts with different functions available.
Creating a new service
inferable/support.ts
Functions
service.start()
Starts listening for work on the service, allowing agents to invoke the functions.
service.stop()
Stops listening for work on the service, preventing agents from invoking the functions.
service.register()
Registers a new function with the service. Please see the functions documentation for more details.
Was this page helpful?