Documentation ¶
Index ¶
- type ApiService
- func (c *ApiService) CreateAssistant(params *CreateAssistantParams) (*AssistantsV1Assistant, error)
- func (c *ApiService) CreateAssistantKnowledgeAttachment(AssistantId string, Id string) error
- func (c *ApiService) CreateAssistantToolAttachment(AssistantId string, Id string) error
- func (c *ApiService) CreateFeedback(Id string, params *CreateFeedbackParams) (*AssistantsV1Feedback, error)
- func (c *ApiService) CreateKnowledge(params *CreateKnowledgeParams) (*AssistantsV1Knowledge, error)
- func (c *ApiService) CreateMessage(Id string, params *CreateMessageParams) (*AssistantsV1AssistantSendMessageResponse, error)
- func (c *ApiService) CreateTool(params *CreateToolParams) (*AssistantsV1Tool, error)
- func (c *ApiService) DeleteAssistant(Id string) error
- func (c *ApiService) DeleteAssistantKnowledgeAttachment(AssistantId string, Id string) error
- func (c *ApiService) DeleteAssistantToolAttachment(AssistantId string, Id string) error
- func (c *ApiService) DeleteKnowledge(Id string) error
- func (c *ApiService) DeleteTool(Id string) error
- func (c *ApiService) FetchAssistant(Id string) (*AssistantsV1AssistantWithToolsAndKnowledge, error)
- func (c *ApiService) FetchKnowledge(Id string) (*AssistantsV1Knowledge, error)
- func (c *ApiService) FetchKnowledgeStatus(Id string) (*AssistantsV1KnowledgeStatus, error)
- func (c *ApiService) FetchSession(Id string) (*AssistantsV1Session, error)
- func (c *ApiService) FetchTool(Id string) (*AssistantsV1ToolWithPolicies, error)
- func (c *ApiService) ListAssistants(params *ListAssistantsParams) ([]AssistantsV1Assistant, error)
- func (c *ApiService) ListFeedback(Id string, params *ListFeedbackParams) ([]AssistantsV1Feedback, error)
- func (c *ApiService) ListKnowledge(params *ListKnowledgeParams) ([]AssistantsV1Knowledge, error)
- func (c *ApiService) ListKnowledgeByAssistant(AssistantId string, params *ListKnowledgeByAssistantParams) ([]AssistantsV1Knowledge, error)
- func (c *ApiService) ListKnowledgeChunks(Id string, params *ListKnowledgeChunksParams) ([]AssistantsV1KnowledgeChunk, error)
- func (c *ApiService) ListMessages(SessionId string, params *ListMessagesParams) ([]AssistantsV1Message, error)
- func (c *ApiService) ListPolicies(params *ListPoliciesParams) ([]AssistantsV1Policy, error)
- func (c *ApiService) ListSessions(params *ListSessionsParams) ([]AssistantsV1Session, error)
- func (c *ApiService) ListTools(params *ListToolsParams) ([]AssistantsV1Tool, error)
- func (c *ApiService) ListToolsByAssistant(AssistantId string, params *ListToolsByAssistantParams) ([]AssistantsV1Tool, error)
- func (c *ApiService) PageAssistants(params *ListAssistantsParams, pageToken, pageNumber string) (*ListAssistantResponse, error)
- func (c *ApiService) PageFeedback(Id string, params *ListFeedbackParams, pageToken, pageNumber string) (*ListFeedbacksResponse, error)
- func (c *ApiService) PageKnowledge(params *ListKnowledgeParams, pageToken, pageNumber string) (*ListKnowledgeResponse, error)
- func (c *ApiService) PageKnowledgeByAssistant(AssistantId string, params *ListKnowledgeByAssistantParams, ...) (*ListKnowledgeByAssistantResponse, error)
- func (c *ApiService) PageKnowledgeChunks(Id string, params *ListKnowledgeChunksParams, pageToken, pageNumber string) (*ListKnowledgeChunksResponse, error)
- func (c *ApiService) PageMessages(SessionId string, params *ListMessagesParams, pageToken, pageNumber string) (*ListMessagesResponse, error)
- func (c *ApiService) PagePolicies(params *ListPoliciesParams, pageToken, pageNumber string) (*ListPoliciesResponse, error)
- func (c *ApiService) PageSessions(params *ListSessionsParams, pageToken, pageNumber string) (*ListSessionsResponse, error)
- func (c *ApiService) PageTools(params *ListToolsParams, pageToken, pageNumber string) (*ListToolsResponse, error)
- func (c *ApiService) PageToolsByAssistant(AssistantId string, params *ListToolsByAssistantParams, ...) (*ListToolsByAssistantResponse, error)
- func (c *ApiService) StreamAssistants(params *ListAssistantsParams) (chan AssistantsV1Assistant, chan error)
- func (c *ApiService) StreamFeedback(Id string, params *ListFeedbackParams) (chan AssistantsV1Feedback, chan error)
- func (c *ApiService) StreamKnowledge(params *ListKnowledgeParams) (chan AssistantsV1Knowledge, chan error)
- func (c *ApiService) StreamKnowledgeByAssistant(AssistantId string, params *ListKnowledgeByAssistantParams) (chan AssistantsV1Knowledge, chan error)
- func (c *ApiService) StreamKnowledgeChunks(Id string, params *ListKnowledgeChunksParams) (chan AssistantsV1KnowledgeChunk, chan error)
- func (c *ApiService) StreamMessages(SessionId string, params *ListMessagesParams) (chan AssistantsV1Message, chan error)
- func (c *ApiService) StreamPolicies(params *ListPoliciesParams) (chan AssistantsV1Policy, chan error)
- func (c *ApiService) StreamSessions(params *ListSessionsParams) (chan AssistantsV1Session, chan error)
- func (c *ApiService) StreamTools(params *ListToolsParams) (chan AssistantsV1Tool, chan error)
- func (c *ApiService) StreamToolsByAssistant(AssistantId string, params *ListToolsByAssistantParams) (chan AssistantsV1Tool, chan error)
- func (c *ApiService) UpdateAssistant(Id string, params *UpdateAssistantParams) (*AssistantsV1Assistant, error)
- func (c *ApiService) UpdateKnowledge(Id string, params *UpdateKnowledgeParams) (*AssistantsV1Knowledge, error)
- func (c *ApiService) UpdateTool(Id string, params *UpdateToolParams) (*AssistantsV1Tool, error)
- type AssistantsV1Assistant
- type AssistantsV1AssistantSendMessageRequest
- type AssistantsV1AssistantSendMessageResponse
- type AssistantsV1AssistantWithToolsAndKnowledge
- type AssistantsV1CreateAssistantRequest
- type AssistantsV1CreateFeedbackRequest
- type AssistantsV1CreateKnowledgeRequest
- type AssistantsV1CreatePolicyRequest
- type AssistantsV1CreateToolRequest
- type AssistantsV1CustomerAi
- type AssistantsV1Feedback
- type AssistantsV1Knowledge
- type AssistantsV1KnowledgeChunk
- type AssistantsV1KnowledgeChunkWithScore
- type AssistantsV1KnowledgeStatus
- type AssistantsV1Message
- type AssistantsV1Policy
- type AssistantsV1SegmentCredential
- type AssistantsV1Session
- type AssistantsV1Tool
- type AssistantsV1ToolWithPolicies
- type AssistantsV1UpdateAssistantRequest
- type AssistantsV1UpdateKnowledgeRequest
- type AssistantsV1UpdateToolRequest
- type CreateAssistantParams
- type CreateFeedbackParams
- type CreateKnowledgeParams
- type CreateMessageParams
- type CreateToolParams
- type ListAssistantResponse
- type ListAssistantResponseMeta
- type ListAssistantsParams
- type ListFeedbackParams
- type ListFeedbacksResponse
- type ListKnowledgeByAssistantParams
- type ListKnowledgeByAssistantResponse
- type ListKnowledgeChunksParams
- type ListKnowledgeChunksResponse
- type ListKnowledgeParams
- type ListKnowledgeResponse
- type ListMessagesParams
- type ListMessagesResponse
- type ListPoliciesParams
- func (params *ListPoliciesParams) SetKnowledgeId(KnowledgeId string) *ListPoliciesParams
- func (params *ListPoliciesParams) SetLimit(Limit int) *ListPoliciesParams
- func (params *ListPoliciesParams) SetPageSize(PageSize int) *ListPoliciesParams
- func (params *ListPoliciesParams) SetToolId(ToolId string) *ListPoliciesParams
- type ListPoliciesResponse
- type ListSessionsParams
- type ListSessionsResponse
- type ListToolsByAssistantParams
- type ListToolsByAssistantResponse
- type ListToolsParams
- type ListToolsResponse
- type UpdateAssistantParams
- type UpdateKnowledgeParams
- type UpdateToolParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiService ¶
type ApiService struct {
// contains filtered or unexported fields
}
func NewApiService ¶
func NewApiService(requestHandler *twilio.RequestHandler) *ApiService
func NewApiServiceWithClient ¶
func NewApiServiceWithClient(client twilio.BaseClient) *ApiService
func (*ApiService) CreateAssistant ¶
func (c *ApiService) CreateAssistant(params *CreateAssistantParams) (*AssistantsV1Assistant, error)
create an assistant
func (*ApiService) CreateAssistantKnowledgeAttachment ¶ added in v1.23.2
func (c *ApiService) CreateAssistantKnowledgeAttachment(AssistantId string, Id string) error
Attach Knowledge to Assistant
func (*ApiService) CreateAssistantToolAttachment ¶ added in v1.23.2
func (c *ApiService) CreateAssistantToolAttachment(AssistantId string, Id string) error
Attach Tool to Assistant
func (*ApiService) CreateFeedback ¶
func (c *ApiService) CreateFeedback(Id string, params *CreateFeedbackParams) (*AssistantsV1Feedback, error)
Create feedback
func (*ApiService) CreateKnowledge ¶
func (c *ApiService) CreateKnowledge(params *CreateKnowledgeParams) (*AssistantsV1Knowledge, error)
Create knowledge
func (*ApiService) CreateMessage ¶ added in v1.23.2
func (c *ApiService) CreateMessage(Id string, params *CreateMessageParams) (*AssistantsV1AssistantSendMessageResponse, error)
send a message
func (*ApiService) CreateTool ¶
func (c *ApiService) CreateTool(params *CreateToolParams) (*AssistantsV1Tool, error)
Create tool
func (*ApiService) DeleteAssistant ¶
func (c *ApiService) DeleteAssistant(Id string) error
delete an assistant
func (*ApiService) DeleteAssistantKnowledgeAttachment ¶ added in v1.23.2
func (c *ApiService) DeleteAssistantKnowledgeAttachment(AssistantId string, Id string) error
Detach Knowledge to Assistant
func (*ApiService) DeleteAssistantToolAttachment ¶ added in v1.23.2
func (c *ApiService) DeleteAssistantToolAttachment(AssistantId string, Id string) error
Detach Tool to Assistant
func (*ApiService) DeleteKnowledge ¶
func (c *ApiService) DeleteKnowledge(Id string) error
Delete knowledge
func (*ApiService) FetchAssistant ¶
func (c *ApiService) FetchAssistant(Id string) (*AssistantsV1AssistantWithToolsAndKnowledge, error)
get an assistant
func (*ApiService) FetchKnowledge ¶
func (c *ApiService) FetchKnowledge(Id string) (*AssistantsV1Knowledge, error)
Get knowledge
func (*ApiService) FetchKnowledgeStatus ¶ added in v1.23.2
func (c *ApiService) FetchKnowledgeStatus(Id string) (*AssistantsV1KnowledgeStatus, error)
Get knowledge status
func (*ApiService) FetchSession ¶
func (c *ApiService) FetchSession(Id string) (*AssistantsV1Session, error)
get a session
func (*ApiService) FetchTool ¶ added in v1.23.2
func (c *ApiService) FetchTool(Id string) (*AssistantsV1ToolWithPolicies, error)
Get tool
func (*ApiService) ListAssistants ¶ added in v1.23.2
func (c *ApiService) ListAssistants(params *ListAssistantsParams) ([]AssistantsV1Assistant, error)
Lists Assistants records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListFeedback ¶
func (c *ApiService) ListFeedback(Id string, params *ListFeedbackParams) ([]AssistantsV1Feedback, error)
Lists Feedback records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListKnowledge ¶
func (c *ApiService) ListKnowledge(params *ListKnowledgeParams) ([]AssistantsV1Knowledge, error)
Lists Knowledge records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListKnowledgeByAssistant ¶ added in v1.23.2
func (c *ApiService) ListKnowledgeByAssistant(AssistantId string, params *ListKnowledgeByAssistantParams) ([]AssistantsV1Knowledge, error)
Lists KnowledgeByAssistant records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListKnowledgeChunks ¶
func (c *ApiService) ListKnowledgeChunks(Id string, params *ListKnowledgeChunksParams) ([]AssistantsV1KnowledgeChunk, error)
Lists KnowledgeChunks records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListMessages ¶
func (c *ApiService) ListMessages(SessionId string, params *ListMessagesParams) ([]AssistantsV1Message, error)
Lists Messages records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListPolicies ¶
func (c *ApiService) ListPolicies(params *ListPoliciesParams) ([]AssistantsV1Policy, error)
Lists Policies records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListSessions ¶
func (c *ApiService) ListSessions(params *ListSessionsParams) ([]AssistantsV1Session, error)
Lists Sessions records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListTools ¶
func (c *ApiService) ListTools(params *ListToolsParams) ([]AssistantsV1Tool, error)
Lists Tools records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListToolsByAssistant ¶ added in v1.23.2
func (c *ApiService) ListToolsByAssistant(AssistantId string, params *ListToolsByAssistantParams) ([]AssistantsV1Tool, error)
Lists ToolsByAssistant records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) PageAssistants ¶ added in v1.23.2
func (c *ApiService) PageAssistants(params *ListAssistantsParams, pageToken, pageNumber string) (*ListAssistantResponse, error)
Retrieve a single page of Assistants records from the API. Request is executed immediately.
func (*ApiService) PageFeedback ¶
func (c *ApiService) PageFeedback(Id string, params *ListFeedbackParams, pageToken, pageNumber string) (*ListFeedbacksResponse, error)
Retrieve a single page of Feedback records from the API. Request is executed immediately.
func (*ApiService) PageKnowledge ¶
func (c *ApiService) PageKnowledge(params *ListKnowledgeParams, pageToken, pageNumber string) (*ListKnowledgeResponse, error)
Retrieve a single page of Knowledge records from the API. Request is executed immediately.
func (*ApiService) PageKnowledgeByAssistant ¶ added in v1.23.2
func (c *ApiService) PageKnowledgeByAssistant(AssistantId string, params *ListKnowledgeByAssistantParams, pageToken, pageNumber string) (*ListKnowledgeByAssistantResponse, error)
Retrieve a single page of KnowledgeByAssistant records from the API. Request is executed immediately.
func (*ApiService) PageKnowledgeChunks ¶
func (c *ApiService) PageKnowledgeChunks(Id string, params *ListKnowledgeChunksParams, pageToken, pageNumber string) (*ListKnowledgeChunksResponse, error)
Retrieve a single page of KnowledgeChunks records from the API. Request is executed immediately.
func (*ApiService) PageMessages ¶
func (c *ApiService) PageMessages(SessionId string, params *ListMessagesParams, pageToken, pageNumber string) (*ListMessagesResponse, error)
Retrieve a single page of Messages records from the API. Request is executed immediately.
func (*ApiService) PagePolicies ¶
func (c *ApiService) PagePolicies(params *ListPoliciesParams, pageToken, pageNumber string) (*ListPoliciesResponse, error)
Retrieve a single page of Policies records from the API. Request is executed immediately.
func (*ApiService) PageSessions ¶
func (c *ApiService) PageSessions(params *ListSessionsParams, pageToken, pageNumber string) (*ListSessionsResponse, error)
Retrieve a single page of Sessions records from the API. Request is executed immediately.
func (*ApiService) PageTools ¶
func (c *ApiService) PageTools(params *ListToolsParams, pageToken, pageNumber string) (*ListToolsResponse, error)
Retrieve a single page of Tools records from the API. Request is executed immediately.
func (*ApiService) PageToolsByAssistant ¶ added in v1.23.2
func (c *ApiService) PageToolsByAssistant(AssistantId string, params *ListToolsByAssistantParams, pageToken, pageNumber string) (*ListToolsByAssistantResponse, error)
Retrieve a single page of ToolsByAssistant records from the API. Request is executed immediately.
func (*ApiService) StreamAssistants ¶ added in v1.23.2
func (c *ApiService) StreamAssistants(params *ListAssistantsParams) (chan AssistantsV1Assistant, chan error)
Streams Assistants records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamFeedback ¶
func (c *ApiService) StreamFeedback(Id string, params *ListFeedbackParams) (chan AssistantsV1Feedback, chan error)
Streams Feedback records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamKnowledge ¶
func (c *ApiService) StreamKnowledge(params *ListKnowledgeParams) (chan AssistantsV1Knowledge, chan error)
Streams Knowledge records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamKnowledgeByAssistant ¶ added in v1.23.2
func (c *ApiService) StreamKnowledgeByAssistant(AssistantId string, params *ListKnowledgeByAssistantParams) (chan AssistantsV1Knowledge, chan error)
Streams KnowledgeByAssistant records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamKnowledgeChunks ¶
func (c *ApiService) StreamKnowledgeChunks(Id string, params *ListKnowledgeChunksParams) (chan AssistantsV1KnowledgeChunk, chan error)
Streams KnowledgeChunks records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamMessages ¶
func (c *ApiService) StreamMessages(SessionId string, params *ListMessagesParams) (chan AssistantsV1Message, chan error)
Streams Messages records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamPolicies ¶
func (c *ApiService) StreamPolicies(params *ListPoliciesParams) (chan AssistantsV1Policy, chan error)
Streams Policies records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamSessions ¶
func (c *ApiService) StreamSessions(params *ListSessionsParams) (chan AssistantsV1Session, chan error)
Streams Sessions records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamTools ¶
func (c *ApiService) StreamTools(params *ListToolsParams) (chan AssistantsV1Tool, chan error)
Streams Tools records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamToolsByAssistant ¶ added in v1.23.2
func (c *ApiService) StreamToolsByAssistant(AssistantId string, params *ListToolsByAssistantParams) (chan AssistantsV1Tool, chan error)
Streams ToolsByAssistant records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) UpdateAssistant ¶
func (c *ApiService) UpdateAssistant(Id string, params *UpdateAssistantParams) (*AssistantsV1Assistant, error)
update an assistant
func (*ApiService) UpdateKnowledge ¶
func (c *ApiService) UpdateKnowledge(Id string, params *UpdateKnowledgeParams) (*AssistantsV1Knowledge, error)
Update knowledge
func (*ApiService) UpdateTool ¶
func (c *ApiService) UpdateTool(Id string, params *UpdateToolParams) (*AssistantsV1Tool, error)
Update tool
type AssistantsV1Assistant ¶
type AssistantsV1Assistant struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Assistant resource. AccountSid string `json:"account_sid"` // The Personalization and Perception Engine settings. CustomerAi map[string]interface{} `json:"customer_ai"` // The Assistant ID. Id string `json:"id"` // The default model used by the assistant. Model string `json:"model"` // The name of the assistant. Name string `json:"name"` // The owner/company of the assistant. Owner string `json:"owner"` // The url of the assistant resource. Url string `json:"url,omitempty"` // The personality prompt to be used for assistant. PersonalityPrompt string `json:"personality_prompt"` // The date and time in GMT when the Assistant was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated time.Time `json:"date_created"` // The date and time in GMT when the Assistant was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated time.Time `json:"date_updated"` }
AssistantsV1Assistant struct for AssistantsV1Assistant
type AssistantsV1AssistantSendMessageRequest ¶
type AssistantsV1AssistantSendMessageRequest struct { // The unique identity of user for the session. Identity string `json:"identity"` // The unique name for the session. SessionId string `json:"session_id,omitempty"` // The query to ask the assistant. Body string `json:"body"` // The webhook url to call after the assistant has generated a response or report an error. Webhook string `json:"webhook,omitempty"` // one of the modes 'chat', 'email' or 'voice' Mode string `json:"mode,omitempty"` }
AssistantsV1AssistantSendMessageRequest struct for AssistantsV1AssistantSendMessageRequest
type AssistantsV1AssistantSendMessageResponse ¶
type AssistantsV1AssistantSendMessageResponse struct { // success or failure based on whether the request successfully generated a response. Status string `json:"status"` // If successful, this property will denote whether the response was flagged or not. Flagged bool `json:"flagged,omitempty"` // This property will denote whether the request was aborted or not. Aborted bool `json:"aborted,omitempty"` // The unique name for the session. SessionId string `json:"session_id"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that sent the Message. AccountSid string `json:"account_sid"` // If successful, the body of the generated response Body string `json:"body,omitempty"` // The error message if generation was not successful Error string `json:"error,omitempty"` }
AssistantsV1AssistantSendMessageResponse struct for AssistantsV1AssistantSendMessageResponse
type AssistantsV1AssistantWithToolsAndKnowledge ¶
type AssistantsV1AssistantWithToolsAndKnowledge struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Assistant resource. AccountSid string `json:"account_sid"` // The Personalization and Perception Engine settings. CustomerAi map[string]interface{} `json:"customer_ai"` // The Assistant ID. Id string `json:"id"` // The default model used by the assistant. Model string `json:"model"` // The name of the assistant. Name string `json:"name"` // The owner/company of the assistant. Owner string `json:"owner"` // The url of the assistant resource. Url string `json:"url,omitempty"` // The personality prompt to be used for assistant. PersonalityPrompt string `json:"personality_prompt"` // The date and time in GMT when the Assistant was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated time.Time `json:"date_created"` // The date and time in GMT when the Assistant was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated time.Time `json:"date_updated"` // The list of knowledge sources associated with the assistant. Knowledge []AssistantsV1Knowledge `json:"knowledge"` // The list of tools associated with the assistant. Tools []AssistantsV1Tool `json:"tools"` }
AssistantsV1AssistantWithToolsAndKnowledge struct for AssistantsV1AssistantWithToolsAndKnowledge
type AssistantsV1CreateAssistantRequest ¶
type AssistantsV1CreateAssistantRequest struct { CustomerAi AssistantsV1CustomerAi `json:"customer_ai,omitempty"` // The name of the assistant. Name string `json:"name"` // The owner/company of the assistant. Owner string `json:"owner,omitempty"` // The personality prompt to be used for assistant. PersonalityPrompt string `json:"personality_prompt,omitempty"` SegmentCredential AssistantsV1SegmentCredential `json:"segment_credential,omitempty"` }
AssistantsV1CreateAssistantRequest struct for AssistantsV1CreateAssistantRequest
type AssistantsV1CreateFeedbackRequest ¶
type AssistantsV1CreateFeedbackRequest struct { // The message ID. MessageId string `json:"message_id,omitempty"` // The score to be given(0-1). Score float32 `json:"score,omitempty"` // The Session ID. SessionId string `json:"session_id"` // The text to be given as feedback. Text string `json:"text,omitempty"` }
AssistantsV1CreateFeedbackRequest struct for AssistantsV1CreateFeedbackRequest
func (*AssistantsV1CreateFeedbackRequest) UnmarshalJSON ¶
func (response *AssistantsV1CreateFeedbackRequest) UnmarshalJSON(bytes []byte) (err error)
type AssistantsV1CreateKnowledgeRequest ¶
type AssistantsV1CreateKnowledgeRequest struct { // The Assistant ID. AssistantId string `json:"assistant_id,omitempty"` // The description of the knowledge source. Description string `json:"description,omitempty"` // The details of the knowledge source based on the type. KnowledgeSourceDetails map[string]interface{} `json:"knowledge_source_details,omitempty"` // The name of the tool. Name string `json:"name"` Policy AssistantsV1CreatePolicyRequest `json:"policy,omitempty"` // The type of the knowledge source. Type string `json:"type"` }
AssistantsV1CreateKnowledgeRequest struct for AssistantsV1CreateKnowledgeRequest
type AssistantsV1CreatePolicyRequest ¶
type AssistantsV1CreatePolicyRequest struct { // The description of the policy. Description string `json:"description,omitempty"` // The Policy ID. Id string `json:"id,omitempty"` // The name of the policy. Name string `json:"name,omitempty"` PolicyDetails *interface{} `json:"policy_details"` // The description of the policy. Type string `json:"type,omitempty"` }
AssistantsV1CreatePolicyRequest struct for AssistantsV1CreatePolicyRequest
type AssistantsV1CreateToolRequest ¶
type AssistantsV1CreateToolRequest struct { // The Assistant ID. AssistantId string `json:"assistant_id,omitempty"` // The description of the tool. Description string `json:"description,omitempty"` // True if the tool is enabled. Enabled bool `json:"enabled"` // The metadata related to method, url, input_schema to used with the Tool. Meta map[string]interface{} `json:"meta,omitempty"` // The name of the tool. Name string `json:"name"` Policy AssistantsV1CreatePolicyRequest `json:"policy,omitempty"` // The description of the tool. Type string `json:"type"` }
AssistantsV1CreateToolRequest struct for AssistantsV1CreateToolRequest
type AssistantsV1CustomerAi ¶
type AssistantsV1CustomerAi struct { // True if the perception engine is enabled. PerceptionEngineEnabled bool `json:"perception_engine_enabled"` // True if the personalization engine is enabled. PersonalizationEngineEnabled bool `json:"personalization_engine_enabled"` }
AssistantsV1CustomerAi struct for AssistantsV1CustomerAi
type AssistantsV1Feedback ¶
type AssistantsV1Feedback struct { // The Assistant ID. AssistantId string `json:"assistant_id"` // The Feedback ID. Id string `json:"id"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Feedback. AccountSid string `json:"account_sid,omitempty"` // The SID of the User created the Feedback. UserSid string `json:"user_sid,omitempty"` // The Message ID. MessageId string `json:"message_id"` // The Score to provide as Feedback (0-1) Score float32 `json:"score"` // The Session ID. SessionId string `json:"session_id"` // The text to be given as feedback. Text string `json:"text"` // The date and time in GMT when the Feedback was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated time.Time `json:"date_created"` // The date and time in GMT when the Feedback was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated time.Time `json:"date_updated"` }
AssistantsV1Feedback struct for AssistantsV1Feedback
func (*AssistantsV1Feedback) UnmarshalJSON ¶
func (response *AssistantsV1Feedback) UnmarshalJSON(bytes []byte) (err error)
type AssistantsV1Knowledge ¶
type AssistantsV1Knowledge struct { // The type of knowledge source. Description string `json:"description,omitempty"` // The description of knowledge. Id string `json:"id,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource. AccountSid string `json:"account_sid,omitempty"` // The details of the knowledge source based on the type. KnowledgeSourceDetails map[string]interface{} `json:"knowledge_source_details,omitempty"` // The name of the knowledge source. Name string `json:"name,omitempty"` // The status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED') Status string `json:"status,omitempty"` // The type of knowledge source ('Web', 'Database', 'Text', 'File') Type string `json:"type,omitempty"` // The url of the knowledge resource. Url string `json:"url,omitempty"` // The date and time in GMT when the Knowledge was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated time.Time `json:"date_created,omitempty"` // The date and time in GMT when the Knowledge was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated time.Time `json:"date_updated,omitempty"` }
AssistantsV1Knowledge struct for AssistantsV1Knowledge
type AssistantsV1KnowledgeChunk ¶
type AssistantsV1KnowledgeChunk struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource. AccountSid string `json:"account_sid,omitempty"` // The chunk content. Content string `json:"content,omitempty"` // The metadata of the chunk. Metadata map[string]interface{} `json:"metadata,omitempty"` // The date and time in GMT when the Chunk was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated time.Time `json:"date_created,omitempty"` // The date and time in GMT when the Chunk was updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated time.Time `json:"date_updated,omitempty"` }
AssistantsV1KnowledgeChunk struct for AssistantsV1KnowledgeChunk
type AssistantsV1KnowledgeChunkWithScore ¶
type AssistantsV1KnowledgeChunkWithScore struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource. AccountSid string `json:"account_sid,omitempty"` // The chunk content. Content string `json:"content,omitempty"` // The metadata of the chunk. Metadata map[string]interface{} `json:"metadata,omitempty"` // The date and time in GMT when the Chunk was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated time.Time `json:"date_created,omitempty"` // The date and time in GMT when the Chunk was updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated time.Time `json:"date_updated,omitempty"` // The score associated with the chunk. Score float32 `json:"score,omitempty"` // The knowledge ID associated with the chunk. KnowledgeId string `json:"knowledge_id,omitempty"` }
AssistantsV1KnowledgeChunkWithScore struct for AssistantsV1KnowledgeChunkWithScore
func (*AssistantsV1KnowledgeChunkWithScore) UnmarshalJSON ¶
func (response *AssistantsV1KnowledgeChunkWithScore) UnmarshalJSON(bytes []byte) (err error)
type AssistantsV1KnowledgeStatus ¶
type AssistantsV1KnowledgeStatus struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource. AccountSid string `json:"account_sid,omitempty"` // The status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED') Status string `json:"status"` // The last status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED') LastStatus string `json:"last_status,omitempty"` // The date and time in GMT when the Knowledge was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated time.Time `json:"date_updated,omitempty"` }
AssistantsV1KnowledgeStatus struct for AssistantsV1KnowledgeStatus
type AssistantsV1Message ¶
type AssistantsV1Message struct { // The message ID. Id string `json:"id,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resource. AccountSid string `json:"account_sid,omitempty"` // The Assistant ID. AssistantId string `json:"assistant_id,omitempty"` // The Session ID. SessionId string `json:"session_id,omitempty"` // The identity of the user. Identity string `json:"identity,omitempty"` // The role of the user associated with the message. Role string `json:"role,omitempty"` // The content of the message. Content map[string]interface{} `json:"content,omitempty"` // The metadata of the message. Meta map[string]interface{} `json:"meta,omitempty"` // The date and time in GMT when the Message was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated time.Time `json:"date_created,omitempty"` // The date and time in GMT when the Message was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated time.Time `json:"date_updated,omitempty"` }
AssistantsV1Message struct for AssistantsV1Message
type AssistantsV1Policy ¶
type AssistantsV1Policy struct { // The Policy ID. Id string `json:"id,omitempty"` // The name of the policy. Name string `json:"name,omitempty"` // The description of the policy. Description string `json:"description,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Policy resource. AccountSid string `json:"account_sid,omitempty"` // The SID of the User that created the Policy resource. UserSid string `json:"user_sid,omitempty"` // The type of the policy. Type string `json:"type"` // The details of the policy based on the type. PolicyDetails map[string]interface{} `json:"policy_details"` // The date and time in GMT when the Policy was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated time.Time `json:"date_created,omitempty"` // The date and time in GMT when the Policy was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated time.Time `json:"date_updated,omitempty"` }
AssistantsV1Policy struct for AssistantsV1Policy
type AssistantsV1SegmentCredential ¶
type AssistantsV1SegmentCredential struct { // The profile API key. ProfileApiKey string `json:"profile_api_key,omitempty"` // The space ID. SpaceId string `json:"space_id,omitempty"` // The write key. WriteKey string `json:"write_key,omitempty"` }
AssistantsV1SegmentCredential struct for AssistantsV1SegmentCredential
type AssistantsV1Session ¶
type AssistantsV1Session struct { // The Session ID. Id string `json:"id,omitempty"` // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Session resource. AccountSid string `json:"account_sid,omitempty"` // The Assistant ID. AssistantId string `json:"assistant_id,omitempty"` // True if the session is verified. Verified bool `json:"verified,omitempty"` // The unique identity of user for the session. Identity string `json:"identity,omitempty"` // The date and time in GMT when the Session was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated time.Time `json:"date_created,omitempty"` // The date and time in GMT when the Session was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated time.Time `json:"date_updated,omitempty"` }
AssistantsV1Session struct for AssistantsV1Session
type AssistantsV1Tool ¶
type AssistantsV1Tool struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Tool resource. AccountSid string `json:"account_sid,omitempty"` // The description of the tool. Description string `json:"description"` // True if the tool is enabled. Enabled bool `json:"enabled"` // The tool ID. Id string `json:"id"` // The metadata related to method, url, input_schema to used with the Tool. Meta map[string]interface{} `json:"meta"` // The name of the tool. Name string `json:"name"` // The authentication requirement for the tool. RequiresAuth bool `json:"requires_auth"` // The type of the tool. ('WEBHOOK') Type string `json:"type"` // The url of the tool resource. Url string `json:"url,omitempty"` // The date and time in GMT when the Tool was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated time.Time `json:"date_created"` // The date and time in GMT when the Tool was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated time.Time `json:"date_updated"` }
AssistantsV1Tool struct for AssistantsV1Tool
type AssistantsV1ToolWithPolicies ¶
type AssistantsV1ToolWithPolicies struct { // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Tool resource. AccountSid string `json:"account_sid,omitempty"` // The description of the tool. Description string `json:"description"` // True if the tool is enabled. Enabled bool `json:"enabled"` // The tool ID. Id string `json:"id"` // The metadata related to method, url, input_schema to used with the Tool. Meta map[string]interface{} `json:"meta"` // The name of the tool. Name string `json:"name"` // The authentication requirement for the tool. RequiresAuth bool `json:"requires_auth"` // The type of the tool. ('WEBHOOK') Type string `json:"type"` // The url of the tool resource. Url string `json:"url,omitempty"` // The date and time in GMT when the Tool was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateCreated time.Time `json:"date_created"` // The date and time in GMT when the Tool was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. DateUpdated time.Time `json:"date_updated"` // The Policies associated with the tool. Policies []AssistantsV1Policy `json:"policies,omitempty"` }
AssistantsV1ToolWithPolicies struct for AssistantsV1ToolWithPolicies
type AssistantsV1UpdateAssistantRequest ¶
type AssistantsV1UpdateAssistantRequest struct { CustomerAi AssistantsV1CustomerAi `json:"customer_ai,omitempty"` // The name of the assistant. Name string `json:"name,omitempty"` // The owner/company of the assistant. Owner string `json:"owner,omitempty"` // The personality prompt to be used for assistant. PersonalityPrompt string `json:"personality_prompt,omitempty"` SegmentCredential AssistantsV1SegmentCredential `json:"segment_credential,omitempty"` }
AssistantsV1UpdateAssistantRequest struct for AssistantsV1UpdateAssistantRequest
type AssistantsV1UpdateKnowledgeRequest ¶
type AssistantsV1UpdateKnowledgeRequest struct { // The description of the knowledge source. Description string `json:"description,omitempty"` // The details of the knowledge source based on the type. KnowledgeSourceDetails map[string]interface{} `json:"knowledge_source_details,omitempty"` // The name of the knowledge source. Name string `json:"name,omitempty"` Policy AssistantsV1CreatePolicyRequest `json:"policy,omitempty"` // The description of the knowledge source. Type string `json:"type,omitempty"` }
AssistantsV1UpdateKnowledgeRequest struct for AssistantsV1UpdateKnowledgeRequest
type AssistantsV1UpdateToolRequest ¶
type AssistantsV1UpdateToolRequest struct { // The Assistant ID. AssistantId string `json:"assistant_id,omitempty"` // The description of the tool. Description string `json:"description,omitempty"` // True if the tool is enabled. Enabled bool `json:"enabled,omitempty"` // The metadata related to method, url, input_schema to used with the Tool. Meta map[string]interface{} `json:"meta,omitempty"` // The name of the tool. Name string `json:"name,omitempty"` Policy AssistantsV1CreatePolicyRequest `json:"policy,omitempty"` // The type of the tool. Type string `json:"type,omitempty"` }
AssistantsV1UpdateToolRequest struct for AssistantsV1UpdateToolRequest
type CreateAssistantParams ¶
type CreateAssistantParams struct { // AssistantsV1CreateAssistantRequest *AssistantsV1CreateAssistantRequest `json:"AssistantsV1CreateAssistantRequest,omitempty"` }
Optional parameters for the method 'CreateAssistant'
func (*CreateAssistantParams) SetAssistantsV1CreateAssistantRequest ¶
func (params *CreateAssistantParams) SetAssistantsV1CreateAssistantRequest(AssistantsV1CreateAssistantRequest AssistantsV1CreateAssistantRequest) *CreateAssistantParams
type CreateFeedbackParams ¶
type CreateFeedbackParams struct { // AssistantsV1CreateFeedbackRequest *AssistantsV1CreateFeedbackRequest `json:"AssistantsV1CreateFeedbackRequest,omitempty"` }
Optional parameters for the method 'CreateFeedback'
func (*CreateFeedbackParams) SetAssistantsV1CreateFeedbackRequest ¶
func (params *CreateFeedbackParams) SetAssistantsV1CreateFeedbackRequest(AssistantsV1CreateFeedbackRequest AssistantsV1CreateFeedbackRequest) *CreateFeedbackParams
type CreateKnowledgeParams ¶
type CreateKnowledgeParams struct { // AssistantsV1CreateKnowledgeRequest *AssistantsV1CreateKnowledgeRequest `json:"AssistantsV1CreateKnowledgeRequest,omitempty"` }
Optional parameters for the method 'CreateKnowledge'
func (*CreateKnowledgeParams) SetAssistantsV1CreateKnowledgeRequest ¶
func (params *CreateKnowledgeParams) SetAssistantsV1CreateKnowledgeRequest(AssistantsV1CreateKnowledgeRequest AssistantsV1CreateKnowledgeRequest) *CreateKnowledgeParams
type CreateMessageParams ¶ added in v1.23.2
type CreateMessageParams struct { // AssistantsV1AssistantSendMessageRequest *AssistantsV1AssistantSendMessageRequest `json:"AssistantsV1AssistantSendMessageRequest,omitempty"` }
Optional parameters for the method 'CreateMessage'
func (*CreateMessageParams) SetAssistantsV1AssistantSendMessageRequest ¶ added in v1.23.2
func (params *CreateMessageParams) SetAssistantsV1AssistantSendMessageRequest(AssistantsV1AssistantSendMessageRequest AssistantsV1AssistantSendMessageRequest) *CreateMessageParams
type CreateToolParams ¶
type CreateToolParams struct { // AssistantsV1CreateToolRequest *AssistantsV1CreateToolRequest `json:"AssistantsV1CreateToolRequest,omitempty"` }
Optional parameters for the method 'CreateTool'
func (*CreateToolParams) SetAssistantsV1CreateToolRequest ¶
func (params *CreateToolParams) SetAssistantsV1CreateToolRequest(AssistantsV1CreateToolRequest AssistantsV1CreateToolRequest) *CreateToolParams
type ListAssistantResponse ¶
type ListAssistantResponse struct { Assistants []AssistantsV1Assistant `json:"assistants,omitempty"` Meta ListAssistantResponseMeta `json:"meta,omitempty"` }
ListAssistantResponse struct for ListAssistantResponse
type ListAssistantResponseMeta ¶
type ListAssistantResponseMeta struct { FirstPageUrl string `json:"first_page_url,omitempty"` Key string `json:"key,omitempty"` NextPageUrl *string `json:"next_page_url,omitempty"` Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` PreviousPageUrl *string `json:"previous_page_url,omitempty"` Url string `json:"url,omitempty"` }
ListAssistantResponseMeta struct for ListAssistantResponseMeta
type ListAssistantsParams ¶ added in v1.23.2
type ListAssistantsParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListAssistants'
func (*ListAssistantsParams) SetLimit ¶ added in v1.23.2
func (params *ListAssistantsParams) SetLimit(Limit int) *ListAssistantsParams
func (*ListAssistantsParams) SetPageSize ¶ added in v1.23.2
func (params *ListAssistantsParams) SetPageSize(PageSize int) *ListAssistantsParams
type ListFeedbackParams ¶
type ListFeedbackParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListFeedback'
func (*ListFeedbackParams) SetLimit ¶
func (params *ListFeedbackParams) SetLimit(Limit int) *ListFeedbackParams
func (*ListFeedbackParams) SetPageSize ¶
func (params *ListFeedbackParams) SetPageSize(PageSize int) *ListFeedbackParams
type ListFeedbacksResponse ¶
type ListFeedbacksResponse struct { Feedbacks []AssistantsV1Feedback `json:"feedbacks,omitempty"` Meta ListAssistantResponseMeta `json:"meta,omitempty"` }
ListFeedbacksResponse struct for ListFeedbacksResponse
type ListKnowledgeByAssistantParams ¶ added in v1.23.2
type ListKnowledgeByAssistantParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListKnowledgeByAssistant'
func (*ListKnowledgeByAssistantParams) SetLimit ¶ added in v1.23.2
func (params *ListKnowledgeByAssistantParams) SetLimit(Limit int) *ListKnowledgeByAssistantParams
func (*ListKnowledgeByAssistantParams) SetPageSize ¶ added in v1.23.2
func (params *ListKnowledgeByAssistantParams) SetPageSize(PageSize int) *ListKnowledgeByAssistantParams
type ListKnowledgeByAssistantResponse ¶ added in v1.23.2
type ListKnowledgeByAssistantResponse struct { Knowledge []AssistantsV1Knowledge `json:"knowledge,omitempty"` Meta ListAssistantResponseMeta `json:"meta,omitempty"` }
ListKnowledgeByAssistantResponse struct for ListKnowledgeByAssistantResponse
type ListKnowledgeChunksParams ¶
type ListKnowledgeChunksParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListKnowledgeChunks'
func (*ListKnowledgeChunksParams) SetLimit ¶
func (params *ListKnowledgeChunksParams) SetLimit(Limit int) *ListKnowledgeChunksParams
func (*ListKnowledgeChunksParams) SetPageSize ¶
func (params *ListKnowledgeChunksParams) SetPageSize(PageSize int) *ListKnowledgeChunksParams
type ListKnowledgeChunksResponse ¶
type ListKnowledgeChunksResponse struct { Chunks []AssistantsV1KnowledgeChunk `json:"chunks,omitempty"` Meta ListAssistantResponseMeta `json:"meta,omitempty"` }
ListKnowledgeChunksResponse struct for ListKnowledgeChunksResponse
type ListKnowledgeParams ¶
type ListKnowledgeParams struct { // AssistantId *string `json:"AssistantId,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListKnowledge'
func (*ListKnowledgeParams) SetAssistantId ¶
func (params *ListKnowledgeParams) SetAssistantId(AssistantId string) *ListKnowledgeParams
func (*ListKnowledgeParams) SetLimit ¶
func (params *ListKnowledgeParams) SetLimit(Limit int) *ListKnowledgeParams
func (*ListKnowledgeParams) SetPageSize ¶
func (params *ListKnowledgeParams) SetPageSize(PageSize int) *ListKnowledgeParams
type ListKnowledgeResponse ¶
type ListKnowledgeResponse struct { Knowledge []AssistantsV1Knowledge `json:"knowledge,omitempty"` Meta ListAssistantResponseMeta `json:"meta,omitempty"` }
ListKnowledgeResponse struct for ListKnowledgeResponse
type ListMessagesParams ¶
type ListMessagesParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListMessages'
func (*ListMessagesParams) SetLimit ¶
func (params *ListMessagesParams) SetLimit(Limit int) *ListMessagesParams
func (*ListMessagesParams) SetPageSize ¶
func (params *ListMessagesParams) SetPageSize(PageSize int) *ListMessagesParams
type ListMessagesResponse ¶
type ListMessagesResponse struct { Messages []AssistantsV1Message `json:"messages,omitempty"` Meta ListAssistantResponseMeta `json:"meta,omitempty"` }
ListMessagesResponse struct for ListMessagesResponse
type ListPoliciesParams ¶
type ListPoliciesParams struct { // The tool ID. ToolId *string `json:"ToolId,omitempty"` // The knowledge ID. KnowledgeId *string `json:"KnowledgeId,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListPolicies'
func (*ListPoliciesParams) SetKnowledgeId ¶
func (params *ListPoliciesParams) SetKnowledgeId(KnowledgeId string) *ListPoliciesParams
func (*ListPoliciesParams) SetLimit ¶
func (params *ListPoliciesParams) SetLimit(Limit int) *ListPoliciesParams
func (*ListPoliciesParams) SetPageSize ¶
func (params *ListPoliciesParams) SetPageSize(PageSize int) *ListPoliciesParams
func (*ListPoliciesParams) SetToolId ¶
func (params *ListPoliciesParams) SetToolId(ToolId string) *ListPoliciesParams
type ListPoliciesResponse ¶
type ListPoliciesResponse struct { Policies []AssistantsV1Policy `json:"policies,omitempty"` Meta ListAssistantResponseMeta `json:"meta,omitempty"` }
ListPoliciesResponse struct for ListPoliciesResponse
type ListSessionsParams ¶
type ListSessionsParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListSessions'
func (*ListSessionsParams) SetLimit ¶
func (params *ListSessionsParams) SetLimit(Limit int) *ListSessionsParams
func (*ListSessionsParams) SetPageSize ¶
func (params *ListSessionsParams) SetPageSize(PageSize int) *ListSessionsParams
type ListSessionsResponse ¶
type ListSessionsResponse struct { Sessions []AssistantsV1Session `json:"sessions,omitempty"` Meta ListAssistantResponseMeta `json:"meta,omitempty"` }
ListSessionsResponse struct for ListSessionsResponse
type ListToolsByAssistantParams ¶ added in v1.23.2
type ListToolsByAssistantParams struct { // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListToolsByAssistant'
func (*ListToolsByAssistantParams) SetLimit ¶ added in v1.23.2
func (params *ListToolsByAssistantParams) SetLimit(Limit int) *ListToolsByAssistantParams
func (*ListToolsByAssistantParams) SetPageSize ¶ added in v1.23.2
func (params *ListToolsByAssistantParams) SetPageSize(PageSize int) *ListToolsByAssistantParams
type ListToolsByAssistantResponse ¶ added in v1.23.2
type ListToolsByAssistantResponse struct { Tools []AssistantsV1Tool `json:"tools,omitempty"` Meta ListAssistantResponseMeta `json:"meta,omitempty"` }
ListToolsByAssistantResponse struct for ListToolsByAssistantResponse
type ListToolsParams ¶
type ListToolsParams struct { // AssistantId *string `json:"AssistantId,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. Limit *int `json:"limit,omitempty"` }
Optional parameters for the method 'ListTools'
func (*ListToolsParams) SetAssistantId ¶
func (params *ListToolsParams) SetAssistantId(AssistantId string) *ListToolsParams
func (*ListToolsParams) SetLimit ¶
func (params *ListToolsParams) SetLimit(Limit int) *ListToolsParams
func (*ListToolsParams) SetPageSize ¶
func (params *ListToolsParams) SetPageSize(PageSize int) *ListToolsParams
type ListToolsResponse ¶
type ListToolsResponse struct { Tools []AssistantsV1Tool `json:"tools,omitempty"` Meta ListAssistantResponseMeta `json:"meta,omitempty"` }
ListToolsResponse struct for ListToolsResponse
type UpdateAssistantParams ¶
type UpdateAssistantParams struct { // AssistantsV1UpdateAssistantRequest *AssistantsV1UpdateAssistantRequest `json:"AssistantsV1UpdateAssistantRequest,omitempty"` }
Optional parameters for the method 'UpdateAssistant'
func (*UpdateAssistantParams) SetAssistantsV1UpdateAssistantRequest ¶
func (params *UpdateAssistantParams) SetAssistantsV1UpdateAssistantRequest(AssistantsV1UpdateAssistantRequest AssistantsV1UpdateAssistantRequest) *UpdateAssistantParams
type UpdateKnowledgeParams ¶
type UpdateKnowledgeParams struct { // AssistantsV1UpdateKnowledgeRequest *AssistantsV1UpdateKnowledgeRequest `json:"AssistantsV1UpdateKnowledgeRequest,omitempty"` }
Optional parameters for the method 'UpdateKnowledge'
func (*UpdateKnowledgeParams) SetAssistantsV1UpdateKnowledgeRequest ¶
func (params *UpdateKnowledgeParams) SetAssistantsV1UpdateKnowledgeRequest(AssistantsV1UpdateKnowledgeRequest AssistantsV1UpdateKnowledgeRequest) *UpdateKnowledgeParams
type UpdateToolParams ¶
type UpdateToolParams struct { // AssistantsV1UpdateToolRequest *AssistantsV1UpdateToolRequest `json:"AssistantsV1UpdateToolRequest,omitempty"` }
Optional parameters for the method 'UpdateTool'
func (*UpdateToolParams) SetAssistantsV1UpdateToolRequest ¶
func (params *UpdateToolParams) SetAssistantsV1UpdateToolRequest(AssistantsV1UpdateToolRequest AssistantsV1UpdateToolRequest) *UpdateToolParams
Source Files ¶
- api_service.go
- assistants.go
- assistants_feedbacks.go
- assistants_knowledge.go
- assistants_messages.go
- assistants_tools.go
- knowledge.go
- knowledge_chunks.go
- knowledge_status.go
- model_assistants_v1_assistant.go
- model_assistants_v1_assistant_send_message_request.go
- model_assistants_v1_assistant_send_message_response.go
- model_assistants_v1_assistant_with_tools_and_knowledge.go
- model_assistants_v1_create_assistant_request.go
- model_assistants_v1_create_feedback_request.go
- model_assistants_v1_create_knowledge_request.go
- model_assistants_v1_create_policy_request.go
- model_assistants_v1_create_tool_request.go
- model_assistants_v1_customer_ai.go
- model_assistants_v1_feedback.go
- model_assistants_v1_knowledge.go
- model_assistants_v1_knowledge_chunk.go
- model_assistants_v1_knowledge_chunk_with_score.go
- model_assistants_v1_knowledge_status.go
- model_assistants_v1_message.go
- model_assistants_v1_policy.go
- model_assistants_v1_segment_credential.go
- model_assistants_v1_session.go
- model_assistants_v1_tool.go
- model_assistants_v1_tool_with_policies.go
- model_assistants_v1_update_assistant_request.go
- model_assistants_v1_update_knowledge_request.go
- model_assistants_v1_update_tool_request.go
- model_list_assistant_response.go
- model_list_assistant_response_meta.go
- model_list_feedbacks_response.go
- model_list_knowledge_by_assistant_response.go
- model_list_knowledge_chunks_response.go
- model_list_knowledge_response.go
- model_list_messages_response.go
- model_list_policies_response.go
- model_list_sessions_response.go
- model_list_tools_by_assistant_response.go
- model_list_tools_response.go
- policies.go
- sessions.go
- sessions_messages.go
- tools.go