LemonGateway.BindingResolver (lemon_gateway v0.1.0)

View Source

Resolves bindings and settings for a given chat scope.

Thin delegation layer that converts gateway-local structs to LemonCore types, delegates to LemonCore.BindingResolver, and converts results back to LemonGateway.Binding.

Summary

Functions

resolve_agent_id(scope)

@spec resolve_agent_id(LemonCore.ChatScope.t()) :: String.t()

resolve_binding(scope)

@spec resolve_binding(LemonCore.ChatScope.t()) :: LemonGateway.Binding.t() | nil

resolve_cwd(scope)

@spec resolve_cwd(LemonCore.ChatScope.t()) :: String.t() | nil

resolve_engine(scope, engine_hint, resume)

@spec resolve_engine(LemonCore.ChatScope.t(), String.t() | nil, map() | nil) ::
  String.t() | nil

resolve_queue_mode(scope)

@spec resolve_queue_mode(LemonCore.ChatScope.t()) :: atom() | nil