with(...) | Set multiple parameters at once (messages, model, tools, toolChoice, responseFormat, options) |
withMessages(...) | Set the conversation messages |
withModel(...) | Override the model |
withMaxTokens(...) | Set maximum output tokens |
withTools(...) | Provide tool/function definitions |
withToolChoice(...) | Control tool selection behavior |
withResponseFormat(...) | Request structured output format |
withOptions(...) | Pass additional provider options (merged with existing) |
withStreaming(...) | Enable or disable streaming |
withCachedContext(...) | Set cached context (messages, tools, toolChoice, responseFormat) |
withRetryPolicy(...) | Configure retry behavior via InferenceRetryPolicy |
withResponseCachePolicy(...) | Control response caching via ResponseCachePolicy |
withRequest(...) | Set all parameters from an existing InferenceRequest |
withRuntime(...) | Swap the underlying runtime |