phonic
Version:
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [ • 1.87 kB
text/typescript
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
import * as core from "../../../../core/index.mjs";
import * as Phonic from "../../../index.mjs";
export declare namespace ConversationItemsClient {
type Options = BaseClientOptions;
interface RequestOptions extends BaseRequestOptions {
}
}
export declare class ConversationItemsClient {
protected readonly _options: NormalizedClientOptionsWithAuth<ConversationItemsClient.Options>;
constructor(options?: ConversationItemsClient.Options);
/**
* Returns the alternative response(s) the assistant would have
* produced for this conversation turn given changes to the agent system prompt.
*
* Only assistant items from ended conversations can be replayed. The
* conversation must have an associated agent.
*
* @param {string} id - The ID of the conversation item to replay.
* @param {Phonic.ReplayConversationItemRequest} request
* @param {ConversationItemsClient.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Phonic.BadRequestError}
* @throws {@link Phonic.UnauthorizedError}
* @throws {@link Phonic.ForbiddenError}
* @throws {@link Phonic.NotFoundError}
* @throws {@link Phonic.ConflictError}
* @throws {@link Phonic.UnprocessableEntityError}
* @throws {@link Phonic.InternalServerError}
*
* @example
* await client.conversationItems.replay("id", {
* system_prompt: "system_prompt"
* })
*/
replay(id: string, request: Phonic.ReplayConversationItemRequest, requestOptions?: ConversationItemsClient.RequestOptions): core.HttpResponsePromise<Phonic.ReplayConversationItemResponse>;
private __replay;
}