@theokit/sdk 4.6.0 → 4.7.0
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/CHANGELOG.md +19 -0
- package/dist/a2a/index.cjs +2 -1
- package/dist/a2a/index.cjs.map +1 -1
- package/dist/a2a/index.js +2 -1
- package/dist/a2a/index.js.map +1 -1
- package/dist/cron.cjs +49 -12
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.js +49 -12
- package/dist/cron.js.map +1 -1
- package/dist/eval.cjs +49 -12
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +49 -12
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +49 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +49 -12
- package/dist/index.js.map +1 -1
- package/dist/internal/llm/types.d.ts +14 -1
- package/dist/internal/runtime/registry/agent-registry-store.d.ts +4 -3
- package/package.json +13 -12
|
@@ -27,7 +27,20 @@ export interface LlmToolResultPart {
|
|
|
27
27
|
content: string | import("../../types/content-blocks.js").ToolResultContentBlock[];
|
|
28
28
|
isError?: boolean;
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* M35 (multimodal) — an image part in a user message. `source` mirrors the `ImageBlock` shape
|
|
32
|
+
* (`{ type: "base64", media_type, data }`) so provider adapters serialize it to their own image format
|
|
33
|
+
* (OpenAI/OpenRouter `image_url` with a data URL; Anthropic native base64 source).
|
|
34
|
+
*/
|
|
35
|
+
export interface LlmImagePart {
|
|
36
|
+
type: "image";
|
|
37
|
+
source: {
|
|
38
|
+
type: "base64";
|
|
39
|
+
media_type: string;
|
|
40
|
+
data: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export type LlmContentPart = LlmTextPart | LlmToolCallPart | LlmToolResultPart | LlmImagePart;
|
|
31
44
|
export interface LlmMessage {
|
|
32
45
|
role: "system" | "user" | "assistant";
|
|
33
46
|
content: LlmContentPart[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ModelSelection } from "../../../types/agent-prims.js";
|
|
1
2
|
export interface SerializedAgentOptions {
|
|
2
3
|
name?: string;
|
|
3
4
|
model?: {
|
|
@@ -54,8 +55,8 @@ export interface SerializedAgentOptions {
|
|
|
54
55
|
agents?: Record<string, {
|
|
55
56
|
description: string;
|
|
56
57
|
prompt: string;
|
|
57
|
-
model?:
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
model?: ModelSelection | "inherit";
|
|
59
|
+
tools?: string[];
|
|
60
|
+
sandbox?: boolean;
|
|
60
61
|
}>;
|
|
61
62
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theokit/sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"description": "TypeScript SDK for the Theo agent harness — same surface, local or cloud.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/usetheodev/theokit-sdk#readme",
|
|
@@ -309,6 +309,17 @@
|
|
|
309
309
|
"**/agent.js",
|
|
310
310
|
"**/agent.cjs"
|
|
311
311
|
],
|
|
312
|
+
"scripts": {
|
|
313
|
+
"build": "tsup && cp src/internal/providers/provider-catalog.json dist/provider-catalog.json && node scripts/copy-docs.mjs",
|
|
314
|
+
"test": "vitest run --no-file-parallelism",
|
|
315
|
+
"test:watch": "vitest",
|
|
316
|
+
"eval": "vitest run --no-file-parallelism tests/eval/suites",
|
|
317
|
+
"test:contract": "vitest run --no-file-parallelism tests/theokit-consumer-contract.test.ts",
|
|
318
|
+
"prepublishOnly": "pnpm build && pnpm test:contract",
|
|
319
|
+
"typecheck": "tsc --noEmit",
|
|
320
|
+
"clean": "rm -rf dist",
|
|
321
|
+
"docs:json": "typedoc --options typedoc.json"
|
|
322
|
+
},
|
|
312
323
|
"peerDependencies": {
|
|
313
324
|
"@lancedb/lancedb": "^0.30.0",
|
|
314
325
|
"@types/ws": ">=8.0.0",
|
|
@@ -376,15 +387,5 @@
|
|
|
376
387
|
"typedoc": "^0.28.19",
|
|
377
388
|
"ws": "^8.18.0",
|
|
378
389
|
"zod": "^4.0.0"
|
|
379
|
-
},
|
|
380
|
-
"scripts": {
|
|
381
|
-
"build": "tsup && cp src/internal/providers/provider-catalog.json dist/provider-catalog.json && node scripts/copy-docs.mjs",
|
|
382
|
-
"test": "vitest run --no-file-parallelism",
|
|
383
|
-
"test:watch": "vitest",
|
|
384
|
-
"eval": "vitest run --no-file-parallelism tests/eval/suites",
|
|
385
|
-
"test:contract": "vitest run --no-file-parallelism tests/theokit-consumer-contract.test.ts",
|
|
386
|
-
"typecheck": "tsc --noEmit",
|
|
387
|
-
"clean": "rm -rf dist",
|
|
388
|
-
"docs:json": "typedoc --options typedoc.json"
|
|
389
390
|
}
|
|
390
|
-
}
|
|
391
|
+
}
|