EdgeIntelligencePort
@totemsdk/intelligence / EdgeIntelligencePort
Interface: EdgeIntelligencePort
Edge-compatible intelligence port contract.
Lives in @totemsdk/intelligence (not @totemsdk/edge) so that adapters like
@totemsdk/qvac/edge can implement a port for @totemsdk/edge without
depending on edge itself. @totemsdk/edge re-exports this type and hosts
implementations via EdgeRuntimePorts.intelligence.
Properties
capabilities
readonlycapabilities: readonlystring[]
Capability strings advertised (e.g. ['intelligence:llm', …]).
providerId
readonlyproviderId:string
Stable provider id (e.g. 'qvac').
Methods
cancel()?
optionalcancel(requestId):Promise<IntelligencePortResult<unknown>>
Parameters
requestId
string
Returns
Promise<IntelligencePortResult<unknown>>
close()?
optionalclose():Promise<void>
Returns
Promise<void>
invoke()
invoke(
params):Promise<IntelligencePortResult<{data:unknown;receipt?:unknown;usage?:Record<string,unknown>; }>>
Parameters
params
context?
Record<string, unknown>
domain
string
op
string
params
Record<string, unknown>
requestId?
string
signal?
AbortSignal
Returns
Promise<IntelligencePortResult<{ data: unknown; receipt?: unknown; usage?: Record<string, unknown>; }>>