Skip to content

Commit

Permalink
Auto resolve conflict by keeping our changes
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build committed Feb 20, 2025
2 parents b789908 + f991efd commit 9e0440d
Show file tree
Hide file tree
Showing 40 changed files with 3,413 additions and 26 deletions.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ General explanations of the available functionality and examples of how to use
the SDK are available by topic:

* [Ai](ai.md)
* [Aistudio](aistudio.md)
* [Appitemassociations](appitemassociations.md)
* [Authorization](authorization.md)
* [Avatars](avatars.md)
Expand Down
158 changes: 158 additions & 0 deletions docs/aistudio.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
# AiStudioManager


- [List AI agents](#list-ai-agents)
- [Create AI agent](#create-ai-agent)
- [Update AI agent](#update-ai-agent)
- [Get AI agent by agent ID](#get-ai-agent-by-agent-id)
- [Delete AI agent](#delete-ai-agent)

## List AI agents

Lists AI agents based on the provided parameters.

This operation is performed by calling function `getAiAgents`.

See the endpoint docs at
[API Reference](https://developer.box.com/reference/get-ai-agents/).

<!-- sample get_ai_agents -->
```
client.getAiStudio().getAiAgents()
```

### Arguments

- queryParams `GetAiAgentsQueryParams`
- Query parameters of getAiAgents method
- headers `GetAiAgentsHeaders`
- Headers of getAiAgents method


### Returns

This function returns a value of type `AiMultipleAgentResponse`.

A successful response including the agents list.


## Create AI agent

Creates an AI agent. At least one of the following capabilities must be provided: `ask`, `text_gen`, `extract`.

This operation is performed by calling function `createAiAgent`.

See the endpoint docs at
[API Reference](https://developer.box.com/reference/post-ai-agents/).

<!-- sample post_ai_agents -->
```
client.getAiStudio().createAiAgent(new CreateAiAgent.CreateAiAgentBuilder(agentName, "enabled").ask(new AiStudioAgentAsk("enabled", "desc1")).build())
```

### Arguments

- requestBody `CreateAiAgent`
- Request body of createAiAgent method
- headers `CreateAiAgentHeaders`
- Headers of createAiAgent method


### Returns

This function returns a value of type `AiSingleAgentResponseFull`.

Definition of created AI agent.


## Update AI agent

Updates an AI agent.

This operation is performed by calling function `updateAiAgentById`.

See the endpoint docs at
[API Reference](https://developer.box.com/reference/put-ai-agents-id/).

<!-- sample put_ai_agents_id -->
```
client.getAiStudio().updateAiAgentById(createdAgent.getId(), new CreateAiAgent.CreateAiAgentBuilder(agentName, "enabled").ask(new AiStudioAgentAsk("disabled", "desc2")).build())
```

### Arguments

- agentId `String`
- The ID of the agent to update. Example: "1234"
- requestBody `CreateAiAgent`
- Request body of updateAiAgentById method
- headers `UpdateAiAgentByIdHeaders`
- Headers of updateAiAgentById method


### Returns

This function returns a value of type `AiSingleAgentResponseFull`.

Definition of created AI agent.


## Get AI agent by agent ID

Gets an AI Agent using the `agent_id` parameter.

This operation is performed by calling function `getAiAgentById`.

See the endpoint docs at
[API Reference](https://developer.box.com/reference/get-ai-agents-id/).

<!-- sample get_ai_agents_id -->
```
client.getAiStudio().getAiAgentById(createdAgent.getId(), new GetAiAgentByIdQueryParams.GetAiAgentByIdQueryParamsBuilder().fields(Arrays.asList("ask")).build())
```

### Arguments

- agentId `String`
- The agent id to get. Example: "1234"
- queryParams `GetAiAgentByIdQueryParams`
- Query parameters of getAiAgentById method
- headers `GetAiAgentByIdHeaders`
- Headers of getAiAgentById method


### Returns

This function returns a value of type `AiSingleAgentResponseFull`.

A successful response including the agent.


## Delete AI agent

Deletes an AI agent using the provided parameters.

This operation is performed by calling function `deleteAiAgentById`.

See the endpoint docs at
[API Reference](https://developer.box.com/reference/delete-ai-agents-id/).

<!-- sample delete_ai_agents_id -->
```
client.getAiStudio().deleteAiAgentById(createdAgent.getId())
```

### Arguments

- agentId `String`
- The ID of the agent to delete. Example: "1234"
- headers `DeleteAiAgentByIdHeaders`
- Headers of deleteAiAgentById method


### Returns

This function returns a value of type `void`.

A successful response with no content.


8 changes: 4 additions & 4 deletions docs/docgen.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

- [Get Box Doc Gen job by ID](#get-box-doc-gen-job-by-id)
- [List all Box Doc Gen jobs](#list-all-box-doc-gen-jobs)
- [Get Box Doc Gen jobs in a batch with a specific ID](#get-box-doc-gen-jobs-in-a-batch-with-a-specific-id)
- [Generate document using a Box Doc Gen template](#generate-document-using-a-box-doc-gen-template)
- [Get Box Doc Gen jobs by batch ID](#get-box-doc-gen-jobs-by-batch-id)
- [Generate document using Box Doc Gen template](#generate-document-using-box-doc-gen-template)

## Get Box Doc Gen job by ID

Expand Down Expand Up @@ -64,7 +64,7 @@ This function returns a value of type `DocGenJobsFullV2025R0`.
A list of Box Doc Gen jobs.


## Get Box Doc Gen jobs in a batch with a specific ID
## Get Box Doc Gen jobs by batch ID

Lists Box Doc Gen jobs in a batch

Expand Down Expand Up @@ -95,7 +95,7 @@ This function returns a value of type `DocGenJobsV2025R0`.
Returns a list of Box Doc Gen jobs in a Box Doc Gen batch.


## Generate document using a Box Doc Gen template
## Generate document using Box Doc Gen template

Generates a document using a Box Doc Gen template.

Expand Down
4 changes: 2 additions & 2 deletions docs/docgentemplate.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# DocgenTemplateManager


- [Create a Box Doc Gen template](#create-a-box-doc-gen-template)
- [Create Box Doc Gen template](#create-box-doc-gen-template)
- [List Box Doc Gen templates](#list-box-doc-gen-templates)
- [Delete Box Doc Gen template](#delete-box-doc-gen-template)
- [Get Box Doc Gen template by ID](#get-box-doc-gen-template-by-id)
- [List all Box Doc Gen template tags in template](#list-all-box-doc-gen-template-tags-in-template)
- [Get list of all Box Doc Gen jobs for template](#get-list-of-all-box-doc-gen-jobs-for-template)

## Create a Box Doc Gen template
## Create Box Doc Gen template

Marks a file as a Box Doc Gen template.

Expand Down
17 changes: 17 additions & 0 deletions src/main/java/com/box/sdkgen/client/BoxClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;

import com.box.sdkgen.managers.ai.AiManager;
import com.box.sdkgen.managers.aistudio.AiStudioManager;
import com.box.sdkgen.managers.appitemassociations.AppItemAssociationsManager;
import com.box.sdkgen.managers.authorization.AuthorizationManager;
import com.box.sdkgen.managers.avatars.AvatarsManager;
Expand Down Expand Up @@ -231,6 +232,8 @@ public class BoxClient {

public final AiManager ai;

public final AiStudioManager aiStudio;

public final DocgenTemplateManager docgenTemplate;

public final DocgenManager docgen;
Expand Down Expand Up @@ -592,6 +595,11 @@ public BoxClient(Authentication auth) {
.auth(this.auth)
.networkSession(this.networkSession)
.build();
this.aiStudio =
new AiStudioManager.AiStudioManagerBuilder()
.auth(this.auth)
.networkSession(this.networkSession)
.build();
this.docgenTemplate =
new DocgenTemplateManager.DocgenTemplateManagerBuilder()
.auth(this.auth)
Expand Down Expand Up @@ -960,6 +968,11 @@ protected BoxClient(BoxClientBuilder builder) {
.auth(this.auth)
.networkSession(this.networkSession)
.build();
this.aiStudio =
new AiStudioManager.AiStudioManagerBuilder()
.auth(this.auth)
.networkSession(this.networkSession)
.build();
this.docgenTemplate =
new DocgenTemplateManager.DocgenTemplateManagerBuilder()
.auth(this.auth)
Expand Down Expand Up @@ -1319,6 +1332,10 @@ public AiManager getAi() {
return ai;
}

public AiStudioManager getAiStudio() {
return aiStudio;
}

public DocgenTemplateManager getDocgenTemplate() {
return docgenTemplate;
}
Expand Down
Loading

0 comments on commit 9e0440d

Please sign in to comment.