@noetic-tools/types 1.0.2 → 1.1.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.
@@ -57,12 +57,23 @@ export interface LLMResponse {
57
57
  }
58
58
  /** @public Configuration for the LLM provider used by the agent harness. */
59
59
  export interface LlmProviderConfig {
60
- provider: 'openrouter';
60
+ /**
61
+ * Inference backend. Defaults to `'noetic'` — the Noetic platform
62
+ * (platform.noetic.tools), which provides managed, metered inference
63
+ * authenticated with a Noetic credential. Use `'openrouter'` to call OpenRouter
64
+ * directly (BYOK).
65
+ */
66
+ provider?: 'noetic' | 'openrouter';
61
67
  apiKey?: string;
68
+ /**
69
+ * Override the API base URL (advanced / self-host). Defaults to the Noetic
70
+ * platform for the `'noetic'` provider, and the SDK default for `'openrouter'`.
71
+ */
72
+ baseUrl?: string;
62
73
  /**
63
74
  * When true, sends the `X-OpenRouter-Cache: true` request header on every
64
- * model call. OpenRouter then serves identical requests from cache without
65
- * re-billing — useful for deterministic re-runs (evals, regression suites).
75
+ * model call so identical requests are served from cache without re-billing —
76
+ * useful for deterministic re-runs (evals, regression suites).
66
77
  */
67
78
  cache?: boolean;
68
79
  }
@@ -62,6 +62,13 @@ interface CallModelRequestBase {
62
62
  * so model/tool spans nest under the root `workflow.run` span.
63
63
  */
64
64
  parentSpan?: Span;
65
+ /**
66
+ * @internal Id of the workflow node driving this call. Set by
67
+ * `parseAndRunWorkflow` (from the executing step's id) so the `llm.call` and
68
+ * `tool.call` spans this request produces carry `NoeticAttr.NODE_ID`, linking
69
+ * each span back to its node in the declared DAG.
70
+ */
71
+ nodeId?: string;
65
72
  }
66
73
  /** @public Request shape when tools are provided — ctx is required for tool execution callbacks. */
67
74
  interface CallModelRequestWithTools extends CallModelRequestBase {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noetic-tools/types",
3
- "version": "1.0.2",
3
+ "version": "1.1.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",