@fishaudio/agent-react 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @fishaudio/agent-react
|
|
2
2
|
|
|
3
|
-
React hooks and components for [Fish Audio](https://fish.audio) voice agents, built on [`@fishaudio/agent-client`](https://
|
|
3
|
+
React hooks and components for [Fish Audio](https://fish.audio) voice agents, built on [`@fishaudio/agent-client`](https://www.npmjs.com/package/@fishaudio/agent-client).
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -39,10 +39,6 @@ The hook ends the session automatically when the component unmounts. Start calls
|
|
|
39
39
|
|
|
40
40
|
## Documentation
|
|
41
41
|
|
|
42
|
-
- [React
|
|
43
|
-
- [`useConversation`](https://github.com/fishaudio/fish-agent-sdk-web/blob/main/docs/react/useConversation.md) — session lifecycle as a hook.
|
|
44
|
-
- [Provider](https://github.com/fishaudio/fish-agent-sdk-web/blob/main/docs/react/provider.md) — share one conversation across a component tree.
|
|
45
|
-
- [`useAgentMessages`](https://github.com/fishaudio/fish-agent-sdk-web/blob/main/docs/react/useAgentMessages.md) — build a streaming chat UI.
|
|
46
|
-
- [Audio visualization](https://github.com/fishaudio/fish-agent-sdk-web/blob/main/docs/react/audio-visualization.md) — `useAudioLevels` and `<AgentAudioVisualizer />`.
|
|
42
|
+
- [React SDK](https://docs.fish.audio/agents/deploy/react-sdk) — quickstart, Next.js, `useConversation`, the provider, `useAgentMessages`, and audio visualization.
|
|
47
43
|
|
|
48
|
-
Authentication, events, client tools, and errors are documented with the [
|
|
44
|
+
Authentication, events, client tools, and errors are documented with the [Web SDK](https://docs.fish.audio/agents/deploy/web-sdk) — everything there applies here.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fishaudio/agent-react",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "React hooks and components for Fish Audio voice agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fish-audio",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"url": "git+https://github.com/fishaudio/fish-agent-sdk-web.git",
|
|
17
17
|
"directory": "packages/react"
|
|
18
18
|
},
|
|
19
|
-
"homepage": "https://
|
|
19
|
+
"homepage": "https://docs.fish.audio/agents/deploy/react-sdk",
|
|
20
20
|
"bugs": "https://github.com/fishaudio/fish-agent-sdk-web/issues",
|
|
21
21
|
"type": "module",
|
|
22
22
|
"sideEffects": false,
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@fishaudio/agent-client": "^0.1
|
|
50
|
+
"@fishaudio/agent-client": "^0.2.1"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": ">=18"
|