CodeInterpreterTool Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A tool that runs Python code to help generate a response to a prompt.
public class CodeInterpreterTool : Azure.AI.AgentServer.Contracts.Generated.OpenAI.Tool, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterTool>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterTool>
type CodeInterpreterTool = class
inherit Tool
interface IUtf8JsonSerializable
interface IJsonModel<CodeInterpreterTool>
interface IPersistableModel<CodeInterpreterTool>
Public Class CodeInterpreterTool
Inherits Tool
Implements IJsonModel(Of CodeInterpreterTool), IPersistableModel(Of CodeInterpreterTool)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| CodeInterpreterTool() |
Initializes a new instance of CodeInterpreterTool for deserialization. |
| CodeInterpreterTool(BinaryData) |
Initializes a new instance of CodeInterpreterTool. |
| CodeInterpreterTool(ToolType, IDictionary<String,BinaryData>, BinaryData) |
Initializes a new instance of CodeInterpreterTool. |
Properties
| Name | Description |
|---|---|
| Container |
The code interpreter container. Can be a container ID or an object that specifies uploaded file IDs to make available to your code. To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). <remarks> Supported types: </remarks> Examples:
|
| Type |
Gets or sets the type. (Inherited from Tool) |
Methods
| Name | Description |
|---|---|
| DeserializeCodeInterpreterTool(JsonElement, ModelReaderWriterOptions) | |
| FromResponse(Response) |
Deserializes the model from a raw response. |
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
| ToRequestContent() |
Convert into a RequestContent. |