AdkWebServer constructor

AdkWebServer({
  1. required String agentsDir,
  2. String appName = '',
  3. int port = 8000,
  4. String host = '127.0.0.1',
  5. List<String> allowOrigins = const <String>[],
  6. String? sessionServiceUri,
  7. String? artifactServiceUri,
  8. String? memoryServiceUri,
  9. bool useLocalStorage = true,
  10. String? urlPrefix,
  11. bool autoCreateSession = false,
  12. bool enableWebUi = true,
  13. String? logoText,
  14. String? logoImageUrl,
})

Creates a web server launcher for agentsDir.

Implementation

AdkWebServer({
  required this.agentsDir,
  this.appName = '',
  this.port = 8000,
  this.host = '127.0.0.1',
  this.allowOrigins = const <String>[],
  this.sessionServiceUri,
  this.artifactServiceUri,
  this.memoryServiceUri,
  this.useLocalStorage = true,
  this.urlPrefix,
  this.autoCreateSession = false,
  this.enableWebUi = true,
  this.logoText,
  this.logoImageUrl,
});