Skip to content

Commit

Permalink
test: Add AI studio tests (box/box-codegen#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build committed Feb 20, 2025
1 parent 98aee57 commit e90e759
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "c1e6fc8", "specHash": "f20ba3f", "version": "0.5.0" }
{ "engineHash": "8a9cc1d", "specHash": "f20ba3f", "version": "0.5.0" }
25 changes: 20 additions & 5 deletions docs/aistudio.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ This operation is performed by calling function `getAiAgents`.
See the endpoint docs at
[API Reference](https://developer.box.com/reference/get-ai-agents/).

*Currently we don't have an example for calling `getAiAgents` in integration tests*
<!-- sample get_ai_agents -->
```
client.getAiStudio().getAiAgents()
```

### Arguments

Expand All @@ -42,7 +45,10 @@ This operation is performed by calling function `createAiAgent`.
See the endpoint docs at
[API Reference](https://developer.box.com/reference/post-ai-agents/).

*Currently we don't have an example for calling `createAiAgent` in integration tests*
<!-- sample post_ai_agents -->
```
client.getAiStudio().createAiAgent(new CreateAiAgent.CreateAiAgentBuilder(agentName, "enabled").ask(new AiStudioAgentAsk("enabled", "desc1")).build())
```

### Arguments

Expand All @@ -68,7 +74,10 @@ This operation is performed by calling function `updateAiAgentById`.
See the endpoint docs at
[API Reference](https://developer.box.com/reference/put-ai-agents-id/).

*Currently we don't have an example for calling `updateAiAgentById` in integration tests*
<!-- sample put_ai_agents_id -->
```
client.getAiStudio().updateAiAgentById(createdAgent.getId(), new CreateAiAgent.CreateAiAgentBuilder(agentName, "enabled").ask(new AiStudioAgentAsk("disabled", "desc2")).build())
```

### Arguments

Expand Down Expand Up @@ -96,7 +105,10 @@ This operation is performed by calling function `getAiAgentById`.
See the endpoint docs at
[API Reference](https://developer.box.com/reference/get-ai-agents-id/).

*Currently we don't have an example for calling `getAiAgentById` in integration tests*
<!-- sample get_ai_agents_id -->
```
client.getAiStudio().getAiAgentById(createdAgent.getId(), new GetAiAgentByIdQueryParams.GetAiAgentByIdQueryParamsBuilder().fields(Arrays.asList("ask")).build())
```

### Arguments

Expand Down Expand Up @@ -124,7 +136,10 @@ This operation is performed by calling function `deleteAiAgentById`.
See the endpoint docs at
[API Reference](https://developer.box.com/reference/delete-ai-agents-id/).

*Currently we don't have an example for calling `deleteAiAgentById` in integration tests*
<!-- sample delete_ai_agents_id -->
```
client.getAiStudio().deleteAiAgentById(createdAgent.getId())
```

### Arguments

Expand Down

0 comments on commit e90e759

Please sign in to comment.