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?
optionalheaders:Record<string,string>
Defined in: angular/src/types.ts:65
Custom headers for requests.
paths?
optionalpaths:object
Defined in: angular/src/types.ts:70
Custom path configuration.
abort?
optionalabort:string
channel?
optionalchannel:string
close?
optionalclose:string
events?
optionalevents:string
send?
optionalsend:string
subscribe?
optionalsubscribe:string
toolResponse?
optionaltoolResponse:string
timeout?
optionaltimeout:number
Defined in: angular/src/types.ts:84
Request timeout in milliseconds.
Default
30000token?
optionaltoken:string
Defined in: angular/src/types.ts:55
Authentication token (adds Authorization: Bearer header).
transport?
optionaltransport: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
import { createSharedTransport } from '@agentick/client-multiplexer';
providers: [
{
provide: TENTICKLE_CONFIG,
useValue: {
baseUrl: 'https://api.example.com',
transport: createSharedTransport({ baseUrl: 'https://api.example.com' }),
},
},
]userId?
optionaluserId:string
Defined in: angular/src/types.ts:60
User ID for session metadata.