AxDocumentSource
type AxDocumentSource =
| {
data: string;
type: "text";
}
| {
data: string;
mediaType: "application/pdf";
type: "base64";
}
| {
type: "url";
url: string;
}
| {
fileId: string;
type: "file";
}
| {
content: object[];
type: "content";
};Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L550
Sources accepted by Anthropic document inputs. Text data is plain UTF-8 text.