@ptkl/sdk - v1.25.0
    Preparing search index...

    Base client for the platform API Classes that extend PlatformBaseClient have intentins of only working in platform context

    PlatformBaseClient

    The axios instance to use for the client

    // if sdk is used in the forge app that is running in the platform context
    const utils = new ComponentUtils()
    // this won't work outside of platform context because client needs authtorization to communicate with the API.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    activateAssignment activateWorkforce addParticipant answerStep approveStep archiveConversation chat checkWorkforceRule createAgent createAgentAssignment createAssignment createConversation createKnowledgeBase createPlaybook createPlaybookVersion createRunFeedback createUserAccess deleteAgent deleteAssignment deleteConversation deleteDocument deleteFeedback deleteKnowledgeBase deletePlaybook deleteUserAccess denyStep deployPlaybook disableWorkforce enableWorkforce fireAssignment getAgent getAgentCosts getAssignment getAssignmentFeedbackSummary getAssignmentProjection getControlStatus getConversation getDocument getKnowledgeBase getMyAccess getPlaybook getPlaybookFeedbackSummary getPlaybookVersion getRun getRunStats getRunStep getTier getUserAccess getUserMonthlyUsage getUserUsageBreakdown getWorkforce injectMessage listActivity listAgentAssignments listAgentKnowledgeBases listAgents listApprovals listAssignmentFeedback listAssignments listConversations listDocuments listForgeTools listKnowledgeBases listMessages listPlaybookDeployments listPlaybookFeedback listPlaybooks listPlaybookVersions listRunFeedback listRunningRuns listRuns listSkills listUsage listUserAccess listWorkforceAgents ocr pauseAssignment pauseRun pauseWorkforce previewAssignmentProjection promoteFeedback releaseAllRuns removeParticipant rerunRun resumeRun retryDocument rollbackPlaybook savePlaybookVersion searchKnowledgeBase sendMessage setClient setFeedbackUse startAgentRun startPlaybookRun stopAllRuns stopRun streamMessage unarchiveConversation updateAgent updateAssignment updateConversation updateFeedback updateKnowledgeBase updatePlaybook updateUserAccess updateWorkforce uploadDocument validatePlaybook

    Constructors

    • Parameters

      • Optionaloptions: { env?: string; host?: string; token?: string }

      Returns default

    Properties

    client: AxiosInstance
    env: null | string = null
    host: null | string = null
    token: null | string = null

    Methods

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<WorkforceAssignment, any>>

    • Parameters

      • agentUUID: string

      Returns Promise<AxiosResponse<WorkforceAgent, any>>

    • Parameters

      Returns Promise<AxiosResponse<any, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<void, any>>

    • Parameters

      Returns Promise<AxiosResponse<string, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<void, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<{ deleted: boolean }, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<void, any>>

    • Parameters

      • kbUUID: string
      • uuid: string

      Returns Promise<AxiosResponse<void, any>>

    • Parameters

      • feedbackUUID: string

      Returns Promise<AxiosResponse<{ deleted: boolean }, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<void, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<{ deleted: boolean }, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<void, any>>

    • Parameters

      • agentUUID: string

      Returns Promise<AxiosResponse<WorkforceAgent, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<WorkforceRun, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<Agent, any>>

    • Parameters

      • assignmentUUID: string

      Returns Promise<AxiosResponse<WorkforceFeedbackSummary, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<WorkforceProjection, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<Conversation, any>>

    • Parameters

      • kbUUID: string
      • uuid: string

      Returns Promise<AxiosResponse<Document, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<KnowledgeBase, any>>

    • Returns Promise<AxiosResponse<MyAccess, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<WorkforcePlaybook, any>>

    • Parameters

      • uuid: string
      • version: string

      Returns Promise<AxiosResponse<WorkforcePlaybookVersion, any>>

    • Parameters

      • runUUID: string
      • index: number

      Returns Promise<AxiosResponse<WorkforceRunStep, any>>

    • Returns Promise<AxiosResponse<Tier, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<UserAccess, any>>

    • Parameters

      • uuid: string
      • Optionalparams: { month?: string }

      Returns Promise<AxiosResponse<UserMonthlyUsage, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<UserUsageBreakdown, any>>

    • Parameters

      • agentUUID: string

      Returns Promise<AxiosResponse<WorkforceAgent, any>>

    • Parameters

      • agentUUID: string

      Returns Promise<AxiosResponse<KnowledgeBase[], any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<WorkforceAssignment, any>>

    • Parameters

      • runUUID: string

      Returns Promise<AxiosResponse<void, any>>

    • Parameters

      • agentUUID: string

      Returns Promise<AxiosResponse<WorkforceAgent, any>>

    • Returns Promise<AxiosResponse<void, any>>

    • Parameters

      • conversationUUID: string
      • agentUUID: string

      Returns Promise<AxiosResponse<void, any>>

    • Parameters

      • runUUID: string

      Returns Promise<AxiosResponse<WorkforceRun, any>>

    • Parameters

      • runUUID: string

      Returns Promise<AxiosResponse<void, any>>

    • Parameters

      • kbUUID: string
      • uuid: string

      Returns Promise<AxiosResponse<void, any>>

    • Parameters

      Returns Promise<AxiosResponse<Message, any>>

    • Parameters

      • client: AxiosInstance

      Returns default

    • Parameters

      • runUUID: string

      Returns Promise<AxiosResponse<void, any>>

    • Parameters

      Returns Promise<AxiosResponse<ReadableStream<any>, any>>

    • Parameters

      • uuid: string

      Returns Promise<AxiosResponse<void, any>>

    • Parameters

      • kbUUID: string
      • formData: FormData

      Returns Promise<AxiosResponse<Document, any>>

    • Parameters

      • uuid: string
      • version: string

      Returns Promise<AxiosResponse<WorkforceValidateResponse, any>>