create
fun create(baseUrl: String, httpClient: HttpClient? = null, json: Json = Json {
ignoreUnknownKeys = true
isLenient = true
prettyPrint = true
}, defaultRequestConfigurer: DefaultRequest.DefaultRequestBuilder.() -> Unit = { }, requestConfigurer: HttpRequestBuilder.() -> Unit = { }): A2AClient(source)
Creates a new instance of the A2AClient.
Return
A new instance of the A2AClient.
Parameters
baseUrl
The base URL of the A2A server.
httpClient
An optional HttpClient to use. If not provided, a new one will be created.
json
An optional Json serializer/deserializer to use. If not provided, a new one will be created.
defaultRequestConfigurer
An optional function to configure the default request.
requestConfigurer
An optional function to configure each request.