@segmentstream/ontology 0.137.0 → 0.137.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/CHANGELOG.md +12 -0
- package/README.md +3 -4
- package/dist/agent-chat.js +4 -3
- package/dist/sign-in.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.137.1
|
|
4
|
+
|
|
5
|
+
The agent's built-in instructions and the descriptions builders' agents read use neutral examples
|
|
6
|
+
instead of one workspace's: the group addressee prompt's examples talk about orders and support
|
|
7
|
+
requests rather than invoices and account balances, the file table tools speak of totals and
|
|
8
|
+
differences rather than balances and debits, and `agent_chat`'s `purpose` and `whenToUse` examples
|
|
9
|
+
name no person.
|
|
10
|
+
|
|
11
|
+
`agent_chat.lastMessageAt` says what it records: when a person last wrote in the chat, as the agent
|
|
12
|
+
saw it, to within 15 minutes. What the agent, staff or a workflow send leaves it as it is, so a
|
|
13
|
+
workflow finds the people silent since a time by it.
|
|
14
|
+
|
|
3
15
|
## 0.137.0
|
|
4
16
|
|
|
5
17
|
On WhatsApp, `agent_chat.send` takes an approved template in place of text, which reaches a person
|
package/README.md
CHANGED
|
@@ -1593,9 +1593,9 @@ such as a second number, says its kind: `chat: { sales_whatsapp: { kind: "whatsa
|
|
|
1593
1593
|
waSales } }`. Its chats are keyed by its name (`sales_whatsapp:private:<member UUID>`, and the
|
|
1594
1594
|
`provider` of its `agent_chat` records), and posts and reviewed replies there leave through its
|
|
1595
1595
|
connection. A member's account reaches them on every channel of its kind. A channel the workspace
|
|
1596
|
-
defines in its own code is `chat: {
|
|
1596
|
+
defines in its own code is `chat: { helpdesk: { kind: "custom" } }`, with no connection: its posts
|
|
1597
1597
|
and reviewed replies go to the app's agent, which sends them with the channel's code, and its
|
|
1598
|
-
people's accounts are its own, `channel:
|
|
1598
|
+
people's accounts are its own, `channel:helpdesk`, which `signUp.channels` may list.
|
|
1599
1599
|
|
|
1600
1600
|
`chat_list({ query?, chat?, after?, limit? })` returns eligible routing metadata and server-derived
|
|
1601
1601
|
attribution: each item's `provider` is the channel the chat is on, by name, and `kind` its kind. `query` filters titles by a case-insensitive literal substring before pagination.
|
|
@@ -1633,8 +1633,7 @@ Validation checks eligibility and exact text without reserving or sending.
|
|
|
1633
1633
|
0.6.3 application-owned
|
|
1634
1634
|
`_segmentstream` protocol; the model sees only `{ chat, text, reply_to? }`. Authenticated tools/list
|
|
1635
1635
|
advertises `segmentstream/chat-post: 1` only with a configured provider. Deploy the updated agent
|
|
1636
|
-
first, then the archive migration/backend, then enable ontology delivery.
|
|
1637
|
-
maintained in its own repository.
|
|
1636
|
+
first, then the archive migration/backend, then enable ontology delivery.
|
|
1638
1637
|
|
|
1639
1638
|
### Member identity inspection
|
|
1640
1639
|
|
package/dist/agent-chat.js
CHANGED
|
@@ -48,7 +48,8 @@ export const AgentChat = entity("agent_chat", {
|
|
|
48
48
|
optional: true,
|
|
49
49
|
managed: true,
|
|
50
50
|
label: "Last message",
|
|
51
|
-
description: "When
|
|
51
|
+
description: "When a person last wrote in the chat, as the agent saw it, to within 15 minutes: messages " +
|
|
52
|
+
"the agent, staff or the workspace send leave it as it is.",
|
|
52
53
|
}),
|
|
53
54
|
handoffAt: p.timestamp({
|
|
54
55
|
optional: true,
|
|
@@ -69,7 +70,7 @@ export const AgentChat = entity("agent_chat", {
|
|
|
69
70
|
purpose: p.text({
|
|
70
71
|
optional: true,
|
|
71
72
|
maxLength: 64,
|
|
72
|
-
description: "A short key that code and agents look the chat up by, such as
|
|
73
|
+
description: "A short key that code and agents look the chat up by, such as support.",
|
|
73
74
|
}),
|
|
74
75
|
whenToUse: p.text({
|
|
75
76
|
optional: true,
|
|
@@ -77,7 +78,7 @@ export const AgentChat = entity("agent_chat", {
|
|
|
77
78
|
display: "multiline",
|
|
78
79
|
label: "When to use",
|
|
79
80
|
description: "For agents: what the chat is for and when to write there, such as " +
|
|
80
|
-
'"
|
|
81
|
+
'"Order questions; the team answers on weekdays."',
|
|
81
82
|
}),
|
|
82
83
|
},
|
|
83
84
|
relationships: {
|
package/dist/sign-in.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export type ChannelProvider = (typeof CHANNEL_PROVIDERS)[number];
|
|
|
20
20
|
export declare const SIGN_UP_CHANNELS: readonly ["email", "telegram", "whatsapp", "web"];
|
|
21
21
|
/**
|
|
22
22
|
* The people of a channel the workspace defines in its own code, `channel:<name>`, such as
|
|
23
|
-
* `channel:
|
|
23
|
+
* `channel:helpdesk`: the accounts they write from there, which are that channel's alone.
|
|
24
24
|
*/
|
|
25
25
|
export type WorkspaceSignUpChannel = `channel:${string}`;
|
|
26
26
|
export type SignUpChannel = (typeof SIGN_UP_CHANNELS)[number] | WorkspaceSignUpChannel;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentstream/ontology",
|
|
3
|
-
"version": "0.137.
|
|
3
|
+
"version": "0.137.1",
|
|
4
4
|
"description": "Define a SegmentStream workspace app's ontology: entities, relationships, roles and actions, written with Effect.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "SegmentStream",
|