Package io.agentscope.core.rag.reader
Interface ExternalApiReader.RequestBuilder
- Enclosing class:
- ExternalApiReader
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Request builder functional interface.
Allows users to customize how to build HTTP requests.
-
Method Summary
Modifier and TypeMethodDescriptionokhttp3.RequestbuildRequest(String filePath, okhttp3.OkHttpClient httpClient) Builds HTTP request based on file path.
-
Method Details
-
buildRequest
Builds HTTP request based on file path.- Parameters:
filePath- File pathhttpClient- OkHttpClient instance (can be used for complex scenarios like file upload)- Returns:
- Built OkHttp Request
- Throws:
Exception- if building fails
-