AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class WebSearchTool

    Inheritance
    object
    AnthropicTool
    WebSearchTool
    Inherited Members
    AnthropicTool.CacheControl
    Namespace: Glitch9.AIDevKit.Anthropic
    Assembly: .dll
    Syntax
    public class WebSearchTool : AnthropicTool

    Properties

    AllowedDomains

    Optional. If provided, only these domains will be included in results. Cannot be used alongside blocked_domains.

    Declaration
    public List<string> AllowedDomains { get; set; }
    Property Value
    Type Description
    List<string>

    BlockedDomains

    Optional. If provided, these domains will never appear in results. Cannot be used alongside allowed_domains.

    Declaration
    public List<string> BlockedDomains { get; set; }
    Property Value
    Type Description
    List<string>

    MaxUses

    Optional. Maximum number of times the tool can be used in the API request.

    Required range: x > 0

    Declaration
    public int? MaxUses { get; set; }
    Property Value
    Type Description
    int?

    Name

    Required. Name of the tool.

    Declaration
    public override string Name { get; }
    Property Value
    Type Description
    string
    Overrides
    AnthropicTool.Name

    Type

    Required. The type of the tool.

    Declaration
    public override AnthropicTypes.ToolType Type { get; }
    Property Value
    Type Description
    AnthropicTypes.ToolType
    Overrides
    AnthropicTool.Type

    UserLocation

    Optional. Parameters for the user's location. Used to provide more relevant search results.

    Declaration
    public Location UserLocation { get; set; }
    Property Value
    Type Description
    Location
    In this article
    Back to top Generated by DocFX