LaunchDarkly Dotnet Server AI SDK
Search Results for

    Show / Hide Table of Contents

    Class LdAiAgentConfigDefault.Builder

    Builder for constructing an LdAiAgentConfigDefault instance.

    Inheritance
    object
    LdAiAgentConfigDefault.Builder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: LaunchDarkly.Sdk.Server.Ai.Config
    Assembly: LaunchDarkly.ServerSdk.Ai.dll
    Syntax
    public class LdAiAgentConfigDefault.Builder

    Methods

    | Edit this page View Source

    Build()

    Builds the LdAiAgentConfigDefault instance.

    Declaration
    public LdAiAgentConfigDefault Build()
    Returns
    Type Description
    LdAiAgentConfigDefault

    a new LdAiAgentConfigDefault

    | Edit this page View Source

    Disable()

    Disables the config.

    Declaration
    public LdAiAgentConfigDefault.Builder Disable()
    Returns
    Type Description
    LdAiAgentConfigDefault.Builder

    the builder

    | Edit this page View Source

    Enable()

    Enables the config.

    Declaration
    public LdAiAgentConfigDefault.Builder Enable()
    Returns
    Type Description
    LdAiAgentConfigDefault.Builder

    the builder

    | Edit this page View Source

    SetCustomModelParam(string, LdValue)

    Sets a custom parameter for the model.

    Declaration
    public LdAiAgentConfigDefault.Builder SetCustomModelParam(string name, LdValue value)
    Parameters
    Type Name Description
    string name

    the custom parameter name

    LdValue value

    the custom parameter value

    Returns
    Type Description
    LdAiAgentConfigDefault.Builder

    the builder

    | Edit this page View Source

    SetEnabled(bool)

    Sets the enabled state of the config.

    Declaration
    public LdAiAgentConfigDefault.Builder SetEnabled(bool enabled)
    Parameters
    Type Name Description
    bool enabled

    whether the config is enabled

    Returns
    Type Description
    LdAiAgentConfigDefault.Builder

    the builder

    | Edit this page View Source

    SetInstructions(string)

    Sets the agent's system instructions. May contain Mustache templates.

    Declaration
    public LdAiAgentConfigDefault.Builder SetInstructions(string instructions)
    Parameters
    Type Name Description
    string instructions

    the instructions string

    Returns
    Type Description
    LdAiAgentConfigDefault.Builder

    the builder

    | Edit this page View Source

    SetJudgeConfiguration(JudgeConfiguration)

    Sets the judge configuration for this agent default.

    Declaration
    public LdAiAgentConfigDefault.Builder SetJudgeConfiguration(LdAiConfigTypes.JudgeConfiguration judgeConfiguration)
    Parameters
    Type Name Description
    LdAiConfigTypes.JudgeConfiguration judgeConfiguration

    the judge configuration

    Returns
    Type Description
    LdAiAgentConfigDefault.Builder

    the builder

    | Edit this page View Source

    SetModelName(string)

    Sets the model's name.

    Declaration
    public LdAiAgentConfigDefault.Builder SetModelName(string name)
    Parameters
    Type Name Description
    string name

    the model name

    Returns
    Type Description
    LdAiAgentConfigDefault.Builder

    the builder

    | Edit this page View Source

    SetModelParam(string, LdValue)

    Sets a parameter for the model.

    Declaration
    public LdAiAgentConfigDefault.Builder SetModelParam(string name, LdValue value)
    Parameters
    Type Name Description
    string name

    the parameter name

    LdValue value

    the parameter value

    Returns
    Type Description
    LdAiAgentConfigDefault.Builder

    the builder

    | Edit this page View Source

    SetModelProviderName(string)

    Sets the model provider's name.

    Declaration
    public LdAiAgentConfigDefault.Builder SetModelProviderName(string name)
    Parameters
    Type Name Description
    string name

    the provider name

    Returns
    Type Description
    LdAiAgentConfigDefault.Builder

    the builder

    Extension Methods

    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX