@tangle-network/agent-interface 0.46.0 → 0.46.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AgentExecutionOutcome, PlanContinuation } from "./plan.js";
|
|
2
2
|
import type { InputPart } from "./parts.js";
|
|
3
3
|
import type { ProviderConfig } from "./provider-config.js";
|
|
4
|
+
import type { InteractionExecutionBinding } from "./interaction-envelope.js";
|
|
4
5
|
export type ToolInvocation = {
|
|
5
6
|
toolName: string;
|
|
6
7
|
input: unknown;
|
|
@@ -28,6 +29,8 @@ export type AgentExecutionInput = {
|
|
|
28
29
|
userId?: string;
|
|
29
30
|
traceId?: string;
|
|
30
31
|
sessionId?: string;
|
|
32
|
+
/** Exact run coordinates required when this turn can emit interactions. */
|
|
33
|
+
interactionBinding?: InteractionExecutionBinding;
|
|
31
34
|
workspaceRoot?: string;
|
|
32
35
|
abortSignal?: AbortSignal;
|
|
33
36
|
headers?: Record<string, string>;
|
|
@@ -35,6 +35,15 @@ export declare const InteractionRequestBindingSchema: z.ZodObject<{
|
|
|
35
35
|
interactionId: z.ZodString;
|
|
36
36
|
}, z.core.$strict>;
|
|
37
37
|
export type InteractionRequestBinding = z.infer<typeof InteractionRequestBindingSchema>;
|
|
38
|
+
/** Exact execution coordinates shared by every interaction from one provider turn. */
|
|
39
|
+
export declare const InteractionExecutionBindingSchema: z.ZodObject<{
|
|
40
|
+
provider: z.ZodString;
|
|
41
|
+
executionId: z.ZodString;
|
|
42
|
+
runId: z.ZodString;
|
|
43
|
+
environmentId: z.ZodString;
|
|
44
|
+
sessionId: z.ZodString;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
export type InteractionExecutionBinding = z.infer<typeof InteractionExecutionBindingSchema>;
|
|
38
47
|
/** Binding carried by a response command and acknowledgement. */
|
|
39
48
|
export declare const InteractionBindingSchema: z.ZodObject<{
|
|
40
49
|
requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
@@ -32,6 +32,8 @@ export const InteractionRequestBindingSchema = z.strictObject({
|
|
|
32
32
|
executionId: boundedIdentifierSchema,
|
|
33
33
|
interactionId: boundedIdentifierSchema,
|
|
34
34
|
});
|
|
35
|
+
/** Exact execution coordinates shared by every interaction from one provider turn. */
|
|
36
|
+
export const InteractionExecutionBindingSchema = InteractionRequestBindingSchema.omit({ interactionId: true });
|
|
35
37
|
/** Binding carried by a response command and acknowledgement. */
|
|
36
38
|
export const InteractionBindingSchema = z.strictObject({
|
|
37
39
|
...InteractionRequestBindingSchema.shape,
|