import { Message } from '../prompts'; /** * Status of the prompt response. * @remarks * `success` - The prompt was successfully completed. * `error` - An error occurred while completing the prompt. * `rate_limited` - The request was rate limited. * `invalid_response` - The response was invalid. * `too_long` - The rendered prompt exceeded the `max_input_tokens` limit. */ export type PromptResponseStatus = 'success' | 'error' | 'rate_limited' | 'invalid_response' | 'too_long'; /** * Response returned by a `PromptCompletionClient`. * @template TContent Optional. Type of the content in the message. Defaults to `unknown`. */ export interface PromptResponse { /** * Status of the prompt response. */ status: PromptResponseStatus; /** * User input message sent to the model. `undefined` if no input was sent. If multiple action calls were made, this will be an array of messages. */ input?: Message | Message[]; /** * Message returned. * @remarks * This will be a `Message` object if the status is `success`, otherwise it will be a `string`. */ message?: Message; /** * Error returned. */ error?: Error; } //# sourceMappingURL=PromptResponse.d.ts.map