Skip to content

Add semantic router factory #2363

Description

@jeffmaury

Is your feature request related to a problem? Please describe

In order to connect semantic router to workspaces, we need a way to create inference connections when starting a semantic router

Describe the solution you'd like

In the extension API, extends the Provider interface with:

interface SemanicRouterCreateParams {
  name: string;
  config: string;
}

interface SemanticRouterFactory extends ProviderConnectionFactory {
  readonly type: string; //semantic-router,...
  create(params: SemanicRouterCreateParams, logger?: Logger, token?: CancellationToken): Promise<void>;
}

setSemanticRouterConnectionFactory(semanticRouterConnectionFactory: SemanticRouterFactory): Disposable


Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Fields

No fields configured for Feature.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions