Package org.springframework.ai.model
package org.springframework.ai.model
Provides a set of interfaces and classes for a generic API designed to interact with
various AI models. This package includes interfaces for handling AI model calls,
requests, responses, results, and associated metadata. It is designed to offer a
flexible and adaptable framework for interacting with different types of AI models,
abstracting the complexities involved in model invocation and result processing. The
use of generics enhances the API's capability to work with a wide range of models,
ensuring a broad applicability across diverse AI scenarios.
-
ClassDescriptionThe ModelClient interface provides a generic API for invoking AI models.Interface representing the customizable options for AI model interactions.Utility class for manipulating
ModelOptions
objects.ModelRequest<T>Interface representing a request to an AI model.ModelResponse<T extends ModelResult<?>>Interface representing the response received from an AI model.ModelResult<T>This interface provides methods to access the main output of the AI model and the metadata associated with this result.Interface representing metadata associated with an AI model's response.Interface representing metadata associated with the results of an AI model.The StreamingModelClient interface provides a generic API for invoking a AI models with streaming response.