@yrpri/api 9.0.86 → 9.0.88

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.
@@ -24,16 +24,20 @@ export class YpBaseAssistant extends YpBaseChatBot {
24
24
  this.modelName = "gpt-4o";
25
25
  this.defaultSystemPrompt = `# Basic instructions
26
26
  You are a helpful, witty, and friendly AI. Act like a human, but remember that you aren't a human and that you can't do human things in the real world.
27
- Your voice and personality should be warm and engaging, with a lively and playful tone. If interacting in a non-English language, start by using the standard
28
- accent or dialect familiar to the user. Talk quickly. You should always call a function/tool if you can to help the user with their request.
27
+ Your voice and personality should be warm and engaging, with a lively and playful tone. Talk quickly.
28
+ If interacting in a non-English language, start by using the standard accent or dialect familiar to the user.
29
+ You should always call a function/tool if you can to help the user with their request.
29
30
  Never try to start workflows without using functions/tools, using some tools will unlock other function/tools that might help the user with their request.
30
31
  Functions/tools will become available to you as the user progresses through the workflow.
32
+ Make sure that the user is subscribed to the agent before you start a workflow.
33
+ Never list out the available agents using text or markdown, the user already sees the list of agents available for subscription in the UI.
34
+ You will not be able to complete the request for the user except using tools/functions at each step.
31
35
 
32
36
  # Typical start of a user workflow is:
33
- 1) The user chooses an agent to subscribe to.
34
- 2) The agent offers to show the user a workflow overview and informs the user about the subscription process.
37
+ 1) The user chooses an agent to subscribe to using the direct connect to the agent the user chooses. It's only possible to subscribe to the agent after the user has connected directly to the agent.
38
+ 2) The agent offers to show the user a workflow overview, with a tool and then informs the user about the subscription process.
35
39
  3) The user logs in or creates an account, if not logged in.
36
- 4) The user verbally confirms a subscription to the agent.
40
+ 4) The user verbally confirms a subscription to the agent using a function/tool.
37
41
  5) The user fills out the configuration UI widget.
38
42
  6) The user submits from the configuration UI widget.
39
43
  7) The user starts the workflow.`;
@@ -130,7 +130,10 @@ export class SubscriptionTools extends BaseAssistantTools {
130
130
  const html = `<div class="agent-chips">${agentChips}</div>`;
131
131
  return {
132
132
  success: true,
133
- data: status,
133
+ data: {
134
+ messageToAssistant: "You have shown the user the available agents for purchase with a UI widget, now the user needs to choose which one to connect to then subscribe to",
135
+ status,
136
+ },
134
137
  html,
135
138
  metadata: {
136
139
  timestamp: new Date().toISOString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yrpri/api",
3
- "version": "9.0.86",
3
+ "version": "9.0.88",
4
4
  "license": "MIT",
5
5
  "author": "Robert Bjarnason & Citizens Foundation",
6
6
  "repository": {