@superatomai/sdk-node 0.0.51-dsp → 0.0.52-dsp

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/index.d.mts CHANGED
@@ -557,8 +557,15 @@ interface SourceAgentResult {
557
557
  sourceName: string;
558
558
  /** Whether the query succeeded */
559
559
  success: boolean;
560
- /** Result data rows */
560
+ /** Result data rows — bounded to MAIN_AGENT_COMPLETE_ROWS (Stage 2: what the LLM
561
+ * sees verbatim in its own prompt). NOT render-sized — do not bind a UI
562
+ * component's dataset to this field; use renderData instead. */
561
563
  data: any[];
564
+ /** Result data rows bounded to MAX_ROWS_RENDERED (Stage 3: render-appropriate).
565
+ * This is what already-fetched (Stage 1, <=MAX_ROWS_FETCHED) rows look like
566
+ * before Stage 2 further truncates `data` down for the LLM's own context —
567
+ * use this, not `data`, whenever binding a UI component's dataset. */
568
+ renderData: any[];
562
569
  /** Metadata about the query execution */
563
570
  metadata: SourceAgentMetadata;
564
571
  /** Tool execution info for the last successful query (backward compat) */
@@ -813,10 +820,11 @@ interface RunTrace {
813
820
  sourceId: string;
814
821
  sourceName?: string;
815
822
  /**
816
- * The exact intent text MainAgent wrote for this dispatch (before the
817
- * resolved-entities block gets appended by code — see
818
- * buildResolvedEntitiesBlock) — what MainAgent actually asked this
819
- * source agent to go find.
823
+ * The exact intent text this dispatch's own prompt was built from —
824
+ * captured in SourceAgent.buildPrompt, so it ALREADY includes the
825
+ * resolved-entities and resolved-concepts blocks MainAgent appends by
826
+ * code before calling execute() (see buildResolvedEntitiesBlock /
827
+ * buildResolvedConceptsBlock) — not just what the LLM itself wrote.
820
828
  */
821
829
  intent: string;
822
830
  /** How `schemaText` was sourced — see SourceAgent.buildPrompt's fullSchema fallback chain. */
@@ -829,6 +837,21 @@ interface RunTrace {
829
837
  }>;
830
838
  /** The tool_result text MainAgent's LLM read back for this dispatch (formatResultForMainAgent output). */
831
839
  result?: string;
840
+ /**
841
+ * The full resolved-concept bodies this dispatch's intent was built
842
+ * with (the same content already baked into `intent` via
843
+ * buildResolvedConceptsBlock, surfaced here structured/separately so a
844
+ * trace reader doesn't have to parse it back out of the raw text).
845
+ * Stamped AFTER execute() resolves — same timing as `result` above —
846
+ * specifically so its presence here is proof the concepts were part
847
+ * of the prompt actually sent, not just of what MainAgent intended to
848
+ * send before the call happened.
849
+ */
850
+ resolvedConcepts?: Array<{
851
+ name: string;
852
+ kind: string;
853
+ body: string;
854
+ }>;
832
855
  }>;
833
856
  };
834
857
  /** The script that produced this answer, if any. Null for a general (no-tool) answer. */
package/dist/index.d.ts CHANGED
@@ -557,8 +557,15 @@ interface SourceAgentResult {
557
557
  sourceName: string;
558
558
  /** Whether the query succeeded */
559
559
  success: boolean;
560
- /** Result data rows */
560
+ /** Result data rows — bounded to MAIN_AGENT_COMPLETE_ROWS (Stage 2: what the LLM
561
+ * sees verbatim in its own prompt). NOT render-sized — do not bind a UI
562
+ * component's dataset to this field; use renderData instead. */
561
563
  data: any[];
564
+ /** Result data rows bounded to MAX_ROWS_RENDERED (Stage 3: render-appropriate).
565
+ * This is what already-fetched (Stage 1, <=MAX_ROWS_FETCHED) rows look like
566
+ * before Stage 2 further truncates `data` down for the LLM's own context —
567
+ * use this, not `data`, whenever binding a UI component's dataset. */
568
+ renderData: any[];
562
569
  /** Metadata about the query execution */
563
570
  metadata: SourceAgentMetadata;
564
571
  /** Tool execution info for the last successful query (backward compat) */
@@ -813,10 +820,11 @@ interface RunTrace {
813
820
  sourceId: string;
814
821
  sourceName?: string;
815
822
  /**
816
- * The exact intent text MainAgent wrote for this dispatch (before the
817
- * resolved-entities block gets appended by code — see
818
- * buildResolvedEntitiesBlock) — what MainAgent actually asked this
819
- * source agent to go find.
823
+ * The exact intent text this dispatch's own prompt was built from —
824
+ * captured in SourceAgent.buildPrompt, so it ALREADY includes the
825
+ * resolved-entities and resolved-concepts blocks MainAgent appends by
826
+ * code before calling execute() (see buildResolvedEntitiesBlock /
827
+ * buildResolvedConceptsBlock) — not just what the LLM itself wrote.
820
828
  */
821
829
  intent: string;
822
830
  /** How `schemaText` was sourced — see SourceAgent.buildPrompt's fullSchema fallback chain. */
@@ -829,6 +837,21 @@ interface RunTrace {
829
837
  }>;
830
838
  /** The tool_result text MainAgent's LLM read back for this dispatch (formatResultForMainAgent output). */
831
839
  result?: string;
840
+ /**
841
+ * The full resolved-concept bodies this dispatch's intent was built
842
+ * with (the same content already baked into `intent` via
843
+ * buildResolvedConceptsBlock, surfaced here structured/separately so a
844
+ * trace reader doesn't have to parse it back out of the raw text).
845
+ * Stamped AFTER execute() resolves — same timing as `result` above —
846
+ * specifically so its presence here is proof the concepts were part
847
+ * of the prompt actually sent, not just of what MainAgent intended to
848
+ * send before the call happened.
849
+ */
850
+ resolvedConcepts?: Array<{
851
+ name: string;
852
+ kind: string;
853
+ body: string;
854
+ }>;
832
855
  }>;
833
856
  };
834
857
  /** The script that produced this answer, if any. Null for a general (no-tool) answer. */