public abstract class AnthropicAiModel extends AiModel implements IAiModelText
| Constructor and Description |
|---|
AnthropicAiModel() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getInputTokenLimit() |
protected int |
getOutputTokenLimit() |
protected java.lang.String |
getUrl() |
Document |
summarize(Document sourceDocument) |
Document |
summarize(Document[] sourceDocuments) |
Document |
summarize(Document[] sourceDocuments,
SummarizeOptions options)
Generates summaries for an array of documents, with options to control the summary length and other settings.
|
Document |
summarize(Document sourceDocument,
SummarizeOptions options)
Generates a summary of the specified document, with options to adjust the length of the summary.
|
Document |
translate(Document sourceDocument,
int targetLanguage) |
checkGrammar, create, getName, withApiKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckGrammarpublic Document summarize(Document sourceDocument) throws java.lang.Exception
java.lang.Exceptionpublic Document summarize(Document sourceDocument, SummarizeOptions options) throws java.lang.Exception
summarize in interface IAiModelTextsummarize in class AiModelsourceDocument - The document to be summarized.options - Optional settings to control the summary length and other parameters.java.lang.Exceptionpublic Document summarize(Document[] sourceDocuments) throws java.lang.Exception
java.lang.Exceptionpublic Document summarize(Document[] sourceDocuments, SummarizeOptions options) throws java.lang.Exception
summarize in interface IAiModelTextsummarize in class AiModelsourceDocuments - An array of documents to be summarized.options - Optional settings to control the summary length and other parametersjava.lang.Exceptionpublic Document translate(Document sourceDocument, int targetLanguage) throws java.lang.Exception
translate in interface IAiModelTexttranslate in class AiModeljava.lang.Exceptionprotected int getInputTokenLimit()
protected int getOutputTokenLimit()