zeitlich 0.2.28 → 0.2.29
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/README.md +121 -13
- package/dist/{activities-3xj_fEJK.d.ts → activities-1xrWRrGJ.d.cts} +2 -3
- package/dist/{activities-BzYq6jf7.d.cts → activities-DOViDCTE.d.ts} +2 -3
- package/dist/adapters/thread/anthropic/index.d.cts +5 -6
- package/dist/adapters/thread/anthropic/index.d.ts +5 -6
- package/dist/adapters/thread/anthropic/workflow.d.cts +4 -5
- package/dist/adapters/thread/anthropic/workflow.d.ts +4 -5
- package/dist/adapters/thread/google-genai/index.d.cts +5 -6
- package/dist/adapters/thread/google-genai/index.d.ts +5 -6
- package/dist/adapters/thread/google-genai/workflow.d.cts +4 -5
- package/dist/adapters/thread/google-genai/workflow.d.ts +4 -5
- package/dist/adapters/thread/langchain/index.d.cts +5 -6
- package/dist/adapters/thread/langchain/index.d.ts +5 -6
- package/dist/adapters/thread/langchain/workflow.d.cts +4 -5
- package/dist/adapters/thread/langchain/workflow.d.ts +4 -5
- package/dist/index.cjs +499 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +66 -15
- package/dist/index.d.ts +66 -15
- package/dist/index.js +495 -10
- package/dist/index.js.map +1 -1
- package/dist/{proxy-7e7v8ccg.d.ts → proxy-78nc985d.d.ts} +1 -1
- package/dist/{proxy-CsB8r0RR.d.cts → proxy-Bm2UTiO_.d.cts} +1 -1
- package/dist/{thread-manager-D8C5QvLi.d.ts → thread-manager-07BaYu_z.d.ts} +1 -1
- package/dist/{thread-manager-DdVFl1IY.d.cts → thread-manager-BRE5KkHB.d.cts} +1 -1
- package/dist/{thread-manager-DFJ3sKKU.d.cts → thread-manager-CatBkarc.d.cts} +1 -1
- package/dist/{thread-manager-B5qA4v7V.d.ts → thread-manager-CxbWo7q_.d.ts} +1 -1
- package/dist/types-BkVoEyiH.d.ts +1211 -0
- package/dist/{types-BZ75HpYd.d.ts → types-DAv_SLN8.d.ts} +1 -1
- package/dist/{types-HbjqzyJH.d.cts → types-Dpz2gXLk.d.cts} +1 -1
- package/dist/types-seDYom4M.d.cts +1211 -0
- package/dist/workflow-B4T3la0p.d.cts +750 -0
- package/dist/workflow-DCmaXLZ_.d.ts +750 -0
- package/dist/workflow.cjs +171 -5
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.d.cts +5 -579
- package/dist/workflow.d.ts +5 -579
- package/dist/workflow.js +170 -7
- package/dist/workflow.js.map +1 -1
- package/package.json +3 -23
- package/src/index.ts +7 -0
- package/src/lib/observability/hooks.ts +117 -0
- package/src/lib/observability/index.ts +13 -0
- package/src/lib/observability/sinks.ts +88 -0
- package/src/lib/sandbox/manager.ts +3 -3
- package/src/lib/session/session-edge-cases.integration.test.ts +1 -0
- package/src/lib/session/session.integration.test.ts +1 -0
- package/src/lib/session/session.ts +63 -0
- package/src/lib/session/types.ts +21 -0
- package/src/lib/state/manager.integration.test.ts +1 -0
- package/src/lib/subagent/handler.ts +17 -0
- package/src/lib/subagent/subagent.integration.test.ts +1 -0
- package/src/lib/tool-router/router-edge-cases.integration.test.ts +2 -0
- package/src/lib/tool-router/router.integration.test.ts +2 -0
- package/src/lib/tool-router/router.ts +24 -2
- package/src/{adapters/sandbox/virtual → lib/virtual-fs}/filesystem.ts +4 -4
- package/src/lib/virtual-fs/index.ts +18 -0
- package/src/lib/virtual-fs/manager.ts +48 -0
- package/src/lib/virtual-fs/proxy.ts +45 -0
- package/src/{adapters/sandbox/virtual → lib/virtual-fs}/types.ts +43 -33
- package/src/{adapters/sandbox/virtual/virtual-sandbox.test.ts → lib/virtual-fs/virtual-fs.test.ts} +15 -130
- package/src/lib/virtual-fs/with-virtual-fs.ts +94 -0
- package/src/workflow.ts +25 -8
- package/tsup.config.ts +0 -2
- package/dist/adapters/sandbox/virtual/index.cjs +0 -487
- package/dist/adapters/sandbox/virtual/index.cjs.map +0 -1
- package/dist/adapters/sandbox/virtual/index.d.cts +0 -90
- package/dist/adapters/sandbox/virtual/index.d.ts +0 -90
- package/dist/adapters/sandbox/virtual/index.js +0 -479
- package/dist/adapters/sandbox/virtual/index.js.map +0 -1
- package/dist/adapters/sandbox/virtual/workflow.cjs +0 -33
- package/dist/adapters/sandbox/virtual/workflow.cjs.map +0 -1
- package/dist/adapters/sandbox/virtual/workflow.d.cts +0 -28
- package/dist/adapters/sandbox/virtual/workflow.d.ts +0 -28
- package/dist/adapters/sandbox/virtual/workflow.js +0 -31
- package/dist/adapters/sandbox/virtual/workflow.js.map +0 -1
- package/dist/queries-DVnukByF.d.cts +0 -44
- package/dist/queries-kjlvsUfz.d.ts +0 -44
- package/dist/types-BclYm5Ic.d.cts +0 -581
- package/dist/types-BclYm5Ic.d.ts +0 -581
- package/dist/types-BgsAwN3L.d.cts +0 -125
- package/dist/types-BtqbM1bO.d.ts +0 -490
- package/dist/types-BuCEZ4dF.d.cts +0 -490
- package/dist/types-yU5AINiP.d.ts +0 -125
- package/src/adapters/sandbox/virtual/index.ts +0 -92
- package/src/adapters/sandbox/virtual/provider.ts +0 -121
- package/src/adapters/sandbox/virtual/proxy.ts +0 -53
- package/src/adapters/sandbox/virtual/with-virtual-sandbox.ts +0 -97
- package/src/lib/.env +0 -1
- package/src/tools/bash/.env +0 -1
- /package/src/{adapters/sandbox/virtual → lib/virtual-fs}/mutations.ts +0 -0
- /package/src/{adapters/sandbox/virtual → lib/virtual-fs}/queries.ts +0 -0
- /package/src/{adapters/sandbox/virtual → lib/virtual-fs}/tree.ts +0 -0
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ A sandbox adapter provides filesystem access for tools like `Bash`, `Read`, `Wri
|
|
|
58
58
|
| Adapter | Import | Use case |
|
|
59
59
|
|---------|--------|----------|
|
|
60
60
|
| In-memory | `zeitlich/adapters/sandbox/inmemory` | Tests and lightweight agents |
|
|
61
|
-
| Virtual | `zeitlich/
|
|
61
|
+
| Virtual FS | `zeitlich` / `zeitlich/workflow` | Built-in virtual filesystem with custom resolvers |
|
|
62
62
|
| Daytona | `zeitlich/adapters/sandbox/daytona` | Remote Daytona workspaces |
|
|
63
63
|
| E2B | `zeitlich/adapters/sandbox/e2b` | E2B cloud sandboxes |
|
|
64
64
|
| Bedrock | `zeitlich/adapters/sandbox/bedrock` | AWS Bedrock AgentCore Code Interpreter |
|
|
@@ -774,22 +774,16 @@ This means `readFile("a/b.txt")` is treated as `/a/b.txt` across adapters.
|
|
|
774
774
|
|
|
775
775
|
Each `fs` instance also exposes `workspaceBase`, which is the base used for relative paths.
|
|
776
776
|
|
|
777
|
-
**Virtual
|
|
777
|
+
**Virtual filesystem example (path-only calls):**
|
|
778
778
|
|
|
779
779
|
```typescript
|
|
780
|
-
import {
|
|
780
|
+
import { VirtualFileSystem } from "zeitlich";
|
|
781
781
|
|
|
782
|
-
const
|
|
783
|
-
|
|
784
|
-
resolverContext: { projectId: "p1" },
|
|
785
|
-
workspaceBase: "/repo",
|
|
786
|
-
});
|
|
787
|
-
|
|
788
|
-
const fs = sandbox.fs;
|
|
789
|
-
console.log(fs.workspaceBase); // "/repo"
|
|
782
|
+
const virtualFs = new VirtualFileSystem(fileTree, resolver, { projectId: "p1" }, "/repo");
|
|
783
|
+
console.log(virtualFs.workspaceBase); // "/repo"
|
|
790
784
|
|
|
791
|
-
await
|
|
792
|
-
const content = await
|
|
785
|
+
await virtualFs.writeFile("src/index.ts", 'export const ok = true;\n');
|
|
786
|
+
const content = await virtualFs.readFile("src/index.ts"); // reads /repo/src/index.ts
|
|
793
787
|
```
|
|
794
788
|
|
|
795
789
|
**Daytona sandbox example (base `/home/daytona`):**
|
|
@@ -991,6 +985,120 @@ Framework-agnostic utilities for activities, worker setup, and Node.js code:
|
|
|
991
985
|
└─────────────────┘
|
|
992
986
|
```
|
|
993
987
|
|
|
988
|
+
## Observability
|
|
989
|
+
|
|
990
|
+
Zeitlich emits structured, replay-safe logs at key lifecycle points (session start/end, each turn, tool execution, subagent spawn/completion). These flow through Temporal's built-in workflow logger with zero configuration.
|
|
991
|
+
|
|
992
|
+
### Logging
|
|
993
|
+
|
|
994
|
+
All log messages are emitted via `@temporalio/workflow`'s `log` and automatically routed to whatever logger you configure on the Temporal Runtime. By default they go to `STDERR` via `console.error`.
|
|
995
|
+
|
|
996
|
+
**Custom logger (e.g. winston):**
|
|
997
|
+
|
|
998
|
+
```typescript
|
|
999
|
+
import { Runtime, makeTelemetryFilterString } from "@temporalio/worker";
|
|
1000
|
+
import winston from "winston";
|
|
1001
|
+
|
|
1002
|
+
const logger = winston.createLogger({
|
|
1003
|
+
level: "info",
|
|
1004
|
+
format: winston.format.json(),
|
|
1005
|
+
transports: [new winston.transports.File({ filename: "worker.log" })],
|
|
1006
|
+
});
|
|
1007
|
+
|
|
1008
|
+
Runtime.install({
|
|
1009
|
+
logger,
|
|
1010
|
+
telemetryOptions: {
|
|
1011
|
+
logging: {
|
|
1012
|
+
filter: makeTelemetryFilterString({ core: "INFO", other: "INFO" }),
|
|
1013
|
+
forward: {},
|
|
1014
|
+
},
|
|
1015
|
+
},
|
|
1016
|
+
});
|
|
1017
|
+
```
|
|
1018
|
+
|
|
1019
|
+
### Metrics via Sinks
|
|
1020
|
+
|
|
1021
|
+
For custom metrics (Prometheus, Datadog, OpenTelemetry, etc.), zeitlich provides `ZeitlichObservabilitySinks` — a typed Temporal Sinks interface that bridges agent events from the workflow sandbox to your Node.js metrics backend.
|
|
1022
|
+
|
|
1023
|
+
**1. Register sinks on the Worker:**
|
|
1024
|
+
|
|
1025
|
+
```typescript
|
|
1026
|
+
import { Worker, InjectedSinks } from "@temporalio/worker";
|
|
1027
|
+
import type { ZeitlichObservabilitySinks } from "zeitlich/workflow";
|
|
1028
|
+
|
|
1029
|
+
const sinks: InjectedSinks<ZeitlichObservabilitySinks> = {
|
|
1030
|
+
zeitlichMetrics: {
|
|
1031
|
+
sessionStarted: {
|
|
1032
|
+
fn(_workflowInfo, event) {
|
|
1033
|
+
sessionCounter.inc({ agent: event.agentName });
|
|
1034
|
+
},
|
|
1035
|
+
callDuringReplay: false,
|
|
1036
|
+
},
|
|
1037
|
+
sessionEnded: {
|
|
1038
|
+
fn(_workflowInfo, event) {
|
|
1039
|
+
sessionDuration.observe(event.durationMs);
|
|
1040
|
+
tokenCounter.inc({ type: "input" }, event.usage.inputTokens ?? 0);
|
|
1041
|
+
},
|
|
1042
|
+
callDuringReplay: false,
|
|
1043
|
+
},
|
|
1044
|
+
turnCompleted: {
|
|
1045
|
+
fn(_workflowInfo, event) {
|
|
1046
|
+
turnGauge.set({ agent: event.agentName }, event.turn);
|
|
1047
|
+
},
|
|
1048
|
+
callDuringReplay: false,
|
|
1049
|
+
},
|
|
1050
|
+
toolExecuted: {
|
|
1051
|
+
fn(_workflowInfo, event) {
|
|
1052
|
+
toolDuration.observe({ tool: event.toolName }, event.durationMs);
|
|
1053
|
+
if (!event.success) toolErrors.inc({ tool: event.toolName });
|
|
1054
|
+
},
|
|
1055
|
+
callDuringReplay: false,
|
|
1056
|
+
},
|
|
1057
|
+
},
|
|
1058
|
+
};
|
|
1059
|
+
|
|
1060
|
+
const worker = await Worker.create({ sinks, /* ... */ });
|
|
1061
|
+
```
|
|
1062
|
+
|
|
1063
|
+
**2. Wire hooks in your workflow:**
|
|
1064
|
+
|
|
1065
|
+
```typescript
|
|
1066
|
+
import { createSession, createObservabilityHooks } from "zeitlich/workflow";
|
|
1067
|
+
|
|
1068
|
+
const session = await createSession({
|
|
1069
|
+
agentName: "myAgent",
|
|
1070
|
+
hooks: createObservabilityHooks("myAgent"),
|
|
1071
|
+
// ...
|
|
1072
|
+
});
|
|
1073
|
+
```
|
|
1074
|
+
|
|
1075
|
+
Use `composeHooks()` to combine observability hooks with your own:
|
|
1076
|
+
|
|
1077
|
+
```typescript
|
|
1078
|
+
import { createObservabilityHooks, composeHooks } from "zeitlich/workflow";
|
|
1079
|
+
|
|
1080
|
+
const obs = createObservabilityHooks("myAgent");
|
|
1081
|
+
|
|
1082
|
+
const session = await createSession({
|
|
1083
|
+
hooks: {
|
|
1084
|
+
...obs,
|
|
1085
|
+
onSessionEnd: composeHooks(obs.onSessionEnd, (ctx) => {
|
|
1086
|
+
// your custom session-end logic
|
|
1087
|
+
}),
|
|
1088
|
+
},
|
|
1089
|
+
});
|
|
1090
|
+
```
|
|
1091
|
+
|
|
1092
|
+
### Tracing with OpenTelemetry
|
|
1093
|
+
|
|
1094
|
+
For distributed tracing across client, workflow, and activities, use Temporal's OpenTelemetry interceptor package:
|
|
1095
|
+
|
|
1096
|
+
```bash
|
|
1097
|
+
npm install @temporalio/interceptors-opentelemetry @opentelemetry/sdk-node
|
|
1098
|
+
```
|
|
1099
|
+
|
|
1100
|
+
See [Temporal's tracing docs](https://docs.temporal.io/develop/typescript/observability#set-up-tracing) and the [`interceptors-opentelemetry` sample](https://github.com/temporalio/samples-typescript/tree/main/interceptors-opentelemetry) for setup.
|
|
1101
|
+
|
|
994
1102
|
## Requirements
|
|
995
1103
|
|
|
996
1104
|
- Node.js >= 18
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import { Part, Content, GoogleGenAI } from '@google/genai';
|
|
3
|
-
import { R as RouterContext,
|
|
4
|
-
import {
|
|
5
|
-
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-BZ75HpYd.js';
|
|
3
|
+
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler } from './types-seDYom4M.cjs';
|
|
4
|
+
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-Dpz2gXLk.cjs';
|
|
6
5
|
|
|
7
6
|
/** SDK-native content type for Google GenAI human messages */
|
|
8
7
|
type GoogleGenAIContent = string | Part[];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import { Part, Content, GoogleGenAI } from '@google/genai';
|
|
3
|
-
import { R as RouterContext,
|
|
4
|
-
import {
|
|
5
|
-
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-HbjqzyJH.cjs';
|
|
3
|
+
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler } from './types-BkVoEyiH.js';
|
|
4
|
+
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-DAv_SLN8.js';
|
|
6
5
|
|
|
7
6
|
/** SDK-native content type for Google GenAI human messages */
|
|
8
7
|
type GoogleGenAIContent = string | Part[];
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import Anthropic from '@anthropic-ai/sdk';
|
|
3
|
-
import { R as RouterContext,
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-seDYom4M.cjs';
|
|
4
|
+
import { A as AnthropicContent, a as AnthropicThreadManagerHooks } from '../../../thread-manager-CatBkarc.cjs';
|
|
5
|
+
export { b as AnthropicInvocationPayload, c as AnthropicThreadManager, d as AnthropicThreadManagerConfig, S as StoredMessage, e as createAnthropicThreadManager } from '../../../thread-manager-CatBkarc.cjs';
|
|
6
|
+
import '@temporalio/common';
|
|
7
7
|
import '@temporalio/workflow';
|
|
8
8
|
import '@temporalio/common/lib/interfaces';
|
|
9
9
|
import 'zod';
|
|
10
|
-
import '@temporalio/common';
|
|
11
10
|
import '../../../types-ChAMwU3q.cjs';
|
|
12
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-Dpz2gXLk.cjs';
|
|
13
12
|
|
|
14
13
|
declare const ADAPTER_PREFIX: "anthropic";
|
|
15
14
|
type AnthropicThreadOps<TScope extends string = ""> = PrefixedThreadOps<ScopedPrefix<TScope, typeof ADAPTER_PREFIX>, AnthropicContent>;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import Anthropic from '@anthropic-ai/sdk';
|
|
3
|
-
import { R as RouterContext,
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-BkVoEyiH.js';
|
|
4
|
+
import { A as AnthropicContent, a as AnthropicThreadManagerHooks } from '../../../thread-manager-07BaYu_z.js';
|
|
5
|
+
export { b as AnthropicInvocationPayload, c as AnthropicThreadManager, d as AnthropicThreadManagerConfig, S as StoredMessage, e as createAnthropicThreadManager } from '../../../thread-manager-07BaYu_z.js';
|
|
6
|
+
import '@temporalio/common';
|
|
7
7
|
import '@temporalio/workflow';
|
|
8
8
|
import '@temporalio/common/lib/interfaces';
|
|
9
9
|
import 'zod';
|
|
10
|
-
import '@temporalio/common';
|
|
11
10
|
import '../../../types-ChAMwU3q.js';
|
|
12
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-DAv_SLN8.js';
|
|
13
12
|
|
|
14
13
|
declare const ADAPTER_PREFIX: "anthropic";
|
|
15
14
|
type AnthropicThreadOps<TScope extends string = ""> = PrefixedThreadOps<ScopedPrefix<TScope, typeof ADAPTER_PREFIX>, AnthropicContent>;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { ActivityInterfaceFor } from '@temporalio/workflow';
|
|
2
|
-
import { T as ThreadOps } from '../../../types-
|
|
3
|
-
import { A as AnthropicContent } from '../../../thread-manager-
|
|
4
|
-
import { c as createThreadOpsProxy } from '../../../proxy-
|
|
2
|
+
import { T as ThreadOps } from '../../../types-seDYom4M.cjs';
|
|
3
|
+
import { A as AnthropicContent } from '../../../thread-manager-CatBkarc.cjs';
|
|
4
|
+
import { c as createThreadOpsProxy } from '../../../proxy-Bm2UTiO_.cjs';
|
|
5
5
|
import '@temporalio/common';
|
|
6
|
-
import '../../../types-BclYm5Ic.cjs';
|
|
7
6
|
import '@temporalio/common/lib/interfaces';
|
|
8
7
|
import 'zod';
|
|
9
8
|
import '../../../types-ChAMwU3q.cjs';
|
|
10
9
|
import 'ioredis';
|
|
11
10
|
import '@anthropic-ai/sdk';
|
|
12
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-Dpz2gXLk.cjs';
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Workflow-safe proxy for Anthropic thread operations.
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { ActivityInterfaceFor } from '@temporalio/workflow';
|
|
2
|
-
import { T as ThreadOps } from '../../../types-
|
|
3
|
-
import { A as AnthropicContent } from '../../../thread-manager-
|
|
4
|
-
import { c as createThreadOpsProxy } from '../../../proxy-
|
|
2
|
+
import { T as ThreadOps } from '../../../types-BkVoEyiH.js';
|
|
3
|
+
import { A as AnthropicContent } from '../../../thread-manager-07BaYu_z.js';
|
|
4
|
+
import { c as createThreadOpsProxy } from '../../../proxy-78nc985d.js';
|
|
5
5
|
import '@temporalio/common';
|
|
6
|
-
import '../../../types-BclYm5Ic.js';
|
|
7
6
|
import '@temporalio/common/lib/interfaces';
|
|
8
7
|
import 'zod';
|
|
9
8
|
import '../../../types-ChAMwU3q.js';
|
|
10
9
|
import 'ioredis';
|
|
11
10
|
import '@anthropic-ai/sdk';
|
|
12
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-DAv_SLN8.js';
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Workflow-safe proxy for Anthropic thread operations.
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { G as GoogleGenAIThreadManagerHooks } from '../../../activities-
|
|
2
|
-
export { a as GoogleGenAIAdapter, b as GoogleGenAIAdapterConfig, c as GoogleGenAIContent, d as GoogleGenAIInvocationPayload, e as GoogleGenAIThreadManager, f as GoogleGenAIThreadManagerConfig, g as GoogleGenAIThreadOps, h as GoogleGenAIToolResponse, S as StoredContent, i as createGoogleGenAIAdapter, j as createGoogleGenAIThreadManager } from '../../../activities-
|
|
1
|
+
import { G as GoogleGenAIThreadManagerHooks } from '../../../activities-1xrWRrGJ.cjs';
|
|
2
|
+
export { a as GoogleGenAIAdapter, b as GoogleGenAIAdapterConfig, c as GoogleGenAIContent, d as GoogleGenAIInvocationPayload, e as GoogleGenAIThreadManager, f as GoogleGenAIThreadManagerConfig, g as GoogleGenAIThreadOps, h as GoogleGenAIToolResponse, S as StoredContent, i as createGoogleGenAIAdapter, j as createGoogleGenAIThreadManager } from '../../../activities-1xrWRrGJ.cjs';
|
|
3
3
|
import Redis from 'ioredis';
|
|
4
4
|
import { GoogleGenAI, Content } from '@google/genai';
|
|
5
|
-
import { M as ModelInvokerConfig, A as AgentResponse } from '../../../types-
|
|
6
|
-
import '../../../types-
|
|
5
|
+
import { M as ModelInvokerConfig, A as AgentResponse } from '../../../types-seDYom4M.cjs';
|
|
6
|
+
import '../../../types-Dpz2gXLk.cjs';
|
|
7
|
+
import '@temporalio/common';
|
|
7
8
|
import '@temporalio/workflow';
|
|
8
9
|
import '@temporalio/common/lib/interfaces';
|
|
9
10
|
import 'zod';
|
|
10
|
-
import '../../../types-HbjqzyJH.cjs';
|
|
11
|
-
import '@temporalio/common';
|
|
12
11
|
import '../../../types-ChAMwU3q.cjs';
|
|
13
12
|
|
|
14
13
|
interface GoogleGenAIModelInvokerConfig {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { G as GoogleGenAIThreadManagerHooks } from '../../../activities-
|
|
2
|
-
export { a as GoogleGenAIAdapter, b as GoogleGenAIAdapterConfig, c as GoogleGenAIContent, d as GoogleGenAIInvocationPayload, e as GoogleGenAIThreadManager, f as GoogleGenAIThreadManagerConfig, g as GoogleGenAIThreadOps, h as GoogleGenAIToolResponse, S as StoredContent, i as createGoogleGenAIAdapter, j as createGoogleGenAIThreadManager } from '../../../activities-
|
|
1
|
+
import { G as GoogleGenAIThreadManagerHooks } from '../../../activities-DOViDCTE.js';
|
|
2
|
+
export { a as GoogleGenAIAdapter, b as GoogleGenAIAdapterConfig, c as GoogleGenAIContent, d as GoogleGenAIInvocationPayload, e as GoogleGenAIThreadManager, f as GoogleGenAIThreadManagerConfig, g as GoogleGenAIThreadOps, h as GoogleGenAIToolResponse, S as StoredContent, i as createGoogleGenAIAdapter, j as createGoogleGenAIThreadManager } from '../../../activities-DOViDCTE.js';
|
|
3
3
|
import Redis from 'ioredis';
|
|
4
4
|
import { GoogleGenAI, Content } from '@google/genai';
|
|
5
|
-
import { M as ModelInvokerConfig, A as AgentResponse } from '../../../types-
|
|
6
|
-
import '../../../types-
|
|
5
|
+
import { M as ModelInvokerConfig, A as AgentResponse } from '../../../types-BkVoEyiH.js';
|
|
6
|
+
import '../../../types-DAv_SLN8.js';
|
|
7
|
+
import '@temporalio/common';
|
|
7
8
|
import '@temporalio/workflow';
|
|
8
9
|
import '@temporalio/common/lib/interfaces';
|
|
9
10
|
import 'zod';
|
|
10
|
-
import '../../../types-BZ75HpYd.js';
|
|
11
|
-
import '@temporalio/common';
|
|
12
11
|
import '../../../types-ChAMwU3q.js';
|
|
13
12
|
|
|
14
13
|
interface GoogleGenAIModelInvokerConfig {
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { ActivityInterfaceFor } from '@temporalio/workflow';
|
|
2
|
-
import { T as ThreadOps } from '../../../types-
|
|
3
|
-
import { c as GoogleGenAIContent } from '../../../activities-
|
|
4
|
-
import { c as createThreadOpsProxy } from '../../../proxy-
|
|
2
|
+
import { T as ThreadOps } from '../../../types-seDYom4M.cjs';
|
|
3
|
+
import { c as GoogleGenAIContent } from '../../../activities-1xrWRrGJ.cjs';
|
|
4
|
+
import { c as createThreadOpsProxy } from '../../../proxy-Bm2UTiO_.cjs';
|
|
5
5
|
import '@temporalio/common';
|
|
6
|
-
import '../../../types-BclYm5Ic.cjs';
|
|
7
6
|
import '@temporalio/common/lib/interfaces';
|
|
8
7
|
import 'zod';
|
|
9
8
|
import '../../../types-ChAMwU3q.cjs';
|
|
10
9
|
import 'ioredis';
|
|
11
10
|
import '@google/genai';
|
|
12
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-Dpz2gXLk.cjs';
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Workflow-safe proxy for Google GenAI thread operations.
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { ActivityInterfaceFor } from '@temporalio/workflow';
|
|
2
|
-
import { T as ThreadOps } from '../../../types-
|
|
3
|
-
import { c as GoogleGenAIContent } from '../../../activities-
|
|
4
|
-
import { c as createThreadOpsProxy } from '../../../proxy-
|
|
2
|
+
import { T as ThreadOps } from '../../../types-BkVoEyiH.js';
|
|
3
|
+
import { c as GoogleGenAIContent } from '../../../activities-DOViDCTE.js';
|
|
4
|
+
import { c as createThreadOpsProxy } from '../../../proxy-78nc985d.js';
|
|
5
5
|
import '@temporalio/common';
|
|
6
|
-
import '../../../types-BclYm5Ic.js';
|
|
7
6
|
import '@temporalio/common/lib/interfaces';
|
|
8
7
|
import 'zod';
|
|
9
8
|
import '../../../types-ChAMwU3q.js';
|
|
10
9
|
import 'ioredis';
|
|
11
10
|
import '@google/genai';
|
|
12
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-DAv_SLN8.js';
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Workflow-safe proxy for Google GenAI thread operations.
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import { StoredMessage, MessageContent, BaseMessage } from '@langchain/core/messages';
|
|
3
|
-
import { R as RouterContext,
|
|
4
|
-
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-BuCEZ4dF.cjs';
|
|
3
|
+
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-seDYom4M.cjs';
|
|
5
4
|
import { BaseChatModel } from '@langchain/core/language_models/chat_models';
|
|
6
|
-
import { L as LangChainContent, a as LangChainThreadManagerHooks } from '../../../thread-manager-
|
|
7
|
-
export { b as LangChainInvocationPayload, c as LangChainThreadManager, d as LangChainThreadManagerConfig, e as createLangChainThreadManager } from '../../../thread-manager-
|
|
5
|
+
import { L as LangChainContent, a as LangChainThreadManagerHooks } from '../../../thread-manager-BRE5KkHB.cjs';
|
|
6
|
+
export { b as LangChainInvocationPayload, c as LangChainThreadManager, d as LangChainThreadManagerConfig, e as createLangChainThreadManager } from '../../../thread-manager-BRE5KkHB.cjs';
|
|
7
|
+
import '@temporalio/common';
|
|
8
8
|
import '@temporalio/workflow';
|
|
9
9
|
import '@temporalio/common/lib/interfaces';
|
|
10
10
|
import 'zod';
|
|
11
|
-
import '@temporalio/common';
|
|
12
11
|
import '../../../types-ChAMwU3q.cjs';
|
|
13
|
-
import '../../../types-
|
|
12
|
+
import '../../../types-Dpz2gXLk.cjs';
|
|
14
13
|
|
|
15
14
|
declare const ADAPTER_PREFIX: "langChain";
|
|
16
15
|
type LangChainThreadOps<TScope extends string = ""> = PrefixedThreadOps<ScopedPrefix<TScope, typeof ADAPTER_PREFIX>, LangChainContent>;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import { StoredMessage, MessageContent, BaseMessage } from '@langchain/core/messages';
|
|
3
|
-
import { R as RouterContext,
|
|
4
|
-
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-BtqbM1bO.js';
|
|
3
|
+
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-BkVoEyiH.js';
|
|
5
4
|
import { BaseChatModel } from '@langchain/core/language_models/chat_models';
|
|
6
|
-
import { L as LangChainContent, a as LangChainThreadManagerHooks } from '../../../thread-manager-
|
|
7
|
-
export { b as LangChainInvocationPayload, c as LangChainThreadManager, d as LangChainThreadManagerConfig, e as createLangChainThreadManager } from '../../../thread-manager-
|
|
5
|
+
import { L as LangChainContent, a as LangChainThreadManagerHooks } from '../../../thread-manager-CxbWo7q_.js';
|
|
6
|
+
export { b as LangChainInvocationPayload, c as LangChainThreadManager, d as LangChainThreadManagerConfig, e as createLangChainThreadManager } from '../../../thread-manager-CxbWo7q_.js';
|
|
7
|
+
import '@temporalio/common';
|
|
8
8
|
import '@temporalio/workflow';
|
|
9
9
|
import '@temporalio/common/lib/interfaces';
|
|
10
10
|
import 'zod';
|
|
11
|
-
import '@temporalio/common';
|
|
12
11
|
import '../../../types-ChAMwU3q.js';
|
|
13
|
-
import '../../../types-
|
|
12
|
+
import '../../../types-DAv_SLN8.js';
|
|
14
13
|
|
|
15
14
|
declare const ADAPTER_PREFIX: "langChain";
|
|
16
15
|
type LangChainThreadOps<TScope extends string = ""> = PrefixedThreadOps<ScopedPrefix<TScope, typeof ADAPTER_PREFIX>, LangChainContent>;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { ActivityInterfaceFor } from '@temporalio/workflow';
|
|
2
|
-
import { T as ThreadOps } from '../../../types-
|
|
3
|
-
import { L as LangChainContent } from '../../../thread-manager-
|
|
4
|
-
import { c as createThreadOpsProxy } from '../../../proxy-
|
|
2
|
+
import { T as ThreadOps } from '../../../types-seDYom4M.cjs';
|
|
3
|
+
import { L as LangChainContent } from '../../../thread-manager-BRE5KkHB.cjs';
|
|
4
|
+
import { c as createThreadOpsProxy } from '../../../proxy-Bm2UTiO_.cjs';
|
|
5
5
|
import '@temporalio/common';
|
|
6
|
-
import '../../../types-BclYm5Ic.cjs';
|
|
7
6
|
import '@temporalio/common/lib/interfaces';
|
|
8
7
|
import 'zod';
|
|
9
8
|
import '../../../types-ChAMwU3q.cjs';
|
|
10
9
|
import 'ioredis';
|
|
11
10
|
import '@langchain/core/messages';
|
|
12
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-Dpz2gXLk.cjs';
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Workflow-safe proxy for LangChain thread operations.
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { ActivityInterfaceFor } from '@temporalio/workflow';
|
|
2
|
-
import { T as ThreadOps } from '../../../types-
|
|
3
|
-
import { L as LangChainContent } from '../../../thread-manager-
|
|
4
|
-
import { c as createThreadOpsProxy } from '../../../proxy-
|
|
2
|
+
import { T as ThreadOps } from '../../../types-BkVoEyiH.js';
|
|
3
|
+
import { L as LangChainContent } from '../../../thread-manager-CxbWo7q_.js';
|
|
4
|
+
import { c as createThreadOpsProxy } from '../../../proxy-78nc985d.js';
|
|
5
5
|
import '@temporalio/common';
|
|
6
|
-
import '../../../types-BclYm5Ic.js';
|
|
7
6
|
import '@temporalio/common/lib/interfaces';
|
|
8
7
|
import 'zod';
|
|
9
8
|
import '../../../types-ChAMwU3q.js';
|
|
10
9
|
import 'ioredis';
|
|
11
10
|
import '@langchain/core/messages';
|
|
12
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-DAv_SLN8.js';
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Workflow-safe proxy for LangChain thread operations.
|