Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope
public static Command Create(string? commandName = null)
{
var command = new Command(commandName ?? @"create-decision", @"Create a decision
Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.
Use this endpoint to ask classification or scoring questions about the same input. You’ll get the answers back in the order you asked the questions.

Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.
For text, you can pass a string. You can also send user messages containing `input_text` and `input_image` parts, with up to 128 images per request. Images must be data URLs; external URLs and file IDs aren’t accepted. Other message roles, function calls, files, audio, and item references aren’t supported.

Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed.");
Sometimes a question returns a refusal instead of an answer. The result has type `refusal` and includes the question’s name, or `null` if you didn’t give it one.");
command.Options.Add(Model);
command.Options.Add(InputOption);
command.Options.Add(Questions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ partial void ProcessCreateDecisionResponseContent(

/// <summary>
/// Create a decision<br/>
/// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.<br/>
/// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.<br/>
/// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed.
/// Use this endpoint to ask classification or scoring questions about the same input. You’ll get the answers back in the order you asked the questions.<br/>
/// For text, you can pass a string. You can also send user messages containing `input_text` and `input_image` parts, with up to 128 images per request. Images must be data URLs; external URLs and file IDs aren’t accepted. Other message roles, function calls, files, audio, and item references aren’t supported.<br/>
/// Sometimes a question returns a refusal instead of an answer. The result has type `refusal` and includes the question’s name, or `null` if you didn’t give it one.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -68,9 +68,9 @@ partial void ProcessCreateDecisionResponseContent(
}
/// <summary>
/// Create a decision<br/>
/// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.<br/>
/// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.<br/>
/// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed.
/// Use this endpoint to ask classification or scoring questions about the same input. You’ll get the answers back in the order you asked the questions.<br/>
/// For text, you can pass a string. You can also send user messages containing `input_text` and `input_image` parts, with up to 128 images per request. Images must be data URLs; external URLs and file IDs aren’t accepted. Other message roles, function calls, files, audio, and item references aren’t supported.<br/>
/// Sometimes a question returns a refusal instead of an answer. The result has type `refusal` and includes the question’s name, or `null` if you didn’t give it one.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand Down Expand Up @@ -439,9 +439,9 @@ partial void ProcessCreateDecisionResponseContent(
}
/// <summary>
/// Create a decision<br/>
/// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.<br/>
/// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.<br/>
/// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed.
/// Use this endpoint to ask classification or scoring questions about the same input. You’ll get the answers back in the order you asked the questions.<br/>
/// For text, you can pass a string. You can also send user messages containing `input_text` and `input_image` parts, with up to 128 images per request. Images must be data URLs; external URLs and file IDs aren’t accepted. Other message roles, function calls, files, audio, and item references aren’t supported.<br/>
/// Sometimes a question returns a refusal instead of an answer. The result has type `refusal` and includes the question’s name, or `null` if you didn’t give it one.
/// </summary>
/// <param name="model"></param>
/// <param name="input">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ public partial interface IDecisionsClient
{
/// <summary>
/// Create a decision<br/>
/// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.<br/>
/// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.<br/>
/// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed.
/// Use this endpoint to ask classification or scoring questions about the same input. You’ll get the answers back in the order you asked the questions.<br/>
/// For text, you can pass a string. You can also send user messages containing `input_text` and `input_image` parts, with up to 128 images per request. Images must be data URLs; external URLs and file IDs aren’t accepted. Other message roles, function calls, files, audio, and item references aren’t supported.<br/>
/// Sometimes a question returns a refusal instead of an answer. The result has type `refusal` and includes the question’s name, or `null` if you didn’t give it one.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -21,9 +21,9 @@ public partial interface IDecisionsClient
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create a decision<br/>
/// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.<br/>
/// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.<br/>
/// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed.
/// Use this endpoint to ask classification or scoring questions about the same input. You’ll get the answers back in the order you asked the questions.<br/>
/// For text, you can pass a string. You can also send user messages containing `input_text` and `input_image` parts, with up to 128 images per request. Images must be data URLs; external URLs and file IDs aren’t accepted. Other message roles, function calls, files, audio, and item references aren’t supported.<br/>
/// Sometimes a question returns a refusal instead of an answer. The result has type `refusal` and includes the question’s name, or `null` if you didn’t give it one.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -36,9 +36,9 @@ public partial interface IDecisionsClient
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create a decision<br/>
/// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.<br/>
/// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.<br/>
/// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed.
/// Use this endpoint to ask classification or scoring questions about the same input. You’ll get the answers back in the order you asked the questions.<br/>
/// For text, you can pass a string. You can also send user messages containing `input_text` and `input_image` parts, with up to 128 images per request. Images must be data URLs; external URLs and file IDs aren’t accepted. Other message roles, function calls, files, audio, and item references aren’t supported.<br/>
/// Sometimes a question returns a refusal instead of an answer. The result has type `refusal` and includes the question’s name, or `null` if you didn’t give it one.
/// </summary>
/// <param name="model"></param>
/// <param name="input">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public sealed partial class QuestionParamChoice
public required string Instructions { get; set; }

/// <summary>
///
/// Provide between 2 and 255 choices. Each choice must be unique.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("choices")]
[global::System.Text.Json.Serialization.JsonRequired]
Expand All @@ -47,7 +47,9 @@ public sealed partial class QuestionParamChoice
/// Initializes a new instance of the <see cref="QuestionParamChoice" /> class.
/// </summary>
/// <param name="instructions"></param>
/// <param name="choices"></param>
/// <param name="choices">
/// Provide between 2 and 255 choices. Each choice must be unique.
/// </param>
/// <param name="name"></param>
/// <param name="type">
/// The type of the object. Always `choice`.<br/>
Expand Down
22 changes: 12 additions & 10 deletions src/libs/tryAGI.OpenAI/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32262,20 +32262,21 @@ paths:
operationId: createDecision
summary: Create a decision
description: >-
Evaluate ordered classification and scoring questions against shared
input. Answers are returned in question order.
Use this endpoint to ask classification or scoring questions about the
same input. You’ll get the answers back in the order you asked the
questions.


Supply input as a string or user messages containing text and inline
images. Only user messages with `input_text` and `input_image` parts are
supported; non-user roles, function calls, files, audio, and item
references are not supported. Images require a data URL, not an external
URL or file ID. At most 128 images are allowed across the request.
For text, you can pass a string. You can also send user messages
containing `input_text` and `input_image` parts, with up to 128 images
per request. Images must be data URLs; external URLs and file IDs aren’t
accepted. Other message roles, function calls, files, audio, and item
references aren’t supported.


Each question can return a refusal instead of a scored answer. A refusal
has type `refusal` and the corresponding question name, or null if
unnamed.
Sometimes a question returns a refusal instead of an answer. The result
has type `refusal` and includes the question’s name, or `null` if you
didn’t give it one.
tags:
- Decisions
requestBody:
Expand Down Expand Up @@ -89235,6 +89236,7 @@ components:
$ref: "#/components/schemas/ChoiceOptionParam"
minItems: 2
maxItems: 255
description: Provide between 2 and 255 choices. Each choice must be unique.
required:
- type
- instructions
Expand Down
Loading