Uses of Class
com.azure.ai.agents.persistent.models.TruncationObject
Packages that use TruncationObject
Package
Description
Package containing the data models for Agents.
-
Uses of TruncationObject in com.azure.ai.agents.persistent.models
Methods in com.azure.ai.agents.persistent.models that return TruncationObjectModifier and TypeMethodDescriptionstatic TruncationObjectTruncationObject.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TruncationObject from the JsonReader.CreateRunOptions.getTruncationStrategy()Get the truncationStrategy property: The strategy to use for dropping messages as the context windows moves forward.CreateThreadAndRunOptions.getTruncationStrategy()Get the truncationStrategy property: The strategy to use for dropping messages as the context windows moves forward.ThreadRun.getTruncationStrategy()Get the truncationStrategy property: The strategy to use for dropping messages as the context windows moves forward.TruncationObject.setLastMessages(Integer lastMessages) Set the lastMessages property: The number of most recent messages from the thread when constructing the context for the run.Methods in com.azure.ai.agents.persistent.models with parameters of type TruncationObjectModifier and TypeMethodDescriptionCreateRunOptions.setTruncationStrategy(TruncationObject truncationStrategy) Set the truncationStrategy property: The strategy to use for dropping messages as the context windows moves forward.CreateThreadAndRunOptions.setTruncationStrategy(TruncationObject truncationStrategy) Set the truncationStrategy property: The strategy to use for dropping messages as the context windows moves forward.