public sealed class TrajectoryInOrderMatchSpec : IMessage<TrajectoryInOrderMatchSpec>, IEquatable<TrajectoryInOrderMatchSpec>, IDeepCloneable<TrajectoryInOrderMatchSpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class TrajectoryInOrderMatchSpec.
Spec for TrajectoryInOrderMatch metric - returns 1 if tool calls in the
reference trajectory appear in the predicted trajectory in the same order,
else 0.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eTrajectoryInOrderMatchSpec\u003c/code\u003e class is part of the Vertex AI v1beta1 API and is used to define a metric for evaluating the order of tool calls in predicted trajectories compared to reference trajectories.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities for message handling, equality comparisons, deep cloning, and buffer operations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTrajectoryInOrderMatchSpec\u003c/code\u003e inherits from the base \u003ccode\u003eobject\u003c/code\u003e class and includes constructors for creating new instances, either empty or by cloning an existing \u003ccode\u003eTrajectoryInOrderMatchSpec\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTrajectoryInOrderMatchSpec\u003c/code\u003e metric assigns a score of 1 if tool calls in the reference trajectory are found in the predicted trajectory in the same order, otherwise it assigns a score of 0.\u003c/p\u003e\n"],["\u003cp\u003eThe current latest version is 1.0.0-beta21, with documentation also available for version 1.0.0-beta20.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class TrajectoryInOrderMatchSpec (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.TrajectoryInOrderMatchSpec)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.TrajectoryInOrderMatchSpec) \n\n public sealed class TrajectoryInOrderMatchSpec : IMessage\u003cTrajectoryInOrderMatchSpec\u003e, IEquatable\u003cTrajectoryInOrderMatchSpec\u003e, IDeepCloneable\u003cTrajectoryInOrderMatchSpec\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class TrajectoryInOrderMatchSpec.\n\nSpec for TrajectoryInOrderMatch metric - returns 1 if tool calls in the\nreference trajectory appear in the predicted trajectory in the same order,\nelse 0. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TrajectoryInOrderMatchSpec \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TrajectoryInOrderMatchSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.TrajectoryInOrderMatchSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TrajectoryInOrderMatchSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.TrajectoryInOrderMatchSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TrajectoryInOrderMatchSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.TrajectoryInOrderMatchSpec), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### TrajectoryInOrderMatchSpec()\n\n public TrajectoryInOrderMatchSpec()\n\n### TrajectoryInOrderMatchSpec(TrajectoryInOrderMatchSpec)\n\n public TrajectoryInOrderMatchSpec(TrajectoryInOrderMatchSpec other)"]]