UNPKG

portkey-ai

Version:
51 lines (50 loc) 1.98 kB
import { CursorPageParams, Metadata } from '../_types/sharedTypes'; import { ApiClientInterface } from '../_types/generalTypes'; import { ApiResource } from '../apiResource'; import { RequestOptions } from '../baseClient'; import { AssistantUpdateParams as oaiAssistantUpdateParams } from 'openai/resources/beta/assistants'; export interface AssistantCreateParams { model: string; description?: string | null; instructions?: string | null; metadata?: Metadata | null; name?: string | null; tools?: Array<any>; response_format?: any | null; temperature?: number | null; tool_resources?: any | null; top_p?: number | null; [key: string]: any; } export interface FileCreateParams { file_id: string; } export interface FileListParams extends CursorPageParams { before?: string; order?: string; } export interface AssistantListParams extends CursorPageParams { before?: string; order?: string; } export interface AssistantUpdateParams { description?: string | null; file_ids?: Array<string>; instructions?: string | null; metadata?: Metadata | null; model?: string; name?: string | null; tools?: Array<any>; response_format?: any | null; temperature?: number | null; tool_resources?: oaiAssistantUpdateParams.ToolResources | null; top_p?: number | null; [key: string]: any; } export declare class Assistants extends ApiResource { create(_body: AssistantCreateParams, params?: ApiClientInterface, opts?: RequestOptions): Promise<any>; list(_query?: AssistantListParams, params?: ApiClientInterface, opts?: RequestOptions): Promise<any>; retrieve(assistantId: string, params?: ApiClientInterface, opts?: RequestOptions): Promise<any>; update(assistantId: string, _body: AssistantUpdateParams, params?: ApiClientInterface, opts?: RequestOptions): Promise<any>; del(assistantId: string, params?: ApiClientInterface, opts?: RequestOptions): Promise<any>; }