
#nullable enable

namespace Cohere
{
    /// <summary>
    /// 
    /// </summary>
    public sealed partial class ToolResult
    {
        /// <summary>
        /// Contains the tool calls generated by the model. Use it to invoke your tools.
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("call")]
        [global::System.Text.Json.Serialization.JsonRequired]
        public required global::Cohere.ToolCall Call { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("outputs")]
        [global::System.Text.Json.Serialization.JsonRequired]
        public required global::System.Collections.Generic.IList<object> Outputs { get; set; }

        /// <summary>
        /// Additional properties that are not explicitly defined in the schema
        /// </summary>
        [global::System.Text.Json.Serialization.JsonExtensionData]
        public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

        /// <summary>
        /// Initializes a new instance of the <see cref="ToolResult" /> class.
        /// </summary>
        /// <param name="call">
        /// Contains the tool calls generated by the model. Use it to invoke your tools.
        /// </param>
        /// <param name="outputs"></param>
        [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
        public ToolResult(
            global::Cohere.ToolCall call,
            global::System.Collections.Generic.IList<object> outputs)
        {
            this.Call = call ?? throw new global::System.ArgumentNullException(nameof(call));
            this.Outputs = outputs ?? throw new global::System.ArgumentNullException(nameof(outputs));
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ToolResult" /> class.
        /// </summary>
        public ToolResult()
        {
        }
    }
}