org.llm4s.toolapi.builtin.http.HttpConfig
See theHttpConfig companion object
case class HttpConfig(allowedDomains: Option[Seq[String]], blockedDomains: Seq[String], maxResponseSize: Long, timeoutMs: Int, followRedirects: Boolean, maxRedirects: Int, allowedMethods: Seq[String], userAgent: String)
Configuration for HTTP tool.
Value parameters
- allowedDomains
-
Optional list of allowed domains. If None, all domains are allowed.
- allowedMethods
-
HTTP methods that are allowed.
- blockedDomains
-
List of domains that are always blocked.
- followRedirects
-
Whether to follow HTTP redirects.
- maxRedirects
-
Maximum number of redirects to follow.
- maxResponseSize
-
Maximum response size in bytes.
- timeoutMs
-
Request timeout in milliseconds.
- userAgent
-
User-Agent header to use.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article