Skip to content

Commit d354ae6

Browse files
committed
Aspose.Slides for Java 25.6 API references
1 parent 8839625 commit d354ae6

File tree

6 files changed

+218
-4
lines changed

6 files changed

+218
-4
lines changed

content/java/english/com.aspose.slides/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ url: /com.aspose.slides/
414414
| [OdpReadException](../com.aspose.slides/odpreadexception) | Represents an exception which thrown on presentation reading errors. |
415415
| [OleEmbeddedDataInfo](../com.aspose.slides/oleembeddeddatainfo) | Represents embedded data info for OLE object. |
416416
| [OleObjectFrame](../com.aspose.slides/oleobjectframe) | Represents an OLE object on a slide. |
417+
| [OpenAIWebClient](../com.aspose.slides/openaiwebclient) | Build-in lightweight OpenAI web client |
417418
| [OptionalBlackTransition](../com.aspose.slides/optionalblacktransition) | Optional black slide transition effect. |
418419
| [OrganizationChartLayoutType](../com.aspose.slides/organizationchartlayouttype) | Represents formatting type the child nodes in an organization chart |
419420
| [Orientation](../com.aspose.slides/orientation) | Represents the orientation of a shape. |
@@ -543,6 +544,8 @@ url: /com.aspose.slides/
543544
| [SlideSizeType](../com.aspose.slides/slidesizetype) | Represents the slide size preset. |
544545
| [SlideThemeManager](../com.aspose.slides/slidethememanager) | Provides access to slide theme overriden. |
545546
| [SlideUtil](../com.aspose.slides/slideutil) | Offer methods which help to search shapes and text in a presentation. |
547+
| [SlidesAIAgent](../com.aspose.slides/slidesaiagent) | Provides AI-powered features for processing presentations. |
548+
| [SlidesAIAgentException](../com.aspose.slides/slidesaiagentexception) | Represents Slides AI Agent related exceptions. |
546549
| [SlidesRange](../com.aspose.slides/slidesrange) | Slides range |
547550
| [SmartArt](../com.aspose.slides/smartart) | Represents a SmartArt diagram |
548551
| [SmartArtColorType](../com.aspose.slides/smartartcolortype) | Represents color scheme of a SmartArt diagram. |
@@ -658,6 +661,7 @@ url: /com.aspose.slides/
658661

659662
| Interface | Description |
660663
| --- | --- |
664+
| [IAIWebClient](../com.aspose.slides/iaiwebclient) | AI Web client interface. |
661665
| [IAccessiblePVIObject<T>](../com.aspose.slides/iaccessiblepviobject) | Represents a type that can return corresponding effective data with the inheritance applied. |
662666
| [IActualLayout](../com.aspose.slides/iactuallayout) | Specifies actual position of a chart element. |
663667
| [IAdjustValue](../com.aspose.slides/iadjustvalue) | Represents a geometry shape's adjustment value. |

content/java/english/com.aspose.slides/displayunittype/_index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Determines multiplicity of the displayed data.
1616

1717
| Field | Description |
1818
| --- | --- |
19-
| [None](#None) | Values will dislayed as is. |
19+
| [None](#None) | Values will be displayed as-is. |
2020
| [Hundreds](#Hundreds) | Specifies the values on the chart shall be divided by 100. |
2121
| [Thousands](#Thousands) | Specifies the values on the chart shall be divided by 1,000. |
2222
| [TenThousands](#TenThousands) | Specifies the values on the chart shall be divided by 10,000. |
@@ -25,15 +25,15 @@ Determines multiplicity of the displayed data.
2525
| [TenMillions](#TenMillions) | Specifies the values on the chart shall be divided by 10,000,000. |
2626
| [HundredMillions](#HundredMillions) | Specifies the values on the chart shall be divided by 100,000,000. |
2727
| [Billions](#Billions) | Specifies the values on the chart shall be divided by 1,000,000,000. |
28-
| [Trillions](#Trillions) | Specifies the values on the chart shall be divided by 1,000,000,000. |
28+
| [Trillions](#Trillions) | Specifies the values on the chart shall be divided by 1,000,000,000,000. |
2929
| [CustomValue](#CustomValue) | Specifies the values on the chart shall be divided by a custom value. |
3030
### None {#None}
3131
```
3232
public static final int None
3333
```
3434

3535

36-
Values will dislayed as is.
36+
Values will be displayed as-is.
3737

3838
### Hundreds {#Hundreds}
3939
```
@@ -105,7 +105,7 @@ public static final int Trillions
105105
```
106106

107107

108-
Specifies the values on the chart shall be divided by 1,000,000,000.
108+
Specifies the values on the chart shall be divided by 1,000,000,000,000.
109109

110110
### CustomValue {#CustomValue}
111111
```
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: IAIWebClient
3+
second_title: Aspose.Slides for Java API Reference
4+
description: AI Web client interface.
5+
type: docs
6+
url: /com.aspose.slides/iaiwebclient/
7+
---```
8+
public interface IAIWebClient
9+
```
10+
11+
AI Web client interface. This interface enables to substitute different AI language models. Classes that implement this interface are supposed to be used along with
12+
## Methods
13+
14+
| Method | Description |
15+
| --- | --- |
16+
| [callChat(String instruction)](#callChat-java.lang.String-) | Sends a chat instruction to the AI model and returns response message. |
17+
### callChat(String instruction) {#callChat-java.lang.String-}
18+
```
19+
public abstract String callChat(String instruction)
20+
```
21+
22+
23+
Sends a chat instruction to the AI model and returns response message.
24+
25+
**Parameters:**
26+
| Parameter | Type | Description |
27+
| --- | --- | --- |
28+
| instruction | java.lang.String | The instruction or message to be processed by the AI model |
29+
30+
**Returns:**
31+
java.lang.String
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
title: OpenAIWebClient
3+
second_title: Aspose.Slides for Java API Reference
4+
description: Build-in lightweight OpenAI web client
5+
type: docs
6+
url: /com.aspose.slides/openaiwebclient/
7+
---
8+
**Inheritance:**
9+
java.lang.Object
10+
11+
**All Implemented Interfaces:**
12+
[com.aspose.slides.IAIWebClient](../../com.aspose.slides/iaiwebclient), java.io.Closeable
13+
```
14+
public class OpenAIWebClient implements IAIWebClient, Closeable
15+
```
16+
17+
Build-in lightweight OpenAI web client
18+
## Constructors
19+
20+
| Constructor | Description |
21+
| --- | --- |
22+
| [OpenAIWebClient(String model, String apiKey, String organizationId)](#OpenAIWebClient-java.lang.String-java.lang.String-java.lang.String-) | Creates instance of OpenAI Web client. |
23+
| [OpenAIWebClient(String model, String apiKey, String organizationId, HttpURLConnection httpClient)](#OpenAIWebClient-java.lang.String-java.lang.String-java.lang.String-java.net.HttpURLConnection-) | |
24+
## Methods
25+
26+
| Method | Description |
27+
| --- | --- |
28+
| [callChat(String instruction)](#callChat-java.lang.String-) | Sends a chat instruction to the AI model using an externally managed instance and returns response message to the given instruction. |
29+
| [close()](#close--) | |
30+
### OpenAIWebClient(String model, String apiKey, String organizationId) {#OpenAIWebClient-java.lang.String-java.lang.String-java.lang.String-}
31+
```
32+
public OpenAIWebClient(String model, String apiKey, String organizationId)
33+
```
34+
35+
36+
Creates instance of OpenAI Web client.
37+
38+
**Parameters:**
39+
| Parameter | Type | Description |
40+
| --- | --- | --- |
41+
| model | java.lang.String | OpenAI language model (gpt-4o, gpt-4o-mini, etc.) |
42+
| apiKey | java.lang.String | OpenAI API key |
43+
| organizationId | java.lang.String | Organization ID (optional) |
44+
45+
### OpenAIWebClient(String model, String apiKey, String organizationId, HttpURLConnection httpClient) {#OpenAIWebClient-java.lang.String-java.lang.String-java.lang.String-java.net.HttpURLConnection-}
46+
```
47+
public OpenAIWebClient(String model, String apiKey, String organizationId, HttpURLConnection httpClient)
48+
```
49+
50+
51+
**Parameters:**
52+
| Parameter | Type | Description |
53+
| --- | --- | --- |
54+
| model | java.lang.String | |
55+
| apiKey | java.lang.String | |
56+
| organizationId | java.lang.String | |
57+
| httpClient | java.net.HttpURLConnection | |
58+
59+
### callChat(String instruction) {#callChat-java.lang.String-}
60+
```
61+
public String callChat(String instruction)
62+
```
63+
64+
65+
Sends a chat instruction to the AI model using an externally managed instance and returns response message to the given instruction.
66+
67+
**Parameters:**
68+
| Parameter | Type | Description |
69+
| --- | --- | --- |
70+
| instruction | java.lang.String | The instruction or message to be processed by the AI model |
71+
72+
**Returns:**
73+
java.lang.String - The message generated by the AI model in response to the given instruction.
74+
### close() {#close--}
75+
```
76+
public void close()
77+
```
78+
79+
80+
81+
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: SlidesAIAgent
3+
second_title: Aspose.Slides for Java API Reference
4+
description: Provides AI-powered features for processing presentations.
5+
type: docs
6+
url: /com.aspose.slides/slidesaiagent/
7+
---
8+
**Inheritance:**
9+
java.lang.Object
10+
```
11+
public class SlidesAIAgent
12+
```
13+
14+
Provides AI-powered features for processing presentations.
15+
## Constructors
16+
17+
| Constructor | Description |
18+
| --- | --- |
19+
| [SlidesAIAgent(IAIWebClient aiClient)](#SlidesAIAgent-com.aspose.slides.IAIWebClient-) | SlidesAIAgent constructor |
20+
## Methods
21+
22+
| Method | Description |
23+
| --- | --- |
24+
| [translate(IPresentation presentation, String language)](#translate-com.aspose.slides.IPresentation-java.lang.String-) | Translates a presentation to the specified language using AI. |
25+
### SlidesAIAgent(IAIWebClient aiClient) {#SlidesAIAgent-com.aspose.slides.IAIWebClient-}
26+
```
27+
public SlidesAIAgent(IAIWebClient aiClient)
28+
```
29+
30+
31+
SlidesAIAgent constructor
32+
33+
**Parameters:**
34+
| Parameter | Type | Description |
35+
| --- | --- | --- |
36+
| aiClient | [IAIWebClient](../../com.aspose.slides/iaiwebclient) | |
37+
38+
### translate(IPresentation presentation, String language) {#translate-com.aspose.slides.IPresentation-java.lang.String-}
39+
```
40+
public void translate(IPresentation presentation, String language)
41+
```
42+
43+
44+
Translates a presentation to the specified language using AI.
45+
46+
**Parameters:**
47+
| Parameter | Type | Description |
48+
| --- | --- | --- |
49+
| presentation | [IPresentation](../../com.aspose.slides/ipresentation) | Target presentation |
50+
| language | java.lang.String | Target language |
51+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: SlidesAIAgentException
3+
second_title: Aspose.Slides for Java API Reference
4+
description: Represents Slides AI Agent related exceptions.
5+
type: docs
6+
url: /com.aspose.slides/slidesaiagentexception/
7+
---
8+
**Inheritance:**
9+
java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception
10+
```
11+
public class SlidesAIAgentException extends System.Exception
12+
```
13+
14+
Represents Slides AI Agent related exceptions.
15+
## Constructors
16+
17+
| Constructor | Description |
18+
| --- | --- |
19+
| [SlidesAIAgentException(String message)](#SlidesAIAgentException-java.lang.String-) | Constructor allowing a message to be added to this exception. |
20+
| [SlidesAIAgentException(String message, RuntimeException exception)](#SlidesAIAgentException-java.lang.String-java.lang.RuntimeException-) | Constructor for an exception containing a message and an embedded exception. |
21+
### SlidesAIAgentException(String message) {#SlidesAIAgentException-java.lang.String-}
22+
```
23+
public SlidesAIAgentException(String message)
24+
```
25+
26+
27+
Constructor allowing a message to be added to this exception.
28+
29+
**Parameters:**
30+
| Parameter | Type | Description |
31+
| --- | --- | --- |
32+
| message | java.lang.String | message |
33+
34+
### SlidesAIAgentException(String message, RuntimeException exception) {#SlidesAIAgentException-java.lang.String-java.lang.RuntimeException-}
35+
```
36+
public SlidesAIAgentException(String message, RuntimeException exception)
37+
```
38+
39+
40+
Constructor for an exception containing a message and an embedded exception.
41+
42+
**Parameters:**
43+
| Parameter | Type | Description |
44+
| --- | --- | --- |
45+
| message | java.lang.String | message |
46+
| exception | java.lang.RuntimeException | original exception |
47+

0 commit comments

Comments
 (0)