Update Client.listTools return type to include next cursor (#54)

This commit is contained in:
Mattt 2025-04-09 16:20:55 -07:00 • committed by GitHub
commit 20d4fe6f5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,9 +144,9 @@ struct RoundtripTests {
}
let listToolsTask = Task {
let result = try await client.listTools()
#expect(result.count == 1)
#expect(result[0].name == "add")
let (tools, _) = try await client.listTools()
#expect(tools.count == 1)
#expect(tools[0].name == "add")
}
let callToolTask = Task {