Skip to content

Documentation / @agentick/angular / AgentickConfig

Interface: AgentickConfig ​

Defined in: angular/src/types.ts:22

Configuration for AgentickService.

Properties ​

baseUrl ​

baseUrl: string

Defined in: angular/src/types.ts:26

Base URL of the Agentick server.


headers? ​

optional headers: Record<string, string>

Defined in: angular/src/types.ts:65

Custom headers for requests.


paths? ​

optional paths: object

Defined in: angular/src/types.ts:70

Custom path configuration.

abort? ​

optional abort: string

channel? ​

optional channel: string

close? ​

optional close: string

events? ​

optional events: string

send? ​

optional send: string

subscribe? ​

optional subscribe: string

toolResponse? ​

optional toolResponse: string


timeout? ​

optional timeout: number

Defined in: angular/src/types.ts:84

Request timeout in milliseconds.

Default ​

ts
30000

token? ​

optional token: string

Defined in: angular/src/types.ts:55

Authentication token (adds Authorization: Bearer header).


transport? ​

optional transport: TransportConfig

Defined in: angular/src/types.ts:50

Transport to use for communication.

  • "sse": HTTP/SSE transport (default for http:// and https:// URLs)
  • "websocket": WebSocket transport (default for ws:// and wss:// URLs)
  • "auto": Auto-detect based on URL scheme (default)
  • ClientTransport instance: Use a custom transport (e.g., SharedTransport for multi-tab)

Example ​

typescript
import { createSharedTransport } from '@agentick/client-multiplexer';

providers: [
  {
    provide: TENTICKLE_CONFIG,
    useValue: {
      baseUrl: 'https://api.example.com',
      transport: createSharedTransport({ baseUrl: 'https://api.example.com' }),
    },
  },
]

userId? ​

optional userId: string

Defined in: angular/src/types.ts:60

User ID for session metadata.

Released under the ISC License.