runbios-mcp 0.6.2 → 0.6.3-dev.403
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 +6 -0
- package/dist/assistant/tool-runtime.d.ts.map +1 -1
- package/dist/assistant/tool-runtime.js +2 -1
- package/dist/assistant/tool-runtime.js.map +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/http/assistant.js +1 -1
- package/dist/http/assistant.js.map +1 -1
- package/dist/http/metadata.js +1 -1
- package/dist/http/metadata.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inference-contract.d.ts +1 -0
- package/dist/inference-contract.d.ts.map +1 -1
- package/dist/inference-contract.js +2 -0
- package/dist/inference-contract.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +11 -11
- package/dist/server.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -5,7 +5,7 @@ import { basename, resolve } from "node:path";
|
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
import { buildGPUOptionsParams, buildTrainingCreateBody, TRAINING_ADAPTERS, TRAINING_METHODS, trimTrainingLogs, } from "./training-contract.js";
|
|
7
7
|
import { buildDeploymentBody, buildDeploymentGPUOptionsParams, buildDeploymentPolicyBody, DEPLOYMENT_GPU_TIERS, DEPLOYMENT_SOURCE_TYPES, } from "./deployment-contract.js";
|
|
8
|
-
import { buildInferenceBody } from "./inference-contract.js";
|
|
8
|
+
import { buildInferenceBody, SERVERLESS_REASONING_OUTPUT_POLICY } from "./inference-contract.js";
|
|
9
9
|
import { redactBuildIdentity, redactBuildIdentityDeep, redactFreeTextFields, sanitizeArchitectureRegistry, stripBuildIdentity, } from "./redaction.js";
|
|
10
10
|
import { gpuRejectionCodeFor, gpuRejectionInstruction, gpuRejectionStatusFor, ApiHttpError, InferenceHttpError, isPermanentGpuCode, } from "./api-client.js";
|
|
11
11
|
/**
|
|
@@ -283,10 +283,10 @@ const TRAINING_SEQ_POLICY_TEXT = `Training sequence length in tokens (sent as co
|
|
|
283
283
|
+ `${CONTEXT_TOOL_MAX} range accepted here is only a sanity bound, never a per-model ceiling: read the model's window from `
|
|
284
284
|
+ "get_model_config or preflight_training_job before proposing a value. Longer sequences raise memory use roughly linearly, "
|
|
285
285
|
+ "so raise it deliberately, not by default.";
|
|
286
|
-
const
|
|
287
|
-
+ `
|
|
288
|
-
|
|
289
|
-
|
|
286
|
+
const OUTPUT_WINDOW_TEXT = "The served context window MINUS the prompt and the model's output limit bound the response. "
|
|
287
|
+
+ `The 1–${CONTEXT_TOOL_MAX} input range is a sanity bound.`;
|
|
288
|
+
const CHAT_OUTPUT_BUDGET_TEXT = "Requested output budget in tokens. " + OUTPUT_WINDOW_TEXT + " " + SERVERLESS_REASONING_OUTPUT_POLICY;
|
|
289
|
+
const OPTIONAL_CHAT_OUTPUT_BUDGET_TEXT = CHAT_OUTPUT_BUDGET_TEXT + " Omit it to use the endpoint default.";
|
|
290
290
|
function trainingSeqLengthSchema() {
|
|
291
291
|
return z
|
|
292
292
|
.number()
|
|
@@ -2120,7 +2120,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
|
|
|
2120
2120
|
/* ══════════════════════════════════════════════════════════════════════════ */
|
|
2121
2121
|
/* TOOL: list_inferences */
|
|
2122
2122
|
/* ══════════════════════════════════════════════════════════════════════════ */
|
|
2123
|
-
server.tool("list_inferences", "List
|
|
2123
|
+
server.tool("list_inferences", "List dedicated deployments in the API key's workspace, newest first, including stopped or starting deployments. To choose a model ID for an inference call, use list_inference_models. Reuse next_cursor with the same status/search filters to continue; start without a cursor after filters change. The returned lifecycle values are durable control-plane state, not a promise that an endpoint is live unless status is running." +
|
|
2124
2124
|
// Said only where the loop is offered (launchGates.loop is the gate).
|
|
2125
2125
|
(launchGates.loop ? "" : " A row with loop_comparison: true is a Conscious Loop comparison machine no model name points at: listed and billed, but not a model to call or offer (call the pipeline's own loop-<tag> name instead)."), {
|
|
2126
2126
|
limit: z.number().int().min(1).max(200).optional().describe("Page size (default 50, maximum 200)."),
|
|
@@ -2810,10 +2810,10 @@ create (1-5 choices), and the queue itself stays opt-in.`,
|
|
|
2810
2810
|
.min(1, { error: "max_tokens must be at least 1 — omit it to let the endpoint choose." })
|
|
2811
2811
|
.max(CONTEXT_TOOL_MAX, {
|
|
2812
2812
|
error: (issue) => `max_tokens ${String(issue.input)} is above the ${CONTEXT_TOOL_MAX}-token sanity bound of this tool. `
|
|
2813
|
-
+
|
|
2813
|
+
+ OPTIONAL_CHAT_OUTPUT_BUDGET_TEXT,
|
|
2814
2814
|
})
|
|
2815
2815
|
.optional()
|
|
2816
|
-
.describe(
|
|
2816
|
+
.describe(OPTIONAL_CHAT_OUTPUT_BUDGET_TEXT),
|
|
2817
2817
|
temperature: z.number().min(0).max(2).optional().describe("Sampling temperature. Lower values make generation more deterministic when the selected model supports temperature."),
|
|
2818
2818
|
top_p: z.number().min(0).max(1).optional().describe("Nucleus sampling probability mass for generation, when supported by the selected model."),
|
|
2819
2819
|
response_format: z.record(z.string(), z.unknown()).optional().describe("Chat response format supported by the selected model, such as a JSON object or a structured response schema."),
|
|
@@ -2875,7 +2875,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
|
|
|
2875
2875
|
server.tool("complete_with_inference", "Call a dedicated deployment that serves OpenAI text completions on /v1/completions. Serverless pools do not expose this route. Use a model/deployment that advertises this task. stream=true returns the ordered SSE events. Never implicitly retries a billable POST.", {
|
|
2876
2876
|
...taskControlSchema,
|
|
2877
2877
|
prompt: z.union([z.string().min(1), z.array(z.string().min(1)).min(1)]).describe("Text to complete, or a batch of input strings for the selected completion deployment."),
|
|
2878
|
-
max_tokens: z.number().int().min(1).max(CONTEXT_TOOL_MAX).optional().describe(
|
|
2878
|
+
max_tokens: z.number().int().min(1).max(CONTEXT_TOOL_MAX).optional().describe("Maximum generated tokens for this dedicated text deployment. Omit it to use the deployment default. " + OUTPUT_WINDOW_TEXT),
|
|
2879
2879
|
temperature: z.number().min(0).max(2).optional().describe("Sampling temperature. Lower values make generation more deterministic when the selected model supports temperature."),
|
|
2880
2880
|
top_p: z.number().min(0).max(1).optional().describe("Nucleus sampling probability mass for generation, when supported by the selected model."),
|
|
2881
2881
|
stop: z.union([z.string(), z.array(z.string())]).optional().describe("Stop sequences that end text generation when matched."),
|
|
@@ -2902,7 +2902,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
|
|
|
2902
2902
|
server.tool("message_with_inference", "Call an Anthropic-compatible /v1/messages model: a capable serverless catalog model or a dedicated deployment that serves this dialect. The selected inference credential stays server-side. stream=true returns ordered Anthropic SSE events without losing tool-use deltas; never implicitly retries a billable POST.", {
|
|
2903
2903
|
...taskControlSchema,
|
|
2904
2904
|
messages: z.array(z.record(z.string(), z.unknown())).min(1).describe("Ordered Messages API conversation turns, using the role and content fields supported by the deployment."),
|
|
2905
|
-
max_tokens: z.number().int().min(1).max(CONTEXT_TOOL_MAX).describe(
|
|
2905
|
+
max_tokens: z.number().int().min(1).max(CONTEXT_TOOL_MAX).describe(CHAT_OUTPUT_BUDGET_TEXT),
|
|
2906
2906
|
system: z.union([z.string(), z.array(z.record(z.string(), z.unknown()))]).optional().describe("System instructions for this inference request in the Messages API format accepted by the deployment."),
|
|
2907
2907
|
tools: z.array(z.record(z.string(), z.unknown())).optional().describe("Messages API tool definitions offered to the target model for this inference request."),
|
|
2908
2908
|
tool_choice: z.record(z.string(), z.unknown()).optional().describe("Tool selection policy for this inference request. Use a choice supported by the deployment and the tools you supplied."),
|
|
@@ -2997,7 +2997,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
|
|
|
2997
2997
|
pipeline: z.string().min(1).max(63).describe("The pipeline ID: its own_tag, e.g. 'support-replies' (loop_list_pipelines shows it, and so does the pipeline's Connect page). It was made from the pipeline's name when it was created and never changes. One pipeline ID, no commas: lowercase letters, digits, dot, dash or underscore (capitals are taken as lowercase, as the platform does)."),
|
|
2998
2998
|
messages: z.array(z.record(z.string(), z.unknown())).min(1).describe("The conversation to send, in chat-completions shape: [{\"role\": \"user\", \"content\": \"...\"}]"),
|
|
2999
2999
|
model: z.string().min(1).optional().describe("The model to ask: a serverless model id or a deployment name. Leave it out to ask the pipeline's own model, loop-<pipeline ID>, which answers with the live version. Required before the pipeline's first version: pass the model the app uses now."),
|
|
3000
|
-
max_tokens: z.number().int().min(1).max(CONTEXT_TOOL_MAX).optional().describe(
|
|
3000
|
+
max_tokens: z.number().int().min(1).max(CONTEXT_TOOL_MAX).optional().describe(OPTIONAL_CHAT_OUTPUT_BUDGET_TEXT),
|
|
3001
3001
|
temperature: z.number().min(0).max(2).optional().describe("Sampling temperature. Lower values make generation more deterministic when the selected model supports temperature."),
|
|
3002
3002
|
request_id: z.string().min(1).max(255).optional().describe("Caller-supplied request identifier for tracing this inference request."),
|
|
3003
3003
|
}, async ({ pipeline, messages, model, max_tokens, temperature, request_id }, extra) => {
|