@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
42 lines (41 loc) • 1.47 kB
TypeScript
import type { Prompt } from '../../types/Prompt';
import type { TODO_any } from '../../utils/organization/TODO_any';
/**
* Builds AgentKit input items, including multimodal attachments.
*
* @private helper of `OpenAiAgentKitExecutionTools`
*/
export declare class OpenAiAgentKitExecutionToolsInputBuilder {
/**
* Builds AgentKit input items from the prompt and optional thread.
*/
buildAgentKitInputItems(prompt: Prompt, rawPromptContent: string): Promise<Array<TODO_any>>;
/**
* Builds the user message content for AgentKit runs, including file inputs when provided.
*/
private buildAgentKitUserContent;
/**
* Converts uploaded `File` objects into AgentKit `input_image` entries.
*/
private createAgentKitInputImageItemsFromFiles;
/**
* Converts image chat attachments into AgentKit `input_image` entries.
*/
private createAgentKitInputImageItemsFromAttachments;
/**
* Builds AgentKit user content that can include text, uploaded files, and image attachments.
*/
private buildAgentKitUserContentWithAttachments;
/**
* Checks whether one chat attachment can be sent as an image input.
*/
private isImageAttachment;
/**
* Returns one lowercase extension extracted from a filename/pathname.
*/
private getLowercaseFilenameExtension;
/**
* Tries to extract one extension from URL pathname.
*/
private getUrlPathnameExtension;
}