Share via


HostedCodeInterpreterTool Class

Definition

Represents a hosted tool that can be specified to an AI service to enable it to execute code it generates.

public ref class HostedCodeInterpreterTool : Microsoft::Extensions::AI::AITool
public class HostedCodeInterpreterTool : Microsoft.Extensions.AI.AITool
type HostedCodeInterpreterTool = class
    inherit AITool
Public Class HostedCodeInterpreterTool
Inherits AITool
Inheritance
HostedCodeInterpreterTool

Remarks

This tool does not itself implement code interpretation. It is a marker that can be used to inform a service that the service is allowed to execute its generated code if the service is capable of doing so.

Constructors

HostedCodeInterpreterTool()

Initializes a new instance of the HostedCodeInterpreterTool class.

Properties

AdditionalProperties

Gets any additional properties associated with the tool.

(Inherited from AITool)
Description

Gets a description of the tool, suitable for use in describing the purpose to a model.

(Inherited from AITool)
Inputs

Gets or sets a collection of AIContent to be used as input to the code interpreter tool.

Name

Gets the name of the tool.

Methods

GetService(Type, Object)

Asks the AITool for an object of the specified type serviceType.

(Inherited from AITool)
GetService<TService>(Object)

Asks the AITool for an object of type TService.

(Inherited from AITool)
ToString()

Returns a string that represents the current object.

(Inherited from AITool)

Applies to