Class APIEndpointConfiguration
- Assembly
- FoundationaLLM.Common.dll
Provides the configuration for an API endpoint resource.
public class APIEndpointConfiguration : ResourceBase
- Inheritance
-
APIEndpointConfiguration
- Inherited Members
- Extension Methods
Constructors
APIEndpointConfiguration()
Creates a new instance of APIEndpointConfiguration.
public APIEndpointConfiguration()
Properties
APIVersion
The version to use when calling the API represented by the endpoint.
[JsonPropertyName("api_version")]
public string? APIVersion { get; set; }
Property Value
AuthenticationParameters
Dictionary with values used for authentication.
For the list of supported keys, see AuthenticationParametersKeys.
[JsonPropertyName("authentication_parameters")]
public Dictionary<string, object> AuthenticationParameters { get; set; }
Property Value
AuthenticationType
The type of authentication required for accessing the API.
[JsonPropertyName("authentication_type")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public required AuthenticationTypes AuthenticationType { get; set; }
Property Value
Category
The api endpoint category.
[JsonPropertyName("category")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public required APIEndpointCategory Category { get; set; }
Property Value
OperationType
Type of operation the endpoint is performing. This value should be completions or chat. Default value is chat.
[JsonPropertyName("operation_type")]
public string? OperationType { get; set; }
Property Value
Provider
The API endpoint provider.
For a list of available API endpoint providers, see APIEndpointProviders.
[JsonPropertyName("provider")]
public string? Provider { get; set; }
Property Value
RetryStrategyName
The name of the retry strategy.
[JsonPropertyName("retry_strategy_name")]
public required string RetryStrategyName { get; set; }
Property Value
StatusEndpoint
The relative path for the status endpoint of the API endpoint, if available.
[JsonPropertyName("status_endpoint")]
public string? StatusEndpoint { get; set; }
Property Value
Subcategory
The api endpoint subcategory.
[JsonPropertyName("subcategory")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public APIEndpointSubcategory? Subcategory { get; set; }
Property Value
TimeoutSeconds
The timeout duration in seconds for API calls.
[JsonPropertyName("timeout_seconds")]
public required int TimeoutSeconds { get; set; }
Property Value
Url
The base URL of the API endpoint.
[JsonPropertyName("url")]
public required string Url { get; set; }
Property Value
UrlExceptions
A list of URL exceptions.
[JsonPropertyName("url_exceptions")]
public List<UrlException> UrlExceptions { get; set; }