openapi

package
v1.23.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 6 Imported by: 0

README

Go API client for openapi

This is the public Twilio REST API.

Overview

This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/twilio-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit https://support.twilio.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://assistants.twilio.com

Class Method HTTP request Description
AssistantsApi CreateAssistant Post /v1/Assistants Create a new assistant
AssistantsApi DeleteAssistant Delete /v1/Assistants/{id} Delete an assistant by ID
AssistantsApi FetchAssistant Get /v1/Assistants/{id} Get an assistant by ID
AssistantsApi ListAssistants Get /v1/Assistants List all assistants
AssistantsApi UpdateAssistant Put /v1/Assistants/{id} Update an assistant by ID
AssistantsFeedbacksApi CreateFeedback Post /v1/Assistants/{id}/Feedbacks Create feedback
AssistantsFeedbacksApi ListFeedback Get /v1/Assistants/{id}/Feedbacks List feedbacks
AssistantsKnowledgeApi CreateAssistantKnowledgeAttachment Post /v1/Assistants/{assistantId}/Knowledge/{id} Attach Knowledge to Assistant
AssistantsKnowledgeApi DeleteAssistantKnowledgeAttachment Delete /v1/Assistants/{assistantId}/Knowledge/{id} Detach Knowledge to Assistant
AssistantsKnowledgeApi ListKnowledgeByAssistant Get /v1/Assistants/{assistantId}/Knowledge List all knowledge for an Assistant
AssistantsMessagesApi CreateMessage Post /v1/Assistants/{id}/Messages Send a message to the assistant
AssistantsToolsApi CreateAssistantToolAttachment Post /v1/Assistants/{assistantId}/Tools/{id} Attach Tool to Assistant
AssistantsToolsApi DeleteAssistantToolAttachment Delete /v1/Assistants/{assistantId}/Tools/{id} Detach Tool to Assistant
AssistantsToolsApi ListToolsByAssistant Get /v1/Assistants/{assistantId}/Tools List tools for an Assistant
KnowledgeApi CreateKnowledge Post /v1/Knowledge Create knowledge
KnowledgeApi DeleteKnowledge Delete /v1/Knowledge/{id} Delete knowledge
KnowledgeApi FetchKnowledge Get /v1/Knowledge/{id} Get knowledge
KnowledgeApi ListKnowledge Get /v1/Knowledge List all knowledge
KnowledgeApi UpdateKnowledge Put /v1/Knowledge/{id} Update knowledge
KnowledgeChunksApi ListKnowledgeChunks Get /v1/Knowledge/{id}/Chunks List knowledge chunks
KnowledgeStatusApi FetchKnowledgeStatus Get /v1/Knowledge/{id}/Status Get knowledge status
PoliciesApi ListPolicies Get /v1/Policies List policies
SessionsApi FetchSession Get /v1/Sessions/{id} Get a session by ID
SessionsApi ListSessions Get /v1/Sessions List sessions
SessionsMessagesApi ListMessages Get /v1/Sessions/{sessionId}/Messages List messages
ToolsApi CreateTool Post /v1/Tools Create tool
ToolsApi DeleteTool Delete /v1/Tools/{id} Delete tool
ToolsApi FetchTool Get /v1/Tools/{id} Get tool
ToolsApi ListTools Get /v1/Tools List tools
ToolsApi UpdateTool Put /v1/Tools/{id} Update tool

Documentation For Models

Documentation For Authorization

accountSid_authToken

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

Documentation

Index

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

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) DeleteTool

func (c *ApiService) DeleteTool(Id string) error

delete a tool

func (*ApiService) FetchAssistant

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 (*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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL