Skip to content

Commit

Permalink
fix: rename somethingwrapper to MetaAgentSession
Browse files Browse the repository at this point in the history
  • Loading branch information
Kroisse committed Jan 22, 2025
1 parent 93ca77f commit c67a827
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class MetaAgentSessionManager {

async start(
options: MetaAgentSessionManagerStart
): Promise<SessionStageContextWrapWrapper> {
): Promise<MetaAgentSession> {
const connection: BackendKind = (() => {
switch (options.llmBackendKind) {
case "openai":
Expand Down Expand Up @@ -69,38 +69,13 @@ export class MetaAgentSessionManager {
initialHistory: options.dialogs,
};
// ^?
return new SessionStageContextWrapWrapper(param);
return new MetaAgentSession(param);
}
}

export class MetaAgentSession {
constructor() {}
constructor(_param: unknown) {}

// async launch(signal?: AbortSignal): Promise<void> {}

async abort(): Promise<void> {}
}

export interface SessionStageContextWrapWrapperOptions {
connection: BackendKind;
promptSet: never[];
connectorProvider: MetaAgentSessionDelegate;
sessionId: string;
platformInfo: PlatformInfo;
userContext: InitialInformation | undefined;

initialHistory: Dialog[];
}

export class SessionStageContextWrapWrapper {
constructor(
private readonly options: SessionStageContextWrapWrapperOptions
) {}

free(): void {
this.options;
return;
}
/**
* @param {AbortSignal | undefined} [signal]
* @returns {Promise<void>}
Expand Down

0 comments on commit c67a827

Please sign in to comment.