@noetic-tools/types 3.7.0 → 3.8.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/dist/types/common.d.ts
CHANGED
|
@@ -63,7 +63,12 @@ export interface ModelParams {
|
|
|
63
63
|
topP?: number;
|
|
64
64
|
/** Maximum number of tokens the model may generate. */
|
|
65
65
|
maxTokens?: number;
|
|
66
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* Sequences that would cause the model to stop generating.
|
|
68
|
+
* @deprecated Not sent to the model: the OpenRouter Responses API that
|
|
69
|
+
* `callModel` uses has no stop parameter. Accepted so existing steps and
|
|
70
|
+
* workflow documents still parse; it will be removed in the next major.
|
|
71
|
+
*/
|
|
67
72
|
stopSequences?: string[];
|
|
68
73
|
/** OpenRouter service tier to request. Omit to use the provider default. */
|
|
69
74
|
serviceTier?: ServiceTier;
|
package/dist/types/runtime.d.ts
CHANGED
|
@@ -94,6 +94,12 @@ interface CallModelRequestBase {
|
|
|
94
94
|
* each span back to its node in the declared DAG.
|
|
95
95
|
*/
|
|
96
96
|
nodeId?: string;
|
|
97
|
+
/**
|
|
98
|
+
* @internal Attributes for the first `llm.call` span this request opens. Set
|
|
99
|
+
* by `callModel` steps to record how the view was banded (the
|
|
100
|
+
* `noetic.context.*` anchoring attributes).
|
|
101
|
+
*/
|
|
102
|
+
spanAttributes?: Record<string, string | number | boolean>;
|
|
97
103
|
}
|
|
98
104
|
/** @public Request shape when tools are provided — ctx is required for tool execution callbacks. */
|
|
99
105
|
interface CallModelRequestWithTools extends CallModelRequestBase {
|
|
@@ -66,6 +66,13 @@ export interface StepSubprocessRequest extends SubprocessRequestBase {
|
|
|
66
66
|
serializedInput: unknown;
|
|
67
67
|
/** Stable id for the execution — used for handle lookup and durable checkpointing. */
|
|
68
68
|
executionId: string;
|
|
69
|
+
/**
|
|
70
|
+
* Id of the context that created this child (`spawn`, `detachedSpawn`).
|
|
71
|
+
* Durable adapters persist it so a host can `harness.restore()` the parent
|
|
72
|
+
* after a restart. Absent for a `runCode`, which runs on the dispatching
|
|
73
|
+
* context itself.
|
|
74
|
+
*/
|
|
75
|
+
parentExecutionId?: string;
|
|
69
76
|
/** Child-context overrides (thread, resource, cwd). */
|
|
70
77
|
overrides: StepSubprocessOverrides;
|
|
71
78
|
/**
|
|
@@ -92,6 +99,8 @@ export interface SubprocessHandleMetadata extends Record<string, unknown> {
|
|
|
92
99
|
error?: SerializedError;
|
|
93
100
|
/** Execution id echoed from the originating `StepSubprocessRequest`. */
|
|
94
101
|
executionId?: string;
|
|
102
|
+
/** Parent execution id echoed from the originating `StepSubprocessRequest`. */
|
|
103
|
+
parentExecutionId?: string;
|
|
95
104
|
}
|
|
96
105
|
/** @public Handle returned by `SubprocessAdapter.spawn()` — a durable reference to a child. */
|
|
97
106
|
export interface SubprocessHandle {
|
package/dist/types/tool.d.ts
CHANGED
|
@@ -127,7 +127,11 @@ export interface Tool<I extends StandardSchemaV1 = StandardSchemaV1, O extends S
|
|
|
127
127
|
* the call site to get a typed handle.
|
|
128
128
|
*/
|
|
129
129
|
execute(args: InferSchemaOutput<I>, toolCtx: unknown): ToolExecutionResult<O>;
|
|
130
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* Declares that a call needs human approval before it runs. Core records the
|
|
132
|
+
* flag on `tool.call` spans but does not pause on it: a `beforeToolCall`
|
|
133
|
+
* gating layer or the tool's own integration must enforce it.
|
|
134
|
+
*/
|
|
131
135
|
needsApproval?: boolean;
|
|
132
136
|
/** Optional context declaration — the runtime generates a ContextLayer from this. */
|
|
133
137
|
context?: ToolContextDeclaration;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noetic-tools/types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Foundational type contracts and primitives shared across the Noetic framework (items, LLM config, adapters, steering, errors).",
|
|
6
6
|
"license": "Apache-2.0",
|