@llmnative/agentico 0.15.0 → 0.15.2
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/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -16
- package/dist/index.mjs.map +1 -1
- package/dist/types/presentation/useAgent.d.ts +3 -1
- package/package.json +1 -1
|
@@ -159,6 +159,8 @@ export interface UseAgentResult<TParams, TResult> extends AgentControlState {
|
|
|
159
159
|
rewind: (entryId: string, text?: string) => Promise<TResult | null>;
|
|
160
160
|
/** CR-016: whether this agent offers going back (always on the AI catalog; with an executor, when it says so). */
|
|
161
161
|
canRewind: boolean;
|
|
162
|
+
/** CR-016: whether a message of the person can be gone back to (it knows, or the history shows, where it was). */
|
|
163
|
+
rewindable: (entryId: string) => boolean;
|
|
162
164
|
/** Answers the questions part `partId` of the entry `entryId` (CR-004). If the turn that asked
|
|
163
165
|
* is still waiting, its `onQuestions` promise resolves; otherwise a new turn of the executor
|
|
164
166
|
* carries them (`AgentExecutorTurn.answers`, with empty `text`). Either way the part keeps the
|
|
@@ -173,7 +175,7 @@ export interface UseAgentResult<TParams, TResult> extends AgentControlState {
|
|
|
173
175
|
/** Solo la fetta di UseAgentResult che serve a un consumer del pannello globale (Agentico.tsx)
|
|
174
176
|
* per continuare una conversazione già avviata da run() — TParams non compare in nessuno dei
|
|
175
177
|
* membri qui sotto, quindi `never` è innocuo. */
|
|
176
|
-
export type AgentConversation<TResult> = Pick<UseAgentResult<never, TResult>, 'canContinue' | 'remote' | 'remoteModels' | 'alongside' | 'catalogGroup' | 'running' | 'error' | 'activity' | 'sendMessage' | 'stop' | 'runFallback' | 'snapshot' | 'answerQuestions' | 'cardAction' | 'offersFallback' | 'rewind' | 'canRewind'>;
|
|
178
|
+
export type AgentConversation<TResult> = Pick<UseAgentResult<never, TResult>, 'canContinue' | 'remote' | 'remoteModels' | 'alongside' | 'catalogGroup' | 'running' | 'error' | 'activity' | 'sendMessage' | 'stop' | 'runFallback' | 'snapshot' | 'answerQuestions' | 'cardAction' | 'offersFallback' | 'rewind' | 'canRewind' | 'rewindable'>;
|
|
177
179
|
/** The entries of a reopened chat: what was still running stopped, what was streaming done. */
|
|
178
180
|
export declare function settleActivity(activity: AgentActivityEntry[]): AgentActivityEntry[];
|
|
179
181
|
export declare function useAgent<TParams, TContext, TResult>(definition: AgentDefinition<TParams, TContext, TResult>, options?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmnative/agentico",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
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",
|