Accessing the tracker from a custom channel

Hi!

I’m implementing a custom channel as per: Custom Connectors

Is there a way to access the Tracker programmatically without having to hit the API endpoint? I’m looking to trigger some events (slots and actions) based off metadata sent through as part of the request. Any suggestions or recommendations would be very much appreciated.

For example, I fired off SetSlot(key, value) when parsing the metadata in get_metadata() but it doesn’t appear to impact the Tracker as it doesn’t have context.

Cheers