({
providerProfile,
threadId,
onTurnStarted = null,
}: {
providerProfile: ProviderProfile;
threadId: string;
onTurnStarted?: ((meta: Record<string, unknown>) => Promise<void> | void) | null;
})
| 212 | } |
| 213 | |
| 214 | async compactThread({ |
| 215 | providerProfile, |
| 216 | threadId, |
| 217 | onTurnStarted = null, |
| 218 | }: { |
| 219 | providerProfile: ProviderProfile; |
| 220 | threadId: string; |
| 221 | onTurnStarted?: ((meta: Record<string, unknown>) => Promise<void> | void) | null; |
| 222 | }) { |
| 223 | const client = await this.ensureClient(providerProfile); |
| 224 | return client.compactThread({ |
| 225 | threadId, |
| 226 | onTurnStarted, |
| 227 | }); |
| 228 | } |
| 229 | |
| 230 | async listThreads({ |
| 231 | providerProfile, |
nothing calls this directly
no test coverage detected