128
sendMessageError: Error | undefined;
129
async createSession(config?: IAgentCreateSessionConfig): Promise<IAgentCreateSessionResult> {
130
>
const session = config?.session ?? AgentSession.uri(this.id, `${this.id}-session-${this._nextId++}`);
mockAgent.ts
131
>
const rawId = AgentSession.id(session);
132
>
this._sessions.set(rawId, session);
133
>
return { session, project: mockProject(this.id), workingDirectory: this.resolvedWorkingDirectory };
134
>
}
135
136
async resolveSessionConfig(params: IAgentResolveSessionConfigParams): Promise<ResolveSessionConfigResult> {