@egain/ai-agent-sdk API Reference - v0.1.1 / ApiHelperConfig
Interface: ApiHelperConfig
API Helper service for making eGain AI Agent API calls
Table of contents
Properties
Properties
apiDomain
• apiDomain: string
API domain/base URL
Defined in
language
• Optional language: string
Language code (e.g., "en-us", "da-dk")
Default
ts
"en-us"Defined in
cache
• Optional cache: CacheConfig
Cache configuration options
Defined in
getToken
• Optional getToken: () => Promise<null | string>
When set, API methods may omit authToken in their options; the token is resolved via this provider. If omitted, each call must pass authToken explicitly.
Type declaration
▸ (): Promise<null | string>
Returns
Promise<null | string>