Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetTranscriptResponse ¶ added in v1.36.0
type GetTranscriptResponse struct {
Transcript TranscriptDetail `json:"transcript"`
}
GetTranscriptResponse is the wrapper for the v1 get-transcript API response.
type IntentPayload ¶ added in v1.11.0
type Log ¶ added in v1.36.0
type Log struct {
Type string `json:"type"`
Data json.RawMessage `json:"data"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
Log represents a single log entry in the v1 transcript response.
type LogData ¶ added in v1.36.0
type LogData struct {
Type string `json:"type"`
Payload json.RawMessage `json:"payload,omitempty"`
}
LogData is used to partially parse the Data field of a Log entry.
type Payload ¶ added in v1.11.0
type Payload struct {
Time int64 `json:"time,omitempty"`
Type string `json:"type,omitempty"`
Payload interface{} `json:"payload,omitempty"`
}
func (Payload) GetIntentPayload ¶ added in v1.11.0
func (p Payload) GetIntentPayload() (*IntentPayload, error)
GetIntentPayload extracts IntentPayload from generic Payload
func (Payload) GetTextPayload ¶ added in v1.11.0
func (p Payload) GetTextPayload() (*TextPayload, error)
GetTextPayload extracts TextPayload from generic Payload
type SearchTranscriptsRequest ¶ added in v1.36.0
type SearchTranscriptsRequest struct {
StartDate string `json:"startDate,omitempty"`
EndDate string `json:"endDate,omitempty"`
SessionID string `json:"sessionID,omitempty"`
EnvironmentID string `json:"environmentID,omitempty"`
}
SearchTranscriptsRequest is the request body for the search transcripts API.
type SearchTranscriptsResponse ¶ added in v1.36.0
type SearchTranscriptsResponse struct {
Transcripts []TranscriptInformation `json:"transcripts"`
}
SearchTranscriptsResponse is the response from the search transcripts API.
type TextPayload ¶ added in v1.11.0
type TextPayload struct {
Message string `json:"message"`
}
type TranscriptDetail ¶ added in v1.36.0
type TranscriptDetail struct {
ID string `json:"id"`
SessionID string `json:"sessionID"`
ProjectID string `json:"projectID"`
EnvironmentID string `json:"environmentID"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
Logs []Log `json:"logs"`
}
TranscriptDetail contains the transcript data from the v1 API.
type TranscriptInformation ¶
type TranscriptInformation struct {
ID string `json:"id,omitempty"`
ProjectID string `json:"projectID,omitempty"`
SessionID string `json:"sessionID,omitempty"`
EnvironmentID string `json:"environmentID,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.