Class AgentTool
- Namespace
- FoundationaLLM.Common.Models.ResourceProviders.Agent
- Assembly
- FoundationaLLM.Common.dll
Prvides the settings for a tool that is registered with the agent.
public class AgentTool
- Inheritance
-
AgentTool
- Inherited Members
- Extension Methods
Properties
ClassName
Gets or sets the underlying class name of the tool.
[JsonPropertyName("class_name")]
public string? ClassName { get; set; }
Property Value
Description
Gets or sets the description of the tool.
[JsonPropertyName("description")]
public required string Description { get; set; }
Property Value
Name
Gets or sets the name of the tool.
[JsonPropertyName("name")]
public required string Name { get; set; }
Property Value
PackageName
Gets or sets the package name of the tool. For internal tools, this value will be FoundationaLLM For external tools, this value will be the name of the package.
[JsonPropertyName("package_name")]
public required string PackageName { get; set; }
Property Value
Properties
Gets or sets a dictionary of properties that are specific to the tool.
[JsonPropertyName("properties")]
public Dictionary<string, object>? Properties { get; set; }
Property Value
ResourceObjectIds
Gets or sets a dictionary of resource objects.
[JsonPropertyName("resource_object_ids")]
public Dictionary<string, ResourceObjectIdProperties> ResourceObjectIds { get; set; }
Property Value
Methods
TryGetPropertyValue<T>(string, out T?)
Tries to get the value of a property.
public bool TryGetPropertyValue<T>(string propertyName, out T? propertyValue)
Parameters
propertyName
stringThe name of the property being retrieved.
propertyValue
TThe resultig property value.
Returns
Type Parameters
T
The type of the property being retrieved.