You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds AgentView and AgentViewAction structs and an AgentView field on
AppFeatures so manifests using the new agent_view property survive
JSON/YAML round-trips through the CLI. Mirrors AssistantView and reuses
the existing SuggestedPrompts type.
want: `{"app_home":{},"assistant_view":{"assistant_description":"magic","suggested_prompts":[{"title":"visit the beach","message":"what is glass"}]},"bot_user":{"display_name":"einstein"}}`,
194
194
},
195
+
"includes agent view when provided": {
196
+
features: AppFeatures{
197
+
AgentView: &AgentView{
198
+
AgentDescription: "summarizes threads",
199
+
SuggestedPrompts: []SuggestedPrompts{
200
+
{
201
+
Title: "summarize this thread",
202
+
Message: "please summarize the conversation",
203
+
},
204
+
},
205
+
Actions: []AgentViewAction{
206
+
{
207
+
Name: "open_settings",
208
+
Description: "Open the agent settings panel.",
209
+
},
210
+
},
211
+
},
212
+
BotUser: BotUser{
213
+
DisplayName: "agent_smith",
214
+
},
215
+
},
216
+
want: `{"app_home":{},"agent_view":{"agent_description":"summarizes threads","suggested_prompts":[{"title":"summarize this thread","message":"please summarize the conversation"}],"actions":[{"name":"open_settings","description":"Open the agent settings panel."}]},"bot_user":{"display_name":"agent_smith"}}`,
0 commit comments