Skip to content

AIDK API Reference / aidk-angular

aidk-angular ​

AIDK Angular ​

Angular services and utilities for AIDK client integration. Provides injectable services for engine communication, execution management, and real-time channels.

Features ​

  • EngineService - Core client for agent execution
  • ExecutionService - Message and streaming management
  • ChannelsService - Real-time pub/sub channels
  • Providers - Easy dependency injection setup

Quick Start ​

typescript
// main.ts
import { provideEngine } from 'aidk-angular';

bootstrapApplication(AppComponent, {
  providers: [
    provideEngine({ baseUrl: 'http://localhost:3001' }),
  ],
});

// app.component.ts
import { EngineService, ExecutionService, ChannelsService } from 'aidk-angular';

@Component({ ... })
export class AppComponent implements OnInit {
  constructor(
    private engineService: EngineService,
    private ngZone: NgZone,
  ) {}

  ngOnInit() {
    this.engineService.updateConfig({ userId: 'user-123' });
  }
}

Classes ​

ClassDescription
ChannelsService-
CodeBlockComponent-
ContentBlockComponent-
EngineService-
ExecutionService-
ImageBlockComponent-
PlaceholderBlockComponent-
ReasoningBlockComponent-
TextBlockComponentTextBlock component - displays text content from AI responses.
ToolResultBlockComponent-
ToolUseBlockComponent-

Functions ​

FunctionDescription
provideEngineStandalone provider function for Engine services. Use this with bootstrapApplication.

References ​

ChannelEvent ​

Re-exports ChannelEvent


ContentBlock ​

Re-exports ContentBlock


EngineClientConfig ​

Re-exports EngineClientConfig


EngineInput ​

Re-exports EngineInput


EngineStreamEvent ​

Re-exports EngineStreamEvent


ExecutionResult ​

Re-exports ExecutionResult


Message ​

Re-exports Message


TimelineEntry ​

Re-exports TimelineEntry

Released under the MIT License.