Table of Contents

Class SubmitToolOutputsRequest

Namespace
OpenAI.Threads
Assembly
OpenAI-DotNet.dll
public sealed class SubmitToolOutputsRequest
Inheritance
SubmitToolOutputsRequest
Inherited Members

Constructors

SubmitToolOutputsRequest(ToolOutput)

Tool output to be submitted.

public SubmitToolOutputsRequest(ToolOutput toolOutput)

Parameters

toolOutput ToolOutput

ToolOutput.

SubmitToolOutputsRequest(IEnumerable<ToolOutput>)

A list of tools for which the outputs are being submitted.

public SubmitToolOutputsRequest(IEnumerable<ToolOutput> toolOutputs)

Parameters

toolOutputs IEnumerable<ToolOutput>

Collection of tools for which the outputs are being submitted.

Properties

Stream

If true, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a data: [DONE] message.

[JsonPropertyName("stream")]
public bool Stream { get; }

Property Value

bool

ToolOutputs

A list of tools for which the outputs are being submitted.

[JsonPropertyName("tool_outputs")]
public IReadOnlyList<ToolOutput> ToolOutputs { get; }

Property Value

IReadOnlyList<ToolOutput>

Operators

implicit operator SubmitToolOutputsRequest(ToolOutput)

public static implicit operator SubmitToolOutputsRequest(ToolOutput toolOutput)

Parameters

toolOutput ToolOutput

Returns

SubmitToolOutputsRequest

implicit operator SubmitToolOutputsRequest(ToolOutput[])

public static implicit operator SubmitToolOutputsRequest(ToolOutput[] toolOutputs)

Parameters

toolOutputs ToolOutput[]

Returns

SubmitToolOutputsRequest

implicit operator SubmitToolOutputsRequest(List<ToolOutput>)

public static implicit operator SubmitToolOutputsRequest(List<ToolOutput> toolOutputs)

Parameters

toolOutputs List<ToolOutput>

Returns

SubmitToolOutputsRequest