openai
Version:
The official TypeScript library for the OpenAI API
98 lines (90 loc) • 3.24 kB
text/typescript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
import * as AssistantsAPI from './assistants';
import * as ChatAPI from './chat/chat';
import {
Assistant,
AssistantCreateParams,
AssistantDeleted,
AssistantListParams,
AssistantStreamEvent,
AssistantTool,
AssistantUpdateParams,
Assistants,
AssistantsPage,
CodeInterpreterTool,
FileSearchTool,
FunctionTool,
MessageStreamEvent,
RunStepStreamEvent,
RunStreamEvent,
ThreadStreamEvent,
} from './assistants';
import * as RealtimeAPI from './realtime/realtime';
import { Realtime } from './realtime/realtime';
import * as ThreadsAPI from './threads/threads';
import {
AssistantResponseFormatOption,
AssistantToolChoice,
AssistantToolChoiceFunction,
AssistantToolChoiceOption,
Thread,
ThreadCreateAndRunParams,
ThreadCreateAndRunParamsNonStreaming,
ThreadCreateAndRunParamsStreaming,
ThreadCreateAndRunPollParams,
ThreadCreateAndRunStreamParams,
ThreadCreateParams,
ThreadDeleted,
ThreadUpdateParams,
Threads,
} from './threads/threads';
import { Chat } from './chat/chat';
export class Beta extends APIResource {
realtime: RealtimeAPI.Realtime = new RealtimeAPI.Realtime(this._client);
chat: ChatAPI.Chat = new ChatAPI.Chat(this._client);
assistants: AssistantsAPI.Assistants = new AssistantsAPI.Assistants(this._client);
threads: ThreadsAPI.Threads = new ThreadsAPI.Threads(this._client);
}
Beta.Realtime = Realtime;
Beta.Assistants = Assistants;
Beta.AssistantsPage = AssistantsPage;
Beta.Threads = Threads;
export declare namespace Beta {
export { Realtime as Realtime };
export { Chat };
export {
Assistants as Assistants,
type Assistant as Assistant,
type AssistantDeleted as AssistantDeleted,
type AssistantStreamEvent as AssistantStreamEvent,
type AssistantTool as AssistantTool,
type CodeInterpreterTool as CodeInterpreterTool,
type FileSearchTool as FileSearchTool,
type FunctionTool as FunctionTool,
type MessageStreamEvent as MessageStreamEvent,
type RunStepStreamEvent as RunStepStreamEvent,
type RunStreamEvent as RunStreamEvent,
type ThreadStreamEvent as ThreadStreamEvent,
AssistantsPage as AssistantsPage,
type AssistantCreateParams as AssistantCreateParams,
type AssistantUpdateParams as AssistantUpdateParams,
type AssistantListParams as AssistantListParams,
};
export {
Threads as Threads,
type AssistantResponseFormatOption as AssistantResponseFormatOption,
type AssistantToolChoice as AssistantToolChoice,
type AssistantToolChoiceFunction as AssistantToolChoiceFunction,
type AssistantToolChoiceOption as AssistantToolChoiceOption,
type Thread as Thread,
type ThreadDeleted as ThreadDeleted,
type ThreadCreateParams as ThreadCreateParams,
type ThreadUpdateParams as ThreadUpdateParams,
type ThreadCreateAndRunParams as ThreadCreateAndRunParams,
type ThreadCreateAndRunParamsNonStreaming as ThreadCreateAndRunParamsNonStreaming,
type ThreadCreateAndRunParamsStreaming as ThreadCreateAndRunParamsStreaming,
type ThreadCreateAndRunPollParams,
type ThreadCreateAndRunStreamParams,
};
}