Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cockpit/chat/a2ui/angular/src/app/a2ui.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
import { Component } from '@angular/core';
import { ChatComponent, a2uiBasicCatalog } from '@cacheplane/chat';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { environment } from '../environments/environment';

@Component({
Expand All @@ -15,6 +15,6 @@ export class A2uiComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.a2uiAssistantId,
});
protected readonly chatAgent = toChatAgent(this.agentRef);
protected readonly chatAgent = toAgent(this.agentRef);
protected readonly catalog = a2uiBasicCatalog();
}
4 changes: 2 additions & 2 deletions cockpit/chat/debug/angular/src/app/debug.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
import { Component } from '@angular/core';
import { ChatDebugComponent } from '@cacheplane/chat';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { environment } from '../environments/environment';

Expand All @@ -25,5 +25,5 @@ export class DebugPageComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
import { Component } from '@angular/core';
import { ChatComponent, views } from '@cacheplane/chat';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { environment } from '../environments/environment';

Expand Down Expand Up @@ -36,6 +36,6 @@ export class GenerativeUiComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.generativeUiAssistantId,
});
protected readonly chatAgent = toChatAgent(this.agentRef);
protected readonly chatAgent = toAgent(this.agentRef);
protected readonly dashboardViews = dashboardViews;
}
4 changes: 2 additions & 2 deletions cockpit/chat/input/angular/src/app/input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Component, computed } from '@angular/core';
import { ChatInputComponent as ChatInputPrimitive } from '@cacheplane/chat';
import { ChatMessagesComponent } from '@cacheplane/chat';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { environment } from '../environments/environment';

/**
Expand Down Expand Up @@ -56,7 +56,7 @@ export class InputComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

protected readonly streamStatus = computed(() => this.stream.status());
protected readonly isLoading = computed(() => this.stream.isLoading());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Component, computed } from '@angular/core';
import { JsonPipe } from '@angular/common';
import { ChatComponent, ChatInterruptPanelComponent } from '@cacheplane/chat';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { environment } from '../environments/environment';

/**
Expand Down Expand Up @@ -37,7 +37,7 @@ export class InterruptsComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

protected readonly streamStatus = computed(() => this.stream.status());
}
4 changes: 2 additions & 2 deletions cockpit/chat/messages/angular/src/app/messages.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ChatTypingIndicatorComponent,
} from '@cacheplane/chat';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { environment } from '../environments/environment';

/**
Expand Down Expand Up @@ -51,7 +51,7 @@ export class MessagesComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

submitMessage(content: string) {
this.chatAgent.submit({ message: content });
Expand Down
4 changes: 2 additions & 2 deletions cockpit/chat/subagents/angular/src/app/subagents.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ChatSubagentCardComponent,
} from '@cacheplane/chat';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { environment } from '../environments/environment';

/**
Expand Down Expand Up @@ -44,5 +44,5 @@ export class SubagentsComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);
}
4 changes: 2 additions & 2 deletions cockpit/chat/theming/angular/src/app/theming.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Component, signal } from '@angular/core';
import { TitleCasePipe } from '@angular/common';
import { ChatComponent } from '@cacheplane/chat';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { environment } from '../environments/environment';

const THEMES: Record<string, Record<string, string>> = {
Expand Down Expand Up @@ -88,7 +88,7 @@ export class ThemingComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

protected readonly themeNames = Object.keys(THEMES);
protected readonly activeTheme = signal('dark');
Expand Down
4 changes: 2 additions & 2 deletions cockpit/chat/threads/angular/src/app/threads.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
import { Component, signal } from '@angular/core';
import { ChatComponent, ChatThreadListComponent, type Thread } from '@cacheplane/chat';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { environment } from '../environments/environment';

Expand Down Expand Up @@ -33,7 +33,7 @@ export class ThreadsComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

protected readonly threads = signal<Thread[]>([
{ id: 'thread-1', title: 'First Conversation' },
Expand Down
4 changes: 2 additions & 2 deletions cockpit/chat/timeline/angular/src/app/timeline.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Component } from '@angular/core';
import { ChatComponent, ChatTimelineSliderComponent } from '@cacheplane/chat';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { environment } from '../environments/environment';

/**
Expand Down Expand Up @@ -38,5 +38,5 @@ export class TimelineComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ChatToolCallCardComponent,
} from '@cacheplane/chat';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { environment } from '../environments/environment';

/**
Expand Down Expand Up @@ -42,5 +42,5 @@ export class ToolCallsComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, computed } from '@angular/core';
import { ChatComponent, views } from '@cacheplane/chat';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { signalStateStore } from '@cacheplane/render';
import { environment } from '../environments/environment';
import { FilePreviewComponent } from './views/file-preview.component';
Expand Down Expand Up @@ -74,7 +74,7 @@ export class FilesystemComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

/**
* Reactive list of file operations derived from the message history.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, computed } from '@angular/core';
import { ChatComponent } from '@cacheplane/chat';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { environment } from '../environments/environment';

/**
Expand Down Expand Up @@ -55,7 +55,7 @@ export class MemoryComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

/**
* Reactive list of [key, value] memory entries derived from the graph state.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, computed } from '@angular/core';
import { ChatComponent, views } from '@cacheplane/chat';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { signalStateStore } from '@cacheplane/render';
import { environment } from '../environments/environment';
import { PlanChecklistComponent } from './views/plan-checklist.component';
Expand Down Expand Up @@ -74,7 +74,7 @@ export class PlanningComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

/**
* Reactive list of plan steps derived from the graph state.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, computed } from '@angular/core';
import { ChatComponent, views } from '@cacheplane/chat';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { signalStateStore } from '@cacheplane/render';
import { environment } from '../environments/environment';
import { CodeExecutionComponent } from './views/code-execution.component';
Expand Down Expand Up @@ -68,7 +68,7 @@ export class SandboxesComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

/**
* Derived signal: extracts code executions from the message stream.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, computed } from '@angular/core';
import { ChatComponent, views } from '@cacheplane/chat';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { signalStateStore } from '@cacheplane/render';
import { environment } from '../environments/environment';
import { CalculatorResultComponent } from './views/calculator-result.component';
Expand Down Expand Up @@ -75,7 +75,7 @@ export class SkillsComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

private readonly SKILL_NAMES = new Set(['calculator', 'word_count', 'summarize']);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, computed } from '@angular/core';
import { ChatComponent } from '@cacheplane/chat';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { environment } from '../environments/environment';

/**
Expand Down Expand Up @@ -59,7 +59,7 @@ export class SubagentsComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

/**
* Reactive delegation list derived from messages.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
import { Component } from '@angular/core';
import { ChatComponent } from '@cacheplane/chat';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { environment } from '../environments/environment';

Expand All @@ -26,5 +26,5 @@ export class DeploymentRuntimeComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.deploymentRuntimeAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, computed } from '@angular/core';
import { ChatComponent, views } from '@cacheplane/chat';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { signalStateStore } from '@cacheplane/render';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { environment } from '../environments/environment';
Expand Down Expand Up @@ -102,7 +102,7 @@ export class DurableExecutionComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

/**
* Derives the 3-step pipeline status from the graph's `state.step` field.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
import { Component } from '@angular/core';
import { ChatComponent, ChatInterruptPanelComponent, views, type InterruptAction } from '@cacheplane/chat';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { signalStateStore } from '@cacheplane/render';
import { environment } from '../environments/environment';
Expand Down Expand Up @@ -50,7 +50,7 @@ export class InterruptsComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

/**
* Handle an interrupt action from the panel.
Expand Down
4 changes: 2 additions & 2 deletions cockpit/langgraph/memory/angular/src/app/memory.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
import { Component, computed } from '@angular/core';
import { ChatComponent } from '@cacheplane/chat';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { environment } from '../environments/environment';

Expand Down Expand Up @@ -52,7 +52,7 @@ export class MemoryComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

/**
* Reactive list of [key, value] memory entries derived from the graph state.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, signal } from '@angular/core';
import { ChatComponent } from '@cacheplane/chat';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { environment } from '../environments/environment';

Expand Down Expand Up @@ -98,7 +98,7 @@ export class PersistenceComponent {
}
},
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);

/** Switch to an existing thread by ID. */
switchThread(id: string): void {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
import { Component } from '@angular/core';
import { ChatComponent } from '@cacheplane/chat';
import { agent, toChatAgent } from '@cacheplane/langgraph';
import { agent, toAgent } from '@cacheplane/langgraph';
import { ExampleChatLayoutComponent } from '@cacheplane/example-layouts';
import { environment } from '../environments/environment';

Expand All @@ -27,5 +27,5 @@ export class StreamingComponent {
apiUrl: environment.langGraphApiUrl,
assistantId: environment.streamingAssistantId,
});
protected readonly chatAgent = toChatAgent(this.stream);
protected readonly chatAgent = toAgent(this.stream);
}
Loading
Loading