refactor(plugin-sdk): add simple completion runtime entrypoint

This commit is contained in:
Peter Steinberger
2026-04-06 16:27:23 +01:00
parent 7785dc21e6
commit de20d3a024
7 changed files with 19 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
import * as agentRuntimeModule from "openclaw/plugin-sdk/agent-runtime";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import * as agentRuntimeModule from "openclaw/plugin-sdk/simple-completion-runtime";
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
const completeWithPreparedSimpleCompletionModelMock =

View File

@@ -1,10 +1,10 @@
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
import {
completeWithPreparedSimpleCompletionModel,
extractAssistantText,
prepareSimpleCompletionModelForAgent,
} from "openclaw/plugin-sdk/agent-runtime";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
} from "openclaw/plugin-sdk/simple-completion-runtime";
const DEFAULT_THREAD_TITLE_TIMEOUT_MS = 10_000;
const MAX_THREAD_TITLE_SOURCE_CHARS = 600;