Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
984 lines (729 loc) · 72.2 KB

File metadata and controls

984 lines (729 loc) · 72.2 KB

Shared Types

from gradient.types import (
    Action,
    ActionLink,
    APILinks,
    APIMeta,
    BackwardLinks,
    ChatCompletionChunk,
    ChatCompletionTokenLogprob,
    CompletionUsage,
    DiskInfo,
    Droplet,
    DropletNextBackupWindow,
    FirewallRuleTarget,
    ForwardLinks,
    GarbageCollection,
    GPUInfo,
    Image,
    ImageGenCompletedEvent,
    ImageGenPartialImageEvent,
    ImageGenStreamEvent,
    Kernel,
    MetaProperties,
    NetworkV4,
    NetworkV6,
    PageLinks,
    Region,
    Size,
    Snapshots,
    Subscription,
    SubscriptionTierBase,
    VpcPeering,
)

Agents

Types:

from gradient.types import (
    APIAgent,
    APIAgentAPIKeyInfo,
    APIAgentModel,
    APIAnthropicAPIKeyInfo,
    APIDeploymentVisibility,
    APIOpenAIAPIKeyInfo,
    APIRetrievalMethod,
    APIWorkspace,
    AgentCreateResponse,
    AgentRetrieveResponse,
    AgentUpdateResponse,
    AgentListResponse,
    AgentDeleteResponse,
    AgentRetrieveUsageResponse,
    AgentUpdateStatusResponse,
)

Methods:

APIKeys

Types:

from gradient.types.agents import (
    APIKeyCreateResponse,
    APIKeyUpdateResponse,
    APIKeyListResponse,
    APIKeyDeleteResponse,
    APIKeyRegenerateResponse,
)

Methods:

Chat

Completions

Types:

from gradient.types.agents.chat import CompletionCreateResponse

Methods:

EvaluationMetrics

Types:

from gradient.types.agents import EvaluationMetricListResponse, EvaluationMetricListRegionsResponse

Methods:

Workspaces

Types:

from gradient.types.agents.evaluation_metrics import (
    WorkspaceCreateResponse,
    WorkspaceRetrieveResponse,
    WorkspaceUpdateResponse,
    WorkspaceListResponse,
    WorkspaceDeleteResponse,
    WorkspaceListEvaluationTestCasesResponse,
)

Methods:

Agents

Types:

from gradient.types.agents.evaluation_metrics.workspaces import AgentListResponse, AgentMoveResponse

Methods:

Models

Types:

from gradient.types.agents.evaluation_metrics import ModelListResponse

Methods:

Anthropic

Keys

Types:

from gradient.types.agents.evaluation_metrics.anthropic import (
    KeyCreateResponse,
    KeyRetrieveResponse,
    KeyUpdateResponse,
    KeyListResponse,
    KeyDeleteResponse,
    KeyListAgentsResponse,
)

Methods:

OpenAI

Keys

Types:

from gradient.types.agents.evaluation_metrics.openai import (
    KeyCreateResponse,
    KeyRetrieveResponse,
    KeyUpdateResponse,
    KeyListResponse,
    KeyDeleteResponse,
    KeyListAgentsResponse,
)

Methods:

Oauth2

Types:

from gradient.types.agents.evaluation_metrics import Oauth2GenerateURLResponse

Methods:

Dropbox

Types:

from gradient.types.agents.evaluation_metrics.oauth2 import DropboxCreateTokensResponse

Methods:

EvaluationRuns

Types:

from gradient.types.agents import (
    APIEvaluationMetric,
    APIEvaluationMetricResult,
    APIEvaluationPrompt,
    APIEvaluationRun,
    EvaluationRunCreateResponse,
    EvaluationRunRetrieveResponse,
    EvaluationRunListResultsResponse,
    EvaluationRunRetrieveResultsResponse,
)

Methods:

EvaluationTestCases

Types:

from gradient.types.agents import (
    APIEvaluationTestCase,
    APIStarMetric,
    EvaluationTestCaseCreateResponse,
    EvaluationTestCaseRetrieveResponse,
    EvaluationTestCaseUpdateResponse,
    EvaluationTestCaseListResponse,
    EvaluationTestCaseListEvaluationRunsResponse,
)

Methods:

EvaluationDatasets

Types:

from gradient.types.agents import (
    EvaluationDatasetCreateResponse,
    EvaluationDatasetCreateFileUploadPresignedURLsResponse,
)

Methods:

Functions

Types:

from gradient.types.agents import (
    FunctionCreateResponse,
    FunctionUpdateResponse,
    FunctionDeleteResponse,
)

Methods:

Versions

Types:

from gradient.types.agents import VersionUpdateResponse, VersionListResponse

Methods:

KnowledgeBases

Types:

from gradient.types.agents import APILinkKnowledgeBaseOutput, KnowledgeBaseDetachResponse

Methods:

Routes

Types:

from gradient.types.agents import (
    RouteUpdateResponse,
    RouteDeleteResponse,
    RouteAddResponse,
    RouteViewResponse,
)

Methods:

Chat

Completions

Types:

from gradient.types.chat import CompletionCreateResponse

Methods:

Images

Types:

from gradient.types import ImageGenerateResponse

Methods:

GPUDroplets

Types:

from gradient.types import (
    DropletBackupPolicy,
    GPUDropletCreateResponse,
    GPUDropletRetrieveResponse,
    GPUDropletListResponse,
    GPUDropletListFirewallsResponse,
    GPUDropletListKernelsResponse,
    GPUDropletListNeighborsResponse,
    GPUDropletListSnapshotsResponse,
)

Methods:

Backups

Types:

from gradient.types.gpu_droplets import (
    BackupListResponse,
    BackupListPoliciesResponse,
    BackupListSupportedPoliciesResponse,
    BackupRetrievePolicyResponse,
)

Methods:

Actions

Types:

from gradient.types.gpu_droplets import (
    ActionRetrieveResponse,
    ActionListResponse,
    ActionBulkInitiateResponse,
    ActionInitiateResponse,
)

Methods:

DestroyWithAssociatedResources

Types:

from gradient.types.gpu_droplets import (
    AssociatedResource,
    DestroyedAssociatedResource,
    DestroyWithAssociatedResourceListResponse,
    DestroyWithAssociatedResourceCheckStatusResponse,
)

Methods:

Autoscale

Types:

from gradient.types.gpu_droplets import (
    AutoscalePool,
    AutoscalePoolDropletTemplate,
    AutoscalePoolDynamicConfig,
    AutoscalePoolStaticConfig,
    CurrentUtilization,
    AutoscaleCreateResponse,
    AutoscaleRetrieveResponse,
    AutoscaleUpdateResponse,
    AutoscaleListResponse,
    AutoscaleListHistoryResponse,
    AutoscaleListMembersResponse,
)

Methods:

Firewalls

Types:

from gradient.types.gpu_droplets import (
    Firewall,
    FirewallCreateResponse,
    FirewallRetrieveResponse,
    FirewallUpdateResponse,
    FirewallListResponse,
)

Methods:

Droplets

Methods:

  • client.gpu_droplets.firewalls.droplets.add(firewall_id, **params) -> None
  • client.gpu_droplets.firewalls.droplets.remove(firewall_id, **params) -> None

Tags

Methods:

  • client.gpu_droplets.firewalls.tags.add(firewall_id, **params) -> None
  • client.gpu_droplets.firewalls.tags.remove(firewall_id, **params) -> None

Rules

Methods:

  • client.gpu_droplets.firewalls.rules.add(firewall_id, **params) -> None
  • client.gpu_droplets.firewalls.rules.remove(firewall_id, **params) -> None

FloatingIPs

Types:

from gradient.types.gpu_droplets import (
    FloatingIP,
    FloatingIPCreateResponse,
    FloatingIPRetrieveResponse,
    FloatingIPListResponse,
)

Methods:

Actions

Types:

from gradient.types.gpu_droplets.floating_ips import (
    ActionCreateResponse,
    ActionRetrieveResponse,
    ActionListResponse,
)

Methods:

Images

Types:

from gradient.types.gpu_droplets import (
    ImageCreateResponse,
    ImageRetrieveResponse,
    ImageUpdateResponse,
    ImageListResponse,
)

Methods:

Actions

Types:

from gradient.types.gpu_droplets.images import ActionListResponse

Methods:

LoadBalancers

Types:

from gradient.types.gpu_droplets import (
    Domains,
    ForwardingRule,
    GlbSettings,
    HealthCheck,
    LbFirewall,
    LoadBalancer,
    StickySessions,
    LoadBalancerCreateResponse,
    LoadBalancerRetrieveResponse,
    LoadBalancerUpdateResponse,
    LoadBalancerListResponse,
)

Methods:

Droplets

Methods:

  • client.gpu_droplets.load_balancers.droplets.add(lb_id, **params) -> None
  • client.gpu_droplets.load_balancers.droplets.remove(lb_id, **params) -> None

ForwardingRules

Methods:

  • client.gpu_droplets.load_balancers.forwarding_rules.add(lb_id, **params) -> None
  • client.gpu_droplets.load_balancers.forwarding_rules.remove(lb_id, **params) -> None

Sizes

Types:

from gradient.types.gpu_droplets import SizeListResponse

Methods:

Snapshots

Types:

from gradient.types.gpu_droplets import SnapshotRetrieveResponse, SnapshotListResponse

Methods:

Volumes

Types:

from gradient.types.gpu_droplets import (
    VolumeCreateResponse,
    VolumeRetrieveResponse,
    VolumeListResponse,
)

Methods:

Actions

Types:

from gradient.types.gpu_droplets.volumes import (
    VolumeAction,
    ActionRetrieveResponse,
    ActionListResponse,
    ActionInitiateByIDResponse,
    ActionInitiateByNameResponse,
)

Methods:

Snapshots

Types:

from gradient.types.gpu_droplets.volumes import (
    SnapshotCreateResponse,
    SnapshotRetrieveResponse,
    SnapshotListResponse,
)

Methods:

Account

Keys

Types:

from gradient.types.gpu_droplets.account import (
    SSHKeys,
    KeyCreateResponse,
    KeyRetrieveResponse,
    KeyUpdateResponse,
    KeyListResponse,
)

Methods:

Inference

APIKeys

Types:

from gradient.types.inference import (
    APIModelAPIKeyInfo,
    APIKeyCreateResponse,
    APIKeyUpdateResponse,
    APIKeyListResponse,
    APIKeyDeleteResponse,
    APIKeyUpdateRegenerateResponse,
)

Methods:

KnowledgeBases

Types:

from gradient.types import (
    APIKnowledgeBase,
    KnowledgeBaseCreateResponse,
    KnowledgeBaseRetrieveResponse,
    KnowledgeBaseUpdateResponse,
    KnowledgeBaseListResponse,
    KnowledgeBaseDeleteResponse,
)

Methods:

DataSources

Types:

from gradient.types.knowledge_bases import (
    APIFileUploadDataSource,
    APIKnowledgeBaseDataSource,
    APISpacesDataSource,
    APIWebCrawlerDataSource,
    AwsDataSource,
    DataSourceCreateResponse,
    DataSourceListResponse,
    DataSourceDeleteResponse,
    DataSourceCreatePresignedURLsResponse,
)

Methods:

IndexingJobs

Types:

from gradient.types.knowledge_bases import (
    APIIndexedDataSource,
    APIIndexingJob,
    IndexingJobCreateResponse,
    IndexingJobRetrieveResponse,
    IndexingJobListResponse,
    IndexingJobRetrieveDataSourcesResponse,
    IndexingJobUpdateCancelResponse,
)

Methods:

Models

Types:

from gradient.types import APIAgreement, APIModel, APIModelVersion, ModelListResponse

Methods:

Providers

Anthropic

Types:

from gradient.types.models.providers import (
    AnthropicCreateResponse,
    AnthropicRetrieveResponse,
    AnthropicUpdateResponse,
    AnthropicListResponse,
    AnthropicDeleteResponse,
    AnthropicListAgentsResponse,
)

Methods:

OpenAI

Types:

from gradient.types.models.providers import (
    OpenAICreateResponse,
    OpenAIRetrieveResponse,
    OpenAIUpdateResponse,
    OpenAIListResponse,
    OpenAIDeleteResponse,
    OpenAIRetrieveAgentsResponse,
)

Methods:

Regions

Types:

from gradient.types import RegionListResponse

Methods:

Databases

SchemaRegistry

Config

Types:

from gradient.types.databases.schema_registry import (
    ConfigRetrieveResponse,
    ConfigUpdateResponse,
    ConfigRetrieveSubjectResponse,
    ConfigUpdateSubjectResponse,
)

Methods: