@threadplane/langgraph 0.0.55 → 0.0.57
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/package.json
CHANGED
|
@@ -208,6 +208,14 @@ interface AgentOptions<T, _ResolvedBag extends BagTemplate> {
|
|
|
208
208
|
filterSubagentMessages?: boolean;
|
|
209
209
|
/** Tool names that indicate a subagent invocation. */
|
|
210
210
|
subagentToolNames?: string[];
|
|
211
|
+
/**
|
|
212
|
+
* LangGraph node names whose `messages-tuple` LLM chunks should be projected
|
|
213
|
+
* into the main chat transcript. Omit to accept all top-level message chunks.
|
|
214
|
+
*
|
|
215
|
+
* Use this when a graph has side-effect LLM nodes, such as title generation,
|
|
216
|
+
* whose streamed model output should not render as assistant chat content.
|
|
217
|
+
*/
|
|
218
|
+
transcriptNodeNames?: string[];
|
|
211
219
|
}
|
|
212
220
|
/** Reference to a subagent's streaming state. */
|
|
213
221
|
interface SubagentStreamRef {
|
|
@@ -335,6 +343,11 @@ interface AgentConfig<T = Record<string, unknown>, _Bag extends BagTemplate = Ba
|
|
|
335
343
|
filterSubagentMessages?: boolean;
|
|
336
344
|
/** Tool names that indicate a subagent invocation. */
|
|
337
345
|
subagentToolNames?: string[];
|
|
346
|
+
/**
|
|
347
|
+
* LangGraph node names whose `messages-tuple` LLM chunks should be projected
|
|
348
|
+
* into the main chat transcript. Omit to accept all top-level message chunks.
|
|
349
|
+
*/
|
|
350
|
+
transcriptNodeNames?: string[];
|
|
338
351
|
}
|
|
339
352
|
/**
|
|
340
353
|
* Wire the LangGraph adapter into Angular's dependency injection.
|
|
@@ -405,8 +418,8 @@ declare function injectAgent<T, ResolvedBag extends BagTemplate = BagTemplate>(r
|
|
|
405
418
|
* an Angular injection context. External instrumentation packages
|
|
406
419
|
* (e.g. cockpit-telemetry) provide this token and read from it.
|
|
407
420
|
*
|
|
408
|
-
* `@threadplane/langgraph` does NOT provide this itself —
|
|
409
|
-
* the registry only when an external consumer has provided it.
|
|
421
|
+
* `@threadplane/langgraph` does NOT provide this itself — the configured agent
|
|
422
|
+
* instance writes to the registry only when an external consumer has provided it.
|
|
410
423
|
*/
|
|
411
424
|
declare class AgentLifecycleRegistry {
|
|
412
425
|
private readonly _lifecycles;
|
|
@@ -582,7 +595,7 @@ declare function mockLangGraphAgent(initial?: MockAgentOptions & {
|
|
|
582
595
|
* @example
|
|
583
596
|
* ```ts
|
|
584
597
|
* TestBed.configureTestingModule({
|
|
585
|
-
* providers: [provideFakeAgent({
|
|
598
|
+
* providers: [provideFakeAgent({ tokens: ['Hi from the fake LangGraph agent'] })],
|
|
586
599
|
* });
|
|
587
600
|
* ```
|
|
588
601
|
*/
|