Class SamplingRequestImpl
java.lang.Object
io.quarkiverse.mcp.server.runtime.SamplingRequestImpl
- All Implemented Interfaces:
- SamplingRequest
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.quarkiverse.mcp.server.SamplingRequestSamplingRequest.Builder, SamplingRequest.IncludeContext
- 
Method SummaryModifier and TypeMethodDescriptionlongmessages()metadata()io.smallrye.mutiny.Uni<SamplingResponse>send()Send a message to the client.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkiverse.mcp.server.SamplingRequestsendAndAwait
- 
Method Details- 
maxTokenspublic long maxTokens()- Specified by:
- maxTokensin interface- SamplingRequest
- Returns:
- the maximum number of tokens to sample
 
- 
messages- Specified by:
- messagesin interface- SamplingRequest
- Returns:
- the sampling messages (not null)
 
- 
stopSequences- Specified by:
- stopSequencesin interface- SamplingRequest
- Returns:
- the stop sequences
 
- 
systemPrompt- Specified by:
- systemPromptin interface- SamplingRequest
- Returns:
- the system prompt the server wants to use for sampling
 
- 
temperature- Specified by:
- temperaturein interface- SamplingRequest
- Returns:
- the temperature
 
- 
includeContext- Specified by:
- includeContextin interface- SamplingRequest
- Returns:
- the request to include the context
 
- 
modelPreferences- Specified by:
- modelPreferencesin interface- SamplingRequest
- Returns:
- the model preferences
 
- 
metadata- Specified by:
- metadatain interface- SamplingRequest
- Returns:
- the optional metadata
 
- 
sendDescription copied from interface:SamplingRequestSend a message to the client.If the client does not respond before the timeout expires then the returned Unifails withTimeoutException. The default timeout is configured with thequarkus.mcp.server.sampling.default-timeoutconfig property.- Specified by:
- sendin interface- SamplingRequest
- Returns:
- a new Unithat completes with aSamplingResponse
 
 
-