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

AudioPart.md

52 lines930 Bytes

1---
2id: AudioPart
3title: AudioPart
4---
5​
6# Interface: AudioPart\<TMetadata\>
7​
8Defined in: [packages/ai/src/types.ts:260](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L260)
9​
10Audio content part for multimodal messages.
11​
12## Type Parameters
13​
14### TMetadata
15​
16`TMetadata` = `unknown`
17​
18Provider-specific metadata type
19​
20## Properties
21​
22### metadata?
23​
24```ts
25optional metadata: TMetadata;
26```
27​
28Defined in: [packages/ai/src/types.ts:265](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L265)
29​
30Provider-specific metadata (e.g., format, sample rate)
31​
32***
33​
34### source
35​
36```ts
37source: ContentPartSource;
38```
39​
40Defined in: [packages/ai/src/types.ts:263](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L263)
41​
42Source of the audio content
43​
44***
45​
46### type
47​
48```ts
49type: "audio";
50```
51​
52Defined in: [packages/ai/src/types.ts:261](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L261)