Indico Ktor Client
//indico-client-java/com.indico/IndicoKtorClient
IndicoKtorClient
[jvm]
class IndicoKtorClient(val config: IndicoConfig) : Closeable, IndicoClient
Kotlin based concrete implementation of the IndicoClient.
Constructors
IndicoKtorClient | [jvm] constructor(config: IndicoConfig) |
Properties
Name | Summary |
---|---|
config | [jvm] val config: IndicoConfig |
graphClient | [jvm] var graphClient: GraphQLKtorClient |
httpClient | [jvm] var httpClient: OkHttpClient |
Functions
Name | Summary |
---|---|
close | [jvm] open override fun close() Close and dispose of connections. |
documentExtraction | [jvm] open override fun documentExtraction(): DocumentExtraction Execute a mutation to extract information from a document. |
execute | [jvm] open override fun <T : Any> execute(request: GraphQLClientRequest<T>): GraphQLClientResponse<T> Execute any request which inherits from GraphQLClientRequest synchronously. |
executeAsync | [jvm] open suspend override fun <T : Any> executeAsync(request: GraphQLClientRequest<T>): GraphQLClientResponse<T> Execute any request which inherits from GraphQLClientRequest asynchronously. |
generateSubmissionResult | [jvm] open override fun generateSubmissionResult(): GenerateSubmissionResult? Generate submission results post-submission and post-review. |
getSubmission | [jvm] open override fun getSubmission(): GetSubmission? Retrieve a particular submission. |
listSubmissions | [jvm] open override fun listSubmissions(): ListSubmissions? Query for submissions and recieve a list. |
modelGroupLoad | [jvm] open override fun modelGroupLoad(): ModelGroupLoad? Load a model group given a ModelGroup or an integer id. |
modelGroupPredict | [jvm] open override fun modelGroupPredict(): ModelGroupPredict? Retrieve model group predictions. |
modelGroupQuery | [jvm] open override fun modelGroupQuery(): ModelGroupQuery? Retrieve a particular model group. |
rawGraphQLQuery | [jvm] open override fun rawGraphQLQuery(query: String, operationName: String, variables: JsonNode): GraphQLRequest? Make raw GraphQL query |
retrieveBlob | [jvm] open override fun retrieveBlob(): RetrieveBlob? Download a blob. Must call close() on the retrieved blob to dispose of the object after. |
retrySubmission | [jvm] open override fun retrySubmission(): RetrySubmission? Retry a submission which has failed or otherwise is not completed. |
submissionResult | [jvm] open override fun submissionResult(): SubmissionResult? Retrieve submission result, especially after running GenerateSubmissionResult |
trainingModelWithProgressQuery | [jvm] open override fun trainingModelWithProgressQuery(): TrainingModelWithProgressQuery? Retrieve information about the training progress of a model. |
updateSubmission | [jvm] open override fun updateSubmission(): UpdateSubmission? Execute a mutation to update the status of a submission. |
uploadFile | [jvm] open override fun uploadFile(): UploadFile? Upload a particular file. |
workflowSubmission | [jvm] open override fun workflowSubmission(): WorkflowSubmission? Execute a mutation which submits to a workflow and generates a submission. |
Updated 12 months ago