Package ai.octoryn.sdk
Class OctorynClient
java.lang.Object
ai.octoryn.sdk.OctorynClient
-
Constructor Summary
ConstructorsConstructorDescriptionOctorynClient(String apiKey) OctorynClient(String apiKey, URI baseUri, HttpClient http) -
Method Summary
Modifier and TypeMethodDescription<T> ObjectResult<T>generateObject(GenerateObjectRequest<T> options) generateText(GenerateTextRequest options) generateTextAsync(GenerateTextRequest options) com.fasterxml.jackson.databind.ObjectMapperstreamText(GenerateTextRequest options)
-
Constructor Details
-
OctorynClient
-
OctorynClient
-
-
Method Details
-
objectMapper
public com.fasterxml.jackson.databind.ObjectMapper objectMapper() -
generateText
public TextResult generateText(GenerateTextRequest options) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
generateTextAsync
-
generateObject
public <T> ObjectResult<T> generateObject(GenerateObjectRequest<T> options) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
streamText
- Throws:
IOExceptionInterruptedException
-