@llmnative/agentico 0.10.1 → 0.10.3

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.
@@ -12,6 +12,8 @@ export interface EntityChatActivityEntry {
12
12
  detail?: string;
13
13
  toolNames?: string[];
14
14
  attachmentNames?: string[];
15
+ /** A message the Retry button sent for the person, not one they wrote (never a title). */
16
+ retry?: boolean;
15
17
  /** The message in parts (CR-004): saved and reloaded as they are. Absent in chats saved before
16
18
  * 0.3.0, which show `detail` as before. */
17
19
  parts?: AgentMessagePart[];
@@ -62,6 +64,8 @@ export declare function saveEntityChat(snapshot: Omit<EntityChatSnapshot, 'saved
62
64
  export declare const chatTitle: (snapshot: Pick<EntityChatSnapshot, 'title' | 'name' | 'entityId' | 'activity'>) => string;
63
65
  /** CR-011: whether the person wrote in a chat (an opening message counts). */
64
66
  export declare const chatHasPersonMessage: (snapshot: Pick<EntityChatSnapshot, 'activity'>) => boolean;
67
+ /** Whether a message of a chat is one the Retry button sent (the model reading a chat leaves it out). */
68
+ export declare const isRetryMessage: (entry: EntityChatActivityEntry) => boolean;
65
69
  /**
66
70
  * CR-011: gives a chat its own title. The person's (`by: 'person'`) replaces any, and an empty one gives
67
71
  * it back the automatic title; the model's never replaces the person's. False when the chat is gone or
@@ -37,6 +37,8 @@ export interface AgentActivityEntry {
37
37
  * doveva fidarsi a memoria (bug osservato: un allegato sembrava "sparito" perché non
38
38
  * c'era traccia visiva che fosse mai arrivato). */
39
39
  attachmentNames?: string[];
40
+ /** A message the Retry button sent for the person (never the title of the chat). */
41
+ retry?: boolean;
40
42
  /** On the turns of a remote agent (CR-004): the message in parts (text, reasoning, steps,
41
43
  * questions), in the order they arrived. `detail` still holds its text. Absent on the turns of
42
44
  * the AI provider and on chats saved before 0.3.0, shown from `detail` as before. */
@@ -108,6 +110,7 @@ export interface UseAgentResult<TParams, TResult> extends AgentControlState {
108
110
  sendMessage: (text: string, opts?: {
109
111
  attachments?: File[];
110
112
  model?: string;
113
+ retry?: boolean;
111
114
  }) => Promise<TResult | null>;
112
115
  /** Interrompe il turno in corso (run() o sendMessage()) — annulla la chiamata AI
113
116
  * attualmente in volo. Nessun effetto se non c'è nulla in corso. Le tool call già in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmnative/agentico",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "description": "Agentic chat orchestrator for @llmnative/react apps: a persistent panel that talks with the user and hands the work to host-registered subagents.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",