Backplane. AgentRuntime. Provider behaviour
(backplane_agent_runtime v1.6.0)
Copy Markdown
ProviderPort boundary for Backplane agent runtime.
Summary
Types
@type adapter() :: module()
Callbacks
@callback chunks([map()]) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
@callback start(map()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
Functions
@spec complete_stream(adapter(), [map()]) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
@spec start(adapter(), map(), map()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}