(input: SessionIdRpcInput & CompactOptions)
| 399 | } |
| 400 | |
| 401 | async compact(input: SessionIdRpcInput & CompactOptions): Promise<void> { |
| 402 | const rpc = await this.getRpc(); |
| 403 | return rpc.beginCompaction({ |
| 404 | sessionId: input.sessionId, |
| 405 | agentId: this.interactiveAgentId, |
| 406 | ...(input.instruction !== undefined ? { instruction: input.instruction } : {}), |
| 407 | }); |
| 408 | } |
| 409 | |
| 410 | async cancelCompaction(input: SessionIdRpcInput): Promise<void> { |
| 411 | const rpc = await this.getRpc(); |
nothing calls this directly
no test coverage detected