File: types.go

package info (click to toggle)
golang-github-aws-aws-sdk-go-v2 1.24.1-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 554,032 kB
  • sloc: java: 15,941; makefile: 419; sh: 175
file content (137 lines) | stat: -rw-r--r-- 3,124 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// Code generated by smithy-go-codegen DO NOT EDIT.

package types

import (
	smithydocument "github.com/aws/smithy-go/document"
)

// Provides the category rules that are used to automatically categorize contacts
// based on uttered keywords and phrases.
type Categories struct {

	// The category rules that have been matched in the analyzed segment.
	//
	// This member is required.
	MatchedCategories []string

	// The category rule that was matched and when it occurred in the transcript.
	//
	// This member is required.
	MatchedDetails map[string]CategoryDetails

	noSmithyDocumentSerde
}

// Provides information about the category rule that was matched.
type CategoryDetails struct {

	// The section of audio where the category rule was detected.
	//
	// This member is required.
	PointsOfInterest []PointOfInterest

	noSmithyDocumentSerde
}

// For characters that were detected as issues, where they occur in the transcript.
type CharacterOffsets struct {

	// The beginning of the issue.
	//
	// This member is required.
	BeginOffsetChar *int32

	// The end of the issue.
	//
	// This member is required.
	EndOffsetChar *int32

	noSmithyDocumentSerde
}

// Potential issues that are detected based on an artificial intelligence analysis
// of each turn in the conversation.
type IssueDetected struct {

	// The offset for when the issue was detected in the segment.
	//
	// This member is required.
	CharacterOffsets *CharacterOffsets

	noSmithyDocumentSerde
}

// The section of the contact audio where that category rule was detected.
type PointOfInterest struct {

	// The beginning offset in milliseconds where the category rule was detected.
	//
	// This member is required.
	BeginOffsetMillis *int32

	// The ending offset in milliseconds where the category rule was detected.
	//
	// This member is required.
	EndOffsetMillis *int32

	noSmithyDocumentSerde
}

// An analyzed segment for a real-time analysis session.
type RealtimeContactAnalysisSegment struct {

	// The matched category rules.
	Categories *Categories

	// The analyzed transcript.
	Transcript *Transcript

	noSmithyDocumentSerde
}

// A list of messages in the session.
type Transcript struct {

	// The beginning offset in the contact for this transcript.
	//
	// This member is required.
	BeginOffsetMillis *int32

	// The content of the transcript.
	//
	// This member is required.
	Content *string

	// The end offset in the contact for this transcript.
	//
	// This member is required.
	EndOffsetMillis *int32

	// The identifier of the transcript.
	//
	// This member is required.
	Id *string

	// The identifier of the participant.
	//
	// This member is required.
	ParticipantId *string

	// The role of participant. For example, is it a customer, agent, or system.
	//
	// This member is required.
	ParticipantRole *string

	// The sentiment of the detected for this piece of transcript.
	//
	// This member is required.
	Sentiment SentimentValue

	// List of positions where issues were detected on the transcript.
	IssuesDetected []IssueDetected

	noSmithyDocumentSerde
}

type noSmithyDocumentSerde = smithydocument.NoSerde