Skip to content

Commit 3c6e616

Browse files
docs: regenerate API documentation (#638)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent bdca880 commit 3c6e616

57 files changed

Lines changed: 266 additions & 212 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/reference/functions/chat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: chat
99
function chat<TAdapter, TSchema, TStream>(options): TextActivityResult<TSchema, TStream>;
1010
```
1111

12-
Defined in: [packages/typescript/ai/src/activities/chat/index.ts:2120](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/index.ts#L2120)
12+
Defined in: [packages/typescript/ai/src/activities/chat/index.ts:2385](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/index.ts#L2385)
1313

1414
Text activity - handles agentic text generation, one-shot text generation, and agentic structured output.
1515

docs/reference/interfaces/ApprovalRequestedEvent.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: ApprovalRequestedEvent
55

66
# Interface: ApprovalRequestedEvent
77

8-
Defined in: [packages/typescript/ai/src/types.ts:1196](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1196)
8+
Defined in: [packages/typescript/ai/src/types.ts:1212](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1212)
99

1010
Emitted when a server tool requires approval before execution. The agent
1111
loop yields this and pauses — `structured-output.complete` will not fire
@@ -31,7 +31,7 @@ for that run. The shape is fixed by the orchestrator's tool-approval flow
3131
optional model: string;
3232
```
3333

34-
Defined in: [packages/typescript/ai/src/types.ts:1148](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1148)
34+
Defined in: [packages/typescript/ai/src/types.ts:1164](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1164)
3535

3636
Model identifier for multi-model support
3737

@@ -47,7 +47,7 @@ Model identifier for multi-model support
4747
name: "approval-requested";
4848
```
4949

50-
Defined in: [packages/typescript/ai/src/types.ts:1197](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1197)
50+
Defined in: [packages/typescript/ai/src/types.ts:1213](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1213)
5151

5252
#### Overrides
5353

@@ -63,7 +63,7 @@ CustomEvent.name
6363
value: object;
6464
```
6565

66-
Defined in: [packages/typescript/ai/src/types.ts:1198](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1198)
66+
Defined in: [packages/typescript/ai/src/types.ts:1214](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1214)
6767

6868
#### approval
6969

docs/reference/interfaces/AudioGenerationOptions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: AudioGenerationOptions
55

66
# Interface: AudioGenerationOptions\<TProviderOptions\>
77

8-
Defined in: [packages/typescript/ai/src/types.ts:1490](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1490)
8+
Defined in: [packages/typescript/ai/src/types.ts:1506](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1506)
99

1010
Options for audio generation (music, sound effects, etc.).
1111
These are the common options supported across providers.
@@ -24,7 +24,7 @@ These are the common options supported across providers.
2424
optional duration: number;
2525
```
2626

27-
Defined in: [packages/typescript/ai/src/types.ts:1498](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1498)
27+
Defined in: [packages/typescript/ai/src/types.ts:1514](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1514)
2828

2929
Desired duration in seconds
3030

@@ -36,7 +36,7 @@ Desired duration in seconds
3636
logger: InternalLogger;
3737
```
3838

39-
Defined in: [packages/typescript/ai/src/types.ts:1506](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1506)
39+
Defined in: [packages/typescript/ai/src/types.ts:1522](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1522)
4040

4141
Internal logger threaded from the generateAudio() entry point. Adapters
4242
must call logger.request() before the SDK call and logger.errors() in
@@ -50,7 +50,7 @@ catch blocks.
5050
model: string;
5151
```
5252

53-
Defined in: [packages/typescript/ai/src/types.ts:1494](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1494)
53+
Defined in: [packages/typescript/ai/src/types.ts:1510](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1510)
5454

5555
The model to use for audio generation
5656

@@ -62,7 +62,7 @@ The model to use for audio generation
6262
optional modelOptions: TProviderOptions;
6363
```
6464

65-
Defined in: [packages/typescript/ai/src/types.ts:1500](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1500)
65+
Defined in: [packages/typescript/ai/src/types.ts:1516](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1516)
6666

6767
Model-specific options for audio generation
6868

@@ -74,6 +74,6 @@ Model-specific options for audio generation
7474
prompt: string;
7575
```
7676

77-
Defined in: [packages/typescript/ai/src/types.ts:1496](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1496)
77+
Defined in: [packages/typescript/ai/src/types.ts:1512](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1512)
7878

7979
Text description of the desired audio

docs/reference/interfaces/AudioGenerationResult.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: AudioGenerationResult
55

66
# Interface: AudioGenerationResult
77

8-
Defined in: [packages/typescript/ai/src/types.ts:1522](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1522)
8+
Defined in: [packages/typescript/ai/src/types.ts:1538](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1538)
99

1010
Result of audio generation
1111

@@ -17,7 +17,7 @@ Result of audio generation
1717
audio: GeneratedAudio;
1818
```
1919

20-
Defined in: [packages/typescript/ai/src/types.ts:1528](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1528)
20+
Defined in: [packages/typescript/ai/src/types.ts:1544](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1544)
2121

2222
The generated audio
2323

@@ -29,7 +29,7 @@ The generated audio
2929
id: string;
3030
```
3131

32-
Defined in: [packages/typescript/ai/src/types.ts:1524](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1524)
32+
Defined in: [packages/typescript/ai/src/types.ts:1540](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1540)
3333

3434
Unique identifier for the generation
3535

@@ -41,7 +41,7 @@ Unique identifier for the generation
4141
model: string;
4242
```
4343

44-
Defined in: [packages/typescript/ai/src/types.ts:1526](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1526)
44+
Defined in: [packages/typescript/ai/src/types.ts:1542](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1542)
4545

4646
Model used for generation
4747

@@ -53,7 +53,7 @@ Model used for generation
5353
optional usage: object;
5454
```
5555

56-
Defined in: [packages/typescript/ai/src/types.ts:1530](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1530)
56+
Defined in: [packages/typescript/ai/src/types.ts:1546](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1546)
5757

5858
Token usage information (if available)
5959

docs/reference/interfaces/BaseAGUIEvent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: BaseAGUIEvent
55

66
# Interface: BaseAGUIEvent
77

8-
Defined in: [packages/typescript/ai/src/types.ts:891](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L891)
8+
Defined in: [packages/typescript/ai/src/types.ts:907](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L907)
99

1010
Base structure for AG-UI events.
1111
Extends @ag-ui/core BaseEvent with TanStack AI additions.
@@ -31,6 +31,6 @@ TanStack AI adds: `model?`
3131
optional model: string;
3232
```
3333

34-
Defined in: [packages/typescript/ai/src/types.ts:893](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L893)
34+
Defined in: [packages/typescript/ai/src/types.ts:909](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L909)
3535

3636
Model identifier for multi-model support

docs/reference/interfaces/CustomEvent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: CustomEvent
55

66
# Interface: CustomEvent
77

8-
Defined in: [packages/typescript/ai/src/types.ts:1146](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1146)
8+
Defined in: [packages/typescript/ai/src/types.ts:1162](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1162)
99

1010
Custom event for extensibility.
1111

@@ -37,6 +37,6 @@ TanStack AI adds: `model?`
3737
optional model: string;
3838
```
3939

40-
Defined in: [packages/typescript/ai/src/types.ts:1148](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1148)
40+
Defined in: [packages/typescript/ai/src/types.ts:1164](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1164)
4141

4242
Model identifier for multi-model support

docs/reference/interfaces/DefaultMessageMetadataByModality.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: DefaultMessageMetadataByModality
55

66
# Interface: DefaultMessageMetadataByModality
77

8-
Defined in: [packages/typescript/ai/src/types.ts:1742](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1742)
8+
Defined in: [packages/typescript/ai/src/types.ts:1758](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1758)
99

1010
Default metadata type for adapters that don't define custom metadata.
1111
Uses unknown for all modalities.
@@ -18,7 +18,7 @@ Uses unknown for all modalities.
1818
audio: unknown;
1919
```
2020

21-
Defined in: [packages/typescript/ai/src/types.ts:1745](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1745)
21+
Defined in: [packages/typescript/ai/src/types.ts:1761](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1761)
2222

2323
***
2424

@@ -28,7 +28,7 @@ Defined in: [packages/typescript/ai/src/types.ts:1745](https://github.com/TanSta
2828
document: unknown;
2929
```
3030

31-
Defined in: [packages/typescript/ai/src/types.ts:1747](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1747)
31+
Defined in: [packages/typescript/ai/src/types.ts:1763](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1763)
3232

3333
***
3434

@@ -38,7 +38,7 @@ Defined in: [packages/typescript/ai/src/types.ts:1747](https://github.com/TanSta
3838
image: unknown;
3939
```
4040

41-
Defined in: [packages/typescript/ai/src/types.ts:1744](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1744)
41+
Defined in: [packages/typescript/ai/src/types.ts:1760](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1760)
4242

4343
***
4444

@@ -48,7 +48,7 @@ Defined in: [packages/typescript/ai/src/types.ts:1744](https://github.com/TanSta
4848
text: unknown;
4949
```
5050

51-
Defined in: [packages/typescript/ai/src/types.ts:1743](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1743)
51+
Defined in: [packages/typescript/ai/src/types.ts:1759](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1759)
5252

5353
***
5454

@@ -58,4 +58,4 @@ Defined in: [packages/typescript/ai/src/types.ts:1743](https://github.com/TanSta
5858
video: unknown;
5959
```
6060

61-
Defined in: [packages/typescript/ai/src/types.ts:1746](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1746)
61+
Defined in: [packages/typescript/ai/src/types.ts:1762](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1762)

docs/reference/interfaces/ImageGenerationOptions.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: ImageGenerationOptions
55

66
# Interface: ImageGenerationOptions\<TProviderOptions, TSize\>
77

8-
Defined in: [packages/typescript/ai/src/types.ts:1417](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1417)
8+
Defined in: [packages/typescript/ai/src/types.ts:1433](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1433)
99

1010
Options for image generation.
1111
These are the common options supported across providers.
@@ -28,7 +28,7 @@ These are the common options supported across providers.
2828
logger: InternalLogger;
2929
```
3030

31-
Defined in: [packages/typescript/ai/src/types.ts:1435](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1435)
31+
Defined in: [packages/typescript/ai/src/types.ts:1451](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1451)
3232

3333
Internal logger threaded from the generateImage() entry point. Adapters must
3434
call logger.request() before the SDK call and logger.errors() in catch blocks.
@@ -41,7 +41,7 @@ call logger.request() before the SDK call and logger.errors() in catch blocks.
4141
model: string;
4242
```
4343

44-
Defined in: [packages/typescript/ai/src/types.ts:1422](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1422)
44+
Defined in: [packages/typescript/ai/src/types.ts:1438](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1438)
4545

4646
The model to use for image generation
4747

@@ -53,7 +53,7 @@ The model to use for image generation
5353
optional modelOptions: TProviderOptions;
5454
```
5555

56-
Defined in: [packages/typescript/ai/src/types.ts:1430](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1430)
56+
Defined in: [packages/typescript/ai/src/types.ts:1446](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1446)
5757

5858
Model-specific options for image generation
5959

@@ -65,7 +65,7 @@ Model-specific options for image generation
6565
optional numberOfImages: number;
6666
```
6767

68-
Defined in: [packages/typescript/ai/src/types.ts:1426](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1426)
68+
Defined in: [packages/typescript/ai/src/types.ts:1442](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1442)
6969

7070
Number of images to generate (default: 1)
7171

@@ -77,7 +77,7 @@ Number of images to generate (default: 1)
7777
prompt: string;
7878
```
7979

80-
Defined in: [packages/typescript/ai/src/types.ts:1424](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1424)
80+
Defined in: [packages/typescript/ai/src/types.ts:1440](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1440)
8181

8282
Text description of the desired image(s)
8383

@@ -89,6 +89,6 @@ Text description of the desired image(s)
8989
optional size: TSize;
9090
```
9191

92-
Defined in: [packages/typescript/ai/src/types.ts:1428](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1428)
92+
Defined in: [packages/typescript/ai/src/types.ts:1444](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1444)
9393

9494
Image size in WIDTHxHEIGHT format (e.g., "1024x1024")

docs/reference/interfaces/ImageGenerationResult.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: ImageGenerationResult
55

66
# Interface: ImageGenerationResult
77

8-
Defined in: [packages/typescript/ai/src/types.ts:1467](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1467)
8+
Defined in: [packages/typescript/ai/src/types.ts:1483](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1483)
99

1010
Result of image generation
1111

@@ -17,7 +17,7 @@ Result of image generation
1717
id: string;
1818
```
1919

20-
Defined in: [packages/typescript/ai/src/types.ts:1469](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1469)
20+
Defined in: [packages/typescript/ai/src/types.ts:1485](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1485)
2121

2222
Unique identifier for the generation
2323

@@ -29,7 +29,7 @@ Unique identifier for the generation
2929
images: GeneratedImage[];
3030
```
3131

32-
Defined in: [packages/typescript/ai/src/types.ts:1473](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1473)
32+
Defined in: [packages/typescript/ai/src/types.ts:1489](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1489)
3333

3434
Array of generated images
3535

@@ -41,7 +41,7 @@ Array of generated images
4141
model: string;
4242
```
4343

44-
Defined in: [packages/typescript/ai/src/types.ts:1471](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1471)
44+
Defined in: [packages/typescript/ai/src/types.ts:1487](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1487)
4545

4646
Model used for generation
4747

@@ -53,7 +53,7 @@ Model used for generation
5353
optional usage: object;
5454
```
5555

56-
Defined in: [packages/typescript/ai/src/types.ts:1475](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1475)
56+
Defined in: [packages/typescript/ai/src/types.ts:1491](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1491)
5757

5858
Token usage information (if available)
5959

docs/reference/interfaces/MessagesSnapshotEvent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: MessagesSnapshotEvent
55

66
# Interface: MessagesSnapshotEvent
77

8-
Defined in: [packages/typescript/ai/src/types.ts:1108](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1108)
8+
Defined in: [packages/typescript/ai/src/types.ts:1124](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1124)
99

1010
Emitted to provide a snapshot of all messages in a conversation.
1111

@@ -36,6 +36,6 @@ Use converters to transform to/from TanStack UIMessage format.
3636
optional model: string;
3737
```
3838

39-
Defined in: [packages/typescript/ai/src/types.ts:1110](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1110)
39+
Defined in: [packages/typescript/ai/src/types.ts:1126](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L1126)
4040

4141
Model identifier for multi-model support

0 commit comments

Comments
 (0)