11import { Steps } from ' nextra/components'
22import { CoAgentsFeatures } from " @/components" ;
3-
3+ import { VscJson as JsonIcon } from " react-icons/vsc" ;
4+ import { BiSolidMessage as TextIcon } from " react-icons/bi" ;
5+ import { Frame , YouTubeVideo } from " @/components" ;
46
57# Getting Started with CoAgents
68
79
10+ ## The Core Features of a CoAgent:
11+
12+
813<CoAgentsFeatures.Toggle />
914
1015<CoAgentsFeatures.GenerativeUi >
1116 ### Generative UI
1217
13- Generative UI allows you to create dynamic user interfaces with AI-generated components.
18+ Generative UI allows you to create dynamic user interfaces with AI-generated components, inside a chat UI .
1419
1520 ``` tsx
1621 useCoAgentAction ({
@@ -34,6 +39,12 @@ import { CoAgentsFeatures } from "@/components";
3439</CoAgentsFeatures.GenerativeUi >
3540
3641<CoAgentsFeatures.StreamAgentState >
42+ ### Stream agent state
43+
44+ <Frame >
45+ <img src = " /images/coagents/intermediate-state.gif" />
46+ </Frame >
47+
3748 <Steps >
3849 ### Frontend
3950
@@ -84,8 +95,8 @@ import { CoAgentsFeatures } from "@/components";
8495 # imperative function:
8596 copilotkit_emit_state({" key" : value}, config)
8697 ```
87-
8898 </Steps >
99+
89100</CoAgentsFeatures.StreamAgentState >
90101
91102<CoAgentsFeatures.ShareAgentState >
@@ -117,5 +128,44 @@ import { CoAgentsFeatures } from "@/components";
117128<CoAgentsFeatures.AgentQAndA >
118129 ### Agent Q&A
119130
120- Coming soon.
131+ Agents can easily and intentionally ask the user questions. With support for:
132+
133+ - ** Text Feedback:** Via the chat UI.
134+ - ** Structured (JSON) Feedback:** Via fully custom UI/UX anywhere in your application (chat UI, modals, popups, forms, etc).
135+
136+ <br />
137+
138+ <div className = " flex gap-2 w-full my-2" >
139+ <div className = " flex-1 border bg-white rounded-lg shadow-md p-4" >
140+ <div className = " flex items-center justify-center gap-2 font-semibold" >
141+ <div className = " bg-indigo-500 rounded-md w-7 h-7 text-white flex items-center justify-center" >
142+ <TextIcon className = " w-4 h-4" />
143+ </div >
144+ <span >Text Feedback</span >
145+ </div >
146+ <div className = " italic py-4" >
147+ <img
148+ src = " /images/coagents/text-feedback.png"
149+ className = " rounded-md border"
150+ />
151+ </div >
152+ </div >
153+ <div className = " flex-1 border bg-white rounded-lg shadow-md p-4" >
154+ <div className = " flex items-center justify-center gap-2 font-semibold" >
155+ <div className = " bg-indigo-500 rounded-md w-7 h-7 text-white flex items-center justify-center" >
156+ <JsonIcon className = " w-5 h-5" />
157+ </div >
158+ <span >Structured (JSON) Feedback</span >
159+ </div >
160+ <div className = " italic py-4" >
161+ <img
162+ src = " /images/coagents/json-feedback.png"
163+ className = " rounded-md border"
164+ />
165+ </div >
166+ </div >
167+ </div >
168+
169+
170+
121171</CoAgentsFeatures.AgentQAndA >
0 commit comments