Share via


AgentToolboxes.UpdateToolbox Method

Definition

Overloads

Name Description
UpdateToolbox(String, BinaryContent, RequestOptions)

[Protocol Method] Update a toolbox to point to a specific version.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
UpdateToolbox(String, String, RequestOptions)

[Protocol Method] Update a toolbox to point to a specific version.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

UpdateToolbox(String, BinaryContent, RequestOptions)

Source:
AgentToolboxes.cs

[Protocol Method] Update a toolbox to point to a specific version.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.ClientResult UpdateToolbox(string name, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member UpdateToolbox : string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.UpdateToolbox : string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function UpdateToolbox (name As String, content As BinaryContent, Optional options As RequestOptions = Nothing) As ClientResult

Parameters

name
String

The name of the toolbox to update.

content
BinaryContent

The content to send as the body of the request.

options
RequestOptions

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

name or content is null.

name is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

UpdateToolbox(String, String, RequestOptions)

Source:
AgentToolboxes.cs

[Protocol Method] Update a toolbox to point to a specific version.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ToolboxRecord> UpdateToolbox(string toolboxName, string defaultVersion, System.ClientModel.Primitives.RequestOptions options = default);
abstract member UpdateToolbox : string * string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ToolboxRecord>
override this.UpdateToolbox : string * string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ToolboxRecord>
Public Overridable Function UpdateToolbox (toolboxName As String, defaultVersion As String, Optional options As RequestOptions = Nothing) As ClientResult(Of ToolboxRecord)

Parameters

toolboxName
String

The name of the toolbox to update.

defaultVersion
String

The new default version of a toolbox.

options
RequestOptions

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

toolboxName or defaultVersion is null.

toolboxName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to