Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

ContentPartUrlSource.md

47 lines1010 Bytes

1---
2id: ContentPartUrlSource
3title: ContentPartUrlSource
4---
5​
6# Interface: ContentPartUrlSource
7​
8Defined in: [packages/ai/src/types.ts:221](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L221)
9​
10Source specification for URL-based content.
11mimeType is optional as it can often be inferred from the URL or response headers.
12​
13## Properties
14​
15### mimeType?
16​
17```ts
18optional mimeType: string;
19```
20​
21Defined in: [packages/ai/src/types.ts:233](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L233)
22​
23Optional MIME type hint for cases where providers can't infer it from the URL.
24​
25***
26​
27### type
28​
29```ts
30type: "url";
31```
32​
33Defined in: [packages/ai/src/types.ts:225](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L225)
34​
35Indicates this is URL-referenced content.
36​
37***
38​
39### value
40​
41```ts
42value: string;
43```
44​
45Defined in: [packages/ai/src/types.ts:229](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L229)
46​
47HTTP(S) URL or data URI pointing to the content.