Skip to content

Commit 442914d

Browse files
committed
Updates
1 parent 057356a commit 442914d

File tree

2,675 files changed

+24200
-2316
lines changed

Some content is hidden

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

2,675 files changed

+24200
-2316
lines changed

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<script defer src="/static/js/lib-react.5edd1b77.js"></script>
1010
<script defer src="/static/js/lib-router.db7238c9.js"></script>
1111
<script defer src="/static/js/78699.ab32cbfe.js"></script>
12-
<script defer src="/static/js/index.8d9d45df.js"></script>
12+
<script defer src="/static/js/index.5cf60385.js"></script>
1313
<meta http-equiv="X-UA-Compatible" content="IE=edge">
1414
<meta name="generator" content="Rspress v2.0.0-rc.7">
1515
<link rel="icon" href="/icon.png">

doc/AppIntent.html

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<script defer src="/static/js/lib-react.5edd1b77.js"></script>
1010
<script defer src="/static/js/lib-router.db7238c9.js"></script>
1111
<script defer src="/static/js/78699.ab32cbfe.js"></script>
12-
<script defer src="/static/js/index.8d9d45df.js"></script>
12+
<script defer src="/static/js/index.5cf60385.js"></script>
1313
<meta http-equiv="X-UA-Compatible" content="IE=edge">
1414
<meta name="generator" content="Rspress v2.0.0-rc.7">
1515
<link rel="icon" href="/icon.png">
@@ -25,6 +25,36 @@
2525
<h2 class="rp-toc-include" id="1-type-definitions"><a href="#1-type-definitions" class="rp-header-anchor rp-link" aria-hidden="true">#</a>1. Type Definitions</h2>
2626
<h3 class="rp-toc-include" id="appintentt"><a href="#appintentt" class="rp-header-anchor rp-link" aria-hidden="true">#</a><code>AppIntent&lt;T&gt;</code></h3>
2727
<p>Represents a concrete intent instance with parameters and metadata.</p>
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+
41+
42+
43+
44+
45+
46+
47+
48+
49+
50+
51+
52+
53+
54+
55+
56+
57+
2858
<div class="rp-table-scroll-container rp-scrollbar"><table><thead><tr><th>Property</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>script</code></td><td><code>string</code></td><td>The internal script path. Automatically generated by the system.</td></tr><tr><td><code>name</code></td><td><code>string</code></td><td>The name of the AppIntent. Must be unique.</td></tr><tr><td><code>protocol</code></td><td><code>AppIntentProtocol</code></td><td>The protocol the intent conforms to (e.g., general, audio, Live Activity).</td></tr><tr><td><code>params</code></td><td><code>T</code></td><td>The parameters to be passed when the intent is executed.</td></tr></tbody></table></div>
2959
<hr/>
3060
<h3 class="rp-toc-include" id="appintentfactoryt"><a href="#appintentfactoryt" class="rp-header-anchor rp-link" aria-hidden="true">#</a><code>AppIntentFactory&lt;T&gt;</code></h3>
@@ -37,6 +67,31 @@ <h3 class="rp-toc-include" id="appintentperformt"><a href="#appintentperformt" c
3767
<hr/>
3868
<h3 class="rp-toc-include" id="appintentprotocol"><a href="#appintentprotocol" class="rp-header-anchor rp-link" aria-hidden="true">#</a><code>AppIntentProtocol</code></h3>
3969
<p>An enumeration that defines the behavior type of the intent.</p>
70+
71+
72+
73+
74+
75+
76+
77+
78+
79+
80+
81+
82+
83+
84+
85+
86+
87+
88+
89+
90+
91+
92+
93+
94+
4095
<div class="rp-table-scroll-container rp-scrollbar"><table><thead><tr><th>Enum Value</th><th>Description</th></tr></thead><tbody><tr><td><code>AppIntent</code> (0)</td><td>A general-purpose AppIntent for typical operations.</td></tr><tr><td><code>AudioPlaybackIntent</code> (1)</td><td>An intent that plays, pauses, or otherwise modifies audio playback.</td></tr><tr><td><code>AudioRecordingIntent</code> (2)</td><td><em>(iOS 18.0+)</em> An intent that starts, stops, or modifies audio recording. <strong>Note</strong>: On iOS/iPadOS, when using the <code>AudioRecordingIntent</code> protocol, you must start a <strong>Live Activity</strong> at the beginning of the recording and keep it active for the entire session. If you don&#x27;t, the recording will be automatically stopped.</td></tr><tr><td><code>LiveActivityIntent</code> (3)</td><td>An intent that starts, pauses, or modifies a Live Activity.</td></tr></tbody></table></div>
4196
<hr/>
4297
<h2 class="rp-toc-include" id="2-appintentmanager-class"><a href="#2-appintentmanager-class" class="rp-header-anchor rp-link" aria-hidden="true">#</a>2. <code>AppIntentManager</code> Class</h2>
@@ -48,6 +103,31 @@ <h3 class="rp-toc-include" id="appintentmanagerregistertoptions-appintentfactory
48103
<span class="line"><span style="color:var(--shiki-foreground)"> perform</span><span style="color:var(--shiki-token-keyword)">:</span><span style="color:var(--shiki-token-function)"> AppIntentPerform</span><span style="color:var(--shiki-foreground)">&lt;</span><span style="color:var(--shiki-token-function)">T</span><span style="color:var(--shiki-foreground)">&gt;;</span></span>
49104
<span class="line"><span style="color:var(--shiki-foreground)">})</span><span style="color:var(--shiki-token-keyword)">:</span><span style="color:var(--shiki-token-function)"> AppIntentFactory</span><span style="color:var(--shiki-foreground)">&lt;</span><span style="color:var(--shiki-token-function)">T</span><span style="color:var(--shiki-foreground)">&gt;</span></span></code></pre></div><div class="rp-code-button-group"><button class="rp-code-button-group__button rp-code-wrap-button" title="Toggle code wrap"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" class="rp-code-button-group__icon rp-code-button-group__icon--wrapped"><path fill="#22a041" d="M21 5H3v2h18zM3 19h7v-2H3zm0-6h15c1 0 2 .43 2 2s-1 2-2 2h-2v-2l-4 3 4 3v-2h2c2.95 0 4-1.27 4-4 0-2.72-1-4-4-4H3z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" class="rp-code-button-group__icon rp-code-button-group__icon--wrap"><path fill="currentColor" d="M16 7H3V5h13zM3 19h13v-2H3zm19-7-4-3v2H3v2h15v2z"></path></svg></button><button class="rp-code-button-group__button rp-code-copy-button" title="Copy code"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 30 30" class="rp-code-button-group__icon rp-code-copy-button__icon rp-code-copy-button__icon--copy"><path fill="currentColor" d="M28 10v18H10V10zm0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2"></path><path fill="currentColor" d="M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"></path></svg><svg width="32" height="32" viewBox="0 0 30 30" class="rp-code-button-group__icon rp-code-copy-button__icon rp-code-copy-button__icon--success"><path fill="#49cd37" d="m13 24-9-9 1.414-1.414L13 21.171 26.586 7.586 28 9z"></path></svg></button></div></div></div>
50105
<h4 class="rp-toc-include" id="parameters"><a href="#parameters" class="rp-header-anchor rp-link" aria-hidden="true">#</a>Parameters:</h4>
106+
107+
108+
109+
110+
111+
112+
113+
114+
115+
116+
117+
118+
119+
120+
121+
122+
123+
124+
125+
126+
127+
128+
129+
130+
51131
<div class="rp-table-scroll-container rp-scrollbar"><table><thead><tr><th>Property</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>name</code></td><td><code>string</code></td><td>A unique identifier for the AppIntent.</td></tr><tr><td><code>protocol</code></td><td><code>AppIntentProtocol</code></td><td>The protocol this intent implements.</td></tr><tr><td><code>perform</code></td><td><code>AppIntentPerform&lt;T&gt;</code></td><td>The asynchronous function executed when the intent is triggered. The <code>params</code> argument is passed from the control.</td></tr></tbody></table></div>
52132
<h4 class="rp-toc-include" id="returns"><a href="#returns" class="rp-header-anchor rp-link" aria-hidden="true">#</a>Returns:</h4>
53133
<ul>

doc/Assistant/Assistant Conversation APIs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<script defer src="/static/js/lib-react.5edd1b77.js"></script>
1010
<script defer src="/static/js/lib-router.db7238c9.js"></script>
1111
<script defer src="/static/js/78699.ab32cbfe.js"></script>
12-
<script defer src="/static/js/index.8d9d45df.js"></script>
12+
<script defer src="/static/js/index.5cf60385.js"></script>
1313
<meta http-equiv="X-UA-Compatible" content="IE=edge">
1414
<meta name="generator" content="Rspress v2.0.0-rc.7">
1515
<link rel="icon" href="/icon.png">

doc/Assistant/Assistant Quick Start.html

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<script defer src="/static/js/lib-react.5edd1b77.js"></script>
1010
<script defer src="/static/js/lib-router.db7238c9.js"></script>
1111
<script defer src="/static/js/78699.ab32cbfe.js"></script>
12-
<script defer src="/static/js/index.8d9d45df.js"></script>
12+
<script defer src="/static/js/index.5cf60385.js"></script>
1313
<meta http-equiv="X-UA-Compatible" content="IE=edge">
1414
<meta name="generator" content="Rspress v2.0.0-rc.7">
1515
<link rel="icon" href="/icon.png">
@@ -22,6 +22,31 @@
2222
<p>Before choosing an API, first decide <strong>what kind of result you need</strong>.</p>
2323
<hr/>
2424
<h2 class="rp-toc-include" id="assistant-api-overview"><a href="#assistant-api-overview" class="rp-header-anchor rp-link" aria-hidden="true">#</a>Assistant API Overview</h2>
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+
41+
42+
43+
44+
45+
46+
47+
48+
49+
2550
<div class="rp-table-scroll-container rp-scrollbar"><table><thead><tr><th>Category</th><th>Main APIs</th><th>Best For</th></tr></thead><tbody><tr><td>Structured Data</td><td><code>requestStructuredData</code></td><td>Extracting predictable JSON data</td></tr><tr><td>Streaming Output</td><td><code>requestStreaming</code></td><td>Real-time text generation</td></tr><tr><td>Conversations</td><td><code>startConversation</code> / <code>present</code> / <code>dismiss</code> / <code>stopConversation</code></td><td>Fully managed chat UI</td></tr></tbody></table></div>
2651
<hr/>
2752
<h2 class="rp-toc-include" id="requeststructureddata"><a href="#requeststructureddata" class="rp-header-anchor rp-link" aria-hidden="true">#</a>requestStructuredData</h2>

doc/Assistant/requestStreaming.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<script defer src="/static/js/lib-react.5edd1b77.js"></script>
1010
<script defer src="/static/js/lib-router.db7238c9.js"></script>
1111
<script defer src="/static/js/78699.ab32cbfe.js"></script>
12-
<script defer src="/static/js/index.8d9d45df.js"></script>
12+
<script defer src="/static/js/index.5cf60385.js"></script>
1313
<meta http-equiv="X-UA-Compatible" content="IE=edge">
1414
<meta name="generator" content="Rspress v2.0.0-rc.7">
1515
<link rel="icon" href="/icon.png">

doc/Assistant/requestStructuredData.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<script defer src="/static/js/lib-react.5edd1b77.js"></script>
1010
<script defer src="/static/js/lib-router.db7238c9.js"></script>
1111
<script defer src="/static/js/78699.ab32cbfe.js"></script>
12-
<script defer src="/static/js/index.8d9d45df.js"></script>
12+
<script defer src="/static/js/index.5cf60385.js"></script>
1313
<meta http-equiv="X-UA-Compatible" content="IE=edge">
1414
<meta name="generator" content="Rspress v2.0.0-rc.7">
1515
<link rel="icon" href="/icon.png">

0 commit comments

Comments
 (0)