Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.0.1

Tool lists include enabled MCP tools. Tool updates support webhook, HTTP, async and draft tools.

## 2.0.0

Brings the client in line with the public API (contract
Expand Down
2 changes: 1 addition & 1 deletion PUBLIC_API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3e9c6fa0a27454d8d5300c42e4215c475c3954b085dae9901f429d0c531e50f3
586bfa02914633c65d476bb70379c809ad332873be958cd41d5032882561a606
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ For Spring Boot applications, use the starter dependency for zero-configuration
<dependency>
<groupId>ai.gradient-labs</groupId>
<artifactId>gradient-labs-spring-boot-starter</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</dependency>
```

### Gradle

```gradle
implementation 'ai.gradient-labs:gradient-labs-spring-boot-starter:2.0.0'
implementation 'ai.gradient-labs:gradient-labs-spring-boot-starter:2.0.1'
```

### Configuration
Expand Down Expand Up @@ -95,14 +95,14 @@ For non-Spring applications, use the core client library:
<dependency>
<groupId>ai.gradient-labs</groupId>
<artifactId>gradient-labs-client</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</dependency>
```

### Gradle

```gradle
implementation 'ai.gradient-labs:gradient-labs-client:2.0.0'
implementation 'ai.gradient-labs:gradient-labs-client:2.0.1'
```

## Error Handling
Expand Down
2 changes: 1 addition & 1 deletion gradient-labs-client/examples/spring-boot-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<dependency>
<groupId>ai.gradient-labs</groupId>
<artifactId>gradient-labs-spring-boot-starter</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</dependency>

<!-- Spring Boot Web -->
Expand Down
2 changes: 1 addition & 1 deletion gradient-labs-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>ai.gradient-labs</groupId>
<artifactId>gradient-labs-parent</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<artifactId>gradient-labs-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public void batchCreateCustomerMemoriesV2(String customerId, BatchCreateCustomer
// ==================== Tool Operations ====================

/**
* Lists all tools.
* Lists company tools and enabled MCP tools. Interactive tools are omitted.
*
* @return list of tools
* @throws GradientLabsException if the request fails
Expand All @@ -402,7 +402,7 @@ public Tool createTool(CreateToolRequest request) {
}

/**
* Retrieves a tool by ID.
* Retrieves a tool by ID. Enabled MCP tools can be read by ID. Interactive tools return 404.
*
* @param toolId the tool ID
* @return the tool
Expand All @@ -428,7 +428,8 @@ public Tool readTool(String toolId, Long version) {
}

/**
* Updates a tool.
* Updates a webhook, HTTP, async or draft tool.
* Only draft tools can change kind. Edit repository-managed tools in their files.
*
* @param toolId the tool ID
* @param request the update parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,14 @@ void deleteHandOffTargetSendsTheIdAsAQueryParameter() {
assertEquals("", http.lastBody());
}

@Test
void listToolsReturnsEnabledMcpTool() {
http.respond(200, "{\"tools\":[{\"id\":\"tool_1\",\"name\":\"lookup\",\"description\":\"Look up an order\",\"parameters\":[],\"mcp\":{\"server_id\":\"mcpserver_1\",\"external_tool_name\":\"lookup_order\"}}]}");
Tool tool = client.listTools().get(0);
assertEquals("mcpserver_1", tool.getMcp().getServerId());
assertEquals("lookup_order", tool.getMcp().getExternalToolName());
}

@Test
void listToolsAndSubstitutionsReadTheWrappedLists() {
http.respond(200, "{\"tools\":[{\"id\":\"t1\",\"name\":\"Lookup\",\"parameters\":[{\"name\":\"order_id\","
Expand Down
4 changes: 2 additions & 2 deletions gradient-labs-spring-boot-starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ This starter provides zero-configuration setup for Spring Boot applications usin
<dependency>
<groupId>ai.gradient-labs</groupId>
<artifactId>gradient-labs-spring-boot-starter</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</dependency>
```

### Gradle

```gradle
implementation 'ai.gradient-labs:gradient-labs-spring-boot-starter:2.0.0'
implementation 'ai.gradient-labs:gradient-labs-spring-boot-starter:2.0.1'
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion gradient-labs-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>ai.gradient-labs</groupId>
<artifactId>gradient-labs-parent</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<artifactId>gradient-labs-spring-boot-starter</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>ai.gradient-labs</groupId>
<artifactId>gradient-labs-parent</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
<packaging>pom</packaging>

<name>Gradient Labs Java SDK</name>
Expand Down
Loading