Actors

The following actors are available globally.

  • A factory and registry for Collector types.

    CollectorFactory is responsible for:

    • Registering collector types by a string key (typically the server-provided “type” or “inputType”).
    • Creating collectors from JSON dictionaries provided by DaVinci responses.
    • Injecting contextual references (e.g., ContinueNode) into collectors that need them.
    • Resetting the registry (useful in tests).

    The actor ensures thread-safe registration and creation across concurrent tasks.

    See more

    Declaration

    Swift

    public actor CollectorFactory