/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { llmConversationsCreate } from "../funcs/llmConversationsCreate.js"; import { llmConversationsCreateItems } from "../funcs/llmConversationsCreateItems.js"; import { llmConversationsDelete } from "../funcs/llmConversationsDelete.js"; import { llmConversationsDeleteItem } from "../funcs/llmConversationsDeleteItem.js"; import { llmConversationsDeleteItems } from "../funcs/llmConversationsDeleteItems.js"; import { llmConversationsGet } from "../funcs/llmConversationsGet.js"; import { llmConversationsGetItem } from "../funcs/llmConversationsGetItem.js"; import { llmConversationsList } from "../funcs/llmConversationsList.js"; import { llmConversationsListItems } from "../funcs/llmConversationsListItems.js"; import { llmConversationsUpdate } from "../funcs/llmConversationsUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Conversations extends ClientSDK { /** * Create a conversation * * @remarks * Create a conversation to store and retrieve conversation state across Response API calls. */ async create( request: operations.ConversationsCreateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmConversationsCreate( this, request, options, )); } /** * List conversations * * @remarks * List all conversations for the authenticated user with pagination support. */ async list( request: operations.ConversationsListRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmConversationsList( this, request, options, )); } /** * Retrieve a conversation * * @remarks * Get a conversation by ID. */ async get( request: operations.ConversationsRetrieveRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmConversationsGet( this, request, options, )); } /** * Update a conversation * * @remarks * Update a conversation's metadata. */ async update( request: operations.ConversationsUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmConversationsUpdate( this, request, options, )); } /** * Delete a conversation * * @remarks * Delete a conversation. Items in the conversation will not be deleted. */ async delete( request: operations.ConversationsDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmConversationsDelete( this, request, options, )); } /** * List conversation items * * @remarks * List all items for a conversation with the given ID. */ async listItems( request: operations.ConversationsItemsListRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmConversationsListItems( this, request, options, )); } /** * Create conversation items * * @remarks * Create items in a conversation with the given ID. */ async createItems( request: operations.ConversationsItemsCreateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmConversationsCreateItems( this, request, options, )); } /** * Delete multiple conversation items * * @remarks * Delete multiple items from a conversation with the given ID. */ async deleteItems( request: operations.ConversationsItemsDeleteManyRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmConversationsDeleteItems( this, request, options, )); } /** * Retrieve a conversation item * * @remarks * Get a single item from a conversation with the given IDs. */ async getItem( request: operations.ConversationsItemsRetrieveRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmConversationsGetItem( this, request, options, )); } /** * Delete a conversation item * * @remarks * Delete an item from a conversation with the given ID. */ async deleteItem( request: operations.ConversationsItemsDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmConversationsDeleteItem( this, request, options, )); } }