Search Results for

    Show / Hide Table of Contents

    Class CodeInterpreterOutput

    A tool call to run code.

    Inheritance
    object
    ConversationItem
    ToolOutput
    CodeInterpreterOutput
    Implements
    IPrompt
    IValidatable
    IHasId<string>
    Inherited Members
    ToolOutput.Index
    ToolOutput.CallId
    ToolOutput.Status
    ConversationItem.Id
    ConversationItem.Type
    ConversationItem.GetPromptText()
    ConversationItem.IsValid()
    ConversationItem.Validate()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public class CodeInterpreterOutput : ToolOutput, IPrompt, IValidatable, IHasId<string>

    Constructors

    | Edit this page View Source

    CodeInterpreterOutput()

    Declaration
    public CodeInterpreterOutput()

    Properties

    | Edit this page View Source

    Code

    Required. The code to run, or null if not available.

    Declaration
    [JsonProperty("code")]
    public string Code { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ContainerId

    Required. The ID of the container used to run the code.

    Declaration
    [JsonProperty("container_id")]
    public string ContainerId { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Outputs

    Required. The outputs generated by the code interpreter, such as logs or images. Can be null if no outputs are available.

    Declaration
    [JsonProperty("outputs")]
    public List<CodeInterpreterResult> Outputs { get; set; }
    Property Value
    Type Description
    List<CodeInterpreterResult>

    Implements

    IPrompt
    IValidatable
    IHasId<TId>

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    UnifiedApiCallerExtensions.GENResponse(ConversationItem)
    CoreLibTypeExtensions.GetIdOrNull(IHasId<string>)
    CoreLibTypeExtensions.IsNullOrEmptyId(IHasId<string>)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation