@rivus/agent 0.10.1 → 0.10.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/agent-loop.d.ts
CHANGED
|
@@ -298,6 +298,7 @@ interface AutomationAgentInvocationOrigin {
|
|
|
298
298
|
}
|
|
299
299
|
interface BackgroundSessionAgentInvocationOrigin {
|
|
300
300
|
readonly allowedActorOpenIds: ReadonlyArray<string>;
|
|
301
|
+
readonly conversationId?: string;
|
|
301
302
|
readonly endpointId: string;
|
|
302
303
|
readonly kind: "background-session";
|
|
303
304
|
readonly memory?: AgentMemoryInvocationIdentity;
|
package/dist/pi.js
CHANGED
|
@@ -89,7 +89,7 @@ function createPiToolProxyDefinitions(options) {
|
|
|
89
89
|
authority: createInvocationAuthority({
|
|
90
90
|
agentId: options.agentId,
|
|
91
91
|
allowedActorOpenIds: invocation.allowedActorOpenIds,
|
|
92
|
-
...invocation.memory?.conversationId ? { conversationId: invocation.memory.conversationId } : {},
|
|
92
|
+
...invocation.kind === "background-session" ? invocation.conversationId ? { conversationId: invocation.conversationId } : {} : invocation.memory?.conversationId ? { conversationId: invocation.memory.conversationId } : {},
|
|
93
93
|
endpointId: invocation.endpointId,
|
|
94
94
|
instanceId: options.instanceId,
|
|
95
95
|
...invocation.memory ? { memory: {
|
|
@@ -189,6 +189,7 @@ export async function createRivusDeploymentAdapters(context: RivusDeploymentBoot
|
|
|
189
189
|
let runId: string | undefined;
|
|
190
190
|
const invocation = {
|
|
191
191
|
allowedActorOpenIds: session.origin.allowedActorOpenIds,
|
|
192
|
+
...(session.origin.conversationId ? { conversationId: session.origin.conversationId } : {}),
|
|
192
193
|
endpointId: session.origin.endpointId,
|
|
193
194
|
kind: "background-session" as const,
|
|
194
195
|
...(session.origin.memory ? { memory: session.origin.memory } : {}),
|