Skip to main content
final class ChatbaseClient The main entry point. You can call it from any task or actor.

init

String
required
The Chatbase agent ID to connect to.
String
default:"https://www.chatbase.co/api/sdk"
The Chatbase API address. Leave this at its default.
URLSessionConfiguration
default:".default"
The URLSessionConfiguration used for every request. Set timeouts and caching here.
Int
default:"10"
How many times a single send or retry may run tools before giving up. Going over throws ChatError.toolLoopLimitExceeded(limit:). See Client-Side Tools.
timeoutIntervalForRequest measures the gap between pieces of data, not the length of the whole response. A long streaming reply will not be cut off by a 30 second timeout as long as data keeps arriving.

Properties

Methods