Turn on the AOT analyzer. (#92)
* Turn on the AOT analyzer. * Address feedback * Add missing types. * Fix build and react to conflicts. * Fix failing test. * Address feedback.
This commit is contained in:
parent
c0e1d0dd9a
commit
e7fa6194f6
1 changed files with 522 additions and 68 deletions
|
|
@ -603,7 +603,7 @@ public class McpServerTests
|
|||
supportsSampling ? new ClientCapabilities { Sampling = new SamplingCapability() } :
|
||||
null;
|
||||
|
||||
public async Task<T> SendRequestAsync<T>(JsonRpcRequest request, CancellationToken cancellationToken) where T : class
|
||||
public Task<T> SendRequestAsync<T>(JsonRpcRequest request, CancellationToken cancellationToken) where T : class
|
||||
{
|
||||
CreateMessageRequestParams rp = Assert.IsType<CreateMessageRequestParams>(request.Params);
|
||||
|
||||
|
|
@ -627,7 +627,7 @@ public class McpServerTests
|
|||
Role = "assistant",
|
||||
StopReason = "endTurn",
|
||||
};
|
||||
return (T)(object)result;
|
||||
return Task.FromResult((T)(object)result);
|
||||
}
|
||||
|
||||
public ValueTask DisposeAsync() => default;
|
||||
|
|
|
|||
Loading…
Reference in a new issue