feat: 2025-11-25 review fixes (#201)
* fix: review fixes of the latest changes * fix: updated unit tests * chore: more conformance compliance improvements * chore: reverted protocol changes * chore: more compliance improvements * chore: more conformance compliance improvements * chore: improvements to the backcompat and updated to Tool unit tests * chore: ci update
This commit is contained in:
parent
6112a3995a
commit
973b46b8f7
1 changed files with 692 additions and 507 deletions
|
|
@ -133,7 +133,7 @@ struct CancellationTests {
|
|||
}
|
||||
|
||||
await server.withMethodHandler(CallTool.self) { params in
|
||||
return .init(content: [.text("Result for \(params.name)")], isError: false)
|
||||
return .init(content: [.text(text: "Result for \(params.name)", annotations: nil, _meta: nil)], isError: false)
|
||||
}
|
||||
|
||||
// Start server and connect client
|
||||
|
|
@ -149,7 +149,7 @@ struct CancellationTests {
|
|||
|
||||
// Get the result
|
||||
let result = try await context.value
|
||||
#expect(result.content == [.text("Result for testTool")])
|
||||
#expect(result.content == [.text(text: "Result for testTool", annotations: nil, _meta: nil)])
|
||||
#expect(result.isError == false)
|
||||
|
||||
await client.disconnect()
|
||||
|
|
@ -174,7 +174,7 @@ struct CancellationTests {
|
|||
|
||||
await server.withMethodHandler(CallTool.self) { params in
|
||||
try await Task.sleep(for: .seconds(5))
|
||||
return .init(content: [.text("Should not reach here")], isError: false)
|
||||
return .init(content: [.text(text: "Should not reach here", annotations: nil, _meta: nil)], isError: false)
|
||||
}
|
||||
|
||||
// Start server and connect client
|
||||
|
|
|
|||
Loading…
Reference in a new issue