Record Class HostedTool.FileSearch
java.lang.Object
java.lang.Record
org.springframework.ai.openai.responses.HostedTool.FileSearch
- Record Components:
vectorStoreIds- the vector stores to search; at least one is requiredmaxNumResults- maximum number of results, ornullfor the provider default
- All Implemented Interfaces:
HostedTool
- Enclosing interface:
- HostedTool
public static record HostedTool.FileSearch(List<String> vectorStoreIds, @Nullable Integer maxNumResults)
extends Record
implements HostedTool
Search vector stores hosted at OpenAI.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.ai.openai.responses.HostedTool
HostedTool.CodeInterpreter, HostedTool.FileSearch, HostedTool.ImageGeneration, HostedTool.Mcp, HostedTool.Raw, HostedTool.WebSearch -
Constructor Summary
ConstructorsConstructorDescriptionFileSearch(List<String> vectorStoreIds, @Nullable Integer maxNumResults) Creates an instance of aFileSearchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable IntegerReturns the value of themaxNumResultsrecord component.static HostedTool.FileSearchfinal StringtoString()Returns a string representation of this record class.com.openai.models.responses.TooltoTool()Convert this tool to the SDK request representation.Returns the value of thevectorStoreIdsrecord component.
-
Constructor Details
-
FileSearch
Creates an instance of aFileSearchrecord class.- Parameters:
vectorStoreIds- the value for thevectorStoreIdsrecord componentmaxNumResults- the value for themaxNumResultsrecord component
-
-
Method Details
-
of
-
toTool
public com.openai.models.responses.Tool toTool()Description copied from interface:HostedToolConvert this tool to the SDK request representation.- Specified by:
toToolin interfaceHostedTool
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
vectorStoreIds
Returns the value of thevectorStoreIdsrecord component.- Returns:
- the value of the
vectorStoreIdsrecord component
-
maxNumResults
Returns the value of themaxNumResultsrecord component.- Returns:
- the value of the
maxNumResultsrecord component
-