Show / Hide Table of Contents

Class CohereTool

A definition of tool (function).

Inheritance
object
CohereTool
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.GenerativeaiinferenceService.Models
Assembly: OCI.DotNetSDK.Generativeaiinference.dll
Syntax
public class CohereTool

Properties

Description

Declaration
[Required(ErrorMessage = "Description is required.")]
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type Description
string

The description of what the tool does, the model uses the description to choose when and how to call the function.

Remarks

Required

Name

Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type Description
string

The name of the tool to be called. Valid names contain only the characters a-z, A-Z, 0-9, _ and must not begin with a digit.

Remarks

Required

ParameterDefinitions

Declaration
[JsonProperty(PropertyName = "parameterDefinitions")]
public Dictionary<string, CohereParameterDefinition> ParameterDefinitions { get; set; }
Property Value
Type Description
Dictionary<string, CohereParameterDefinition>

The input parameters of the tool.

In this article
Back to top