box-node-sdk
Version:
Official SDK for Box Platform APIs
32 lines (31 loc) • 1.93 kB
TypeScript
import { SerializedData } from '../serialization/json';
export type AiAgentReferenceTypeField = 'ai_agent_id';
export declare class AiAgentReference {
/**
* The type of AI agent used to handle queries. */
readonly type: AiAgentReferenceTypeField;
/**
* The ID of an Agent. This can be a numeric ID for custom agents (for example, `14031`)
* or a unique identifier for pre-built agents (for example, `enhanced_extract_agent`
* for the [Enhanced Extract Agent](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured#enhanced-extract-agent)). */
readonly id?: string;
readonly rawData?: SerializedData;
constructor(fields: Omit<AiAgentReference, 'type'> & Partial<Pick<AiAgentReference, 'type'>>);
}
export interface AiAgentReferenceInput {
/**
* The type of AI agent used to handle queries. */
readonly type?: AiAgentReferenceTypeField;
/**
* The ID of an Agent. This can be a numeric ID for custom agents (for example, `14031`)
* or a unique identifier for pre-built agents (for example, `enhanced_extract_agent`
* for the [Enhanced Extract Agent](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured#enhanced-extract-agent)). */
readonly id?: string;
readonly rawData?: SerializedData;
}
export declare function serializeAiAgentReferenceTypeField(val: AiAgentReferenceTypeField): SerializedData;
export declare function deserializeAiAgentReferenceTypeField(val: SerializedData): AiAgentReferenceTypeField;
export declare function serializeAiAgentReference(val: AiAgentReference): SerializedData;
export declare function deserializeAiAgentReference(val: SerializedData): AiAgentReference;
export declare function serializeAiAgentReferenceInput(val: AiAgentReferenceInput): SerializedData;
export declare function deserializeAiAgentReferenceInput(val: SerializedData): AiAgentReferenceInput;