Skip to main content

Interface: IBrainClientManager

services.IBrainClientManager

Interface for managing brain clients.

Table of contents

Methods

Methods

getAvailableBrains

getAvailableBrains(): LocalBrain[]

Retrieves all available local brains.

Returns

LocalBrain[]

An array of LocalBrain objects.

Defined in

src/services/brainClientService.ts:230


getAvailableClients

getAvailableClients(): IBrainClient[]

Retrieves all available brain clients.

Returns

IBrainClient[]

An array of IBrainClient objects.

Defined in

src/services/brainClientService.ts:224


getClient

getClient(brainId): undefined | IBrainClient

Retrieves a specific brain client by ID.

Parameters

NameTypeDescription
brainIdstringThe ID of the brain to retrieve.

Returns

undefined | IBrainClient

The IBrainClient if found, otherwise undefined.

Defined in

src/services/brainClientService.ts:218


getDefaultForCapability

getDefaultForCapability(capability): undefined | IBrainClient

Retrieves the default client for a given capability.

Parameters

NameTypeDescription
capabilitystringThe capability to search for.

Returns

undefined | IBrainClient

The default IBrainClient for the given capability, if one exists.

Defined in

src/services/brainClientService.ts:237