You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

203 lines
4.9 KiB

  1. // @Title Golang SDK Client
  2. // @Description This code is auto generated
  3. // @Author Ecloud SDK
  4. package model
  5. import (
  6. "gitlab.ecloud.com/ecloud/ecloudsdkcore/utils"
  7. )
  8. type PageResponseDataAgentModeEnum string
  9. // List of AgentMode
  10. const (
  11. PageResponseDataAgentModeEnumLlm PageResponseDataAgentModeEnum = "LLM"
  12. PageResponseDataAgentModeEnumWorkflow PageResponseDataAgentModeEnum = "WORKFLOW"
  13. PageResponseDataAgentModeEnumChat PageResponseDataAgentModeEnum = "CHAT"
  14. PageResponseDataAgentModeEnumSupervisor PageResponseDataAgentModeEnum = "SUPERVISOR"
  15. )
  16. type PageResponseDataShelfStatusEnum string
  17. // List of ShelfStatus
  18. const (
  19. PageResponseDataShelfStatusEnumOn PageResponseDataShelfStatusEnum = "ON"
  20. PageResponseDataShelfStatusEnumOff PageResponseDataShelfStatusEnum = "OFF"
  21. )
  22. type PageResponseData struct {
  23. // 智能体模式
  24. AgentMode *PageResponseDataAgentModeEnum `json:"agentMode,omitempty"`
  25. // 推理模型名称
  26. ModelName *string `json:"modelName,omitempty"`
  27. // 智能体更新时间
  28. UpdatedTime *string `json:"updatedTime,omitempty"`
  29. // 智能体ID
  30. AgentId *string `json:"agentId,omitempty"`
  31. // 智能体上下架状态(ON上下、OFF下架)
  32. ShelfStatus *PageResponseDataShelfStatusEnum `json:"shelfStatus,omitempty"`
  33. // 智能体名称
  34. Name *string `json:"name,omitempty"`
  35. // 智能体图标
  36. Icon *string `json:"icon,omitempty"`
  37. // 智能体创建时间
  38. CreatedTime *string `json:"createdTime,omitempty"`
  39. // 智能体分类,openApi 创建的智能体一般默认OTHER,表示其它
  40. Category *string `json:"category,omitempty"`
  41. // 工作流ID
  42. WorkflowId *string `json:"workflowId,omitempty"`
  43. // 智能体简介
  44. Introduction *string `json:"introduction,omitempty"`
  45. // 智能体状态(0已保存、1已发布)
  46. Status *int32 `json:"status,omitempty"`
  47. }
  48. func (s PageResponseData) String() string {
  49. return utils.Beautify(s)
  50. }
  51. func (s PageResponseData) GoString() string {
  52. return s.String()
  53. }
  54. func (s PageResponseData) ToJsonString() string {
  55. return utils.ToJsonString(s)
  56. }
  57. func (s *PageResponseData) SetAgentMode(v PageResponseDataAgentModeEnum) *PageResponseData {
  58. s.AgentMode = &v
  59. return s
  60. }
  61. func (s *PageResponseData) SetModelName(v string) *PageResponseData {
  62. s.ModelName = &v
  63. return s
  64. }
  65. func (s *PageResponseData) SetUpdatedTime(v string) *PageResponseData {
  66. s.UpdatedTime = &v
  67. return s
  68. }
  69. func (s *PageResponseData) SetAgentId(v string) *PageResponseData {
  70. s.AgentId = &v
  71. return s
  72. }
  73. func (s *PageResponseData) SetShelfStatus(v PageResponseDataShelfStatusEnum) *PageResponseData {
  74. s.ShelfStatus = &v
  75. return s
  76. }
  77. func (s *PageResponseData) SetName(v string) *PageResponseData {
  78. s.Name = &v
  79. return s
  80. }
  81. func (s *PageResponseData) SetIcon(v string) *PageResponseData {
  82. s.Icon = &v
  83. return s
  84. }
  85. func (s *PageResponseData) SetCreatedTime(v string) *PageResponseData {
  86. s.CreatedTime = &v
  87. return s
  88. }
  89. func (s *PageResponseData) SetCategory(v string) *PageResponseData {
  90. s.Category = &v
  91. return s
  92. }
  93. func (s *PageResponseData) SetWorkflowId(v string) *PageResponseData {
  94. s.WorkflowId = &v
  95. return s
  96. }
  97. func (s *PageResponseData) SetIntroduction(v string) *PageResponseData {
  98. s.Introduction = &v
  99. return s
  100. }
  101. func (s *PageResponseData) SetStatus(v int32) *PageResponseData {
  102. s.Status = &v
  103. return s
  104. }
  105. type PageResponseDataBuilder struct {
  106. s *PageResponseData
  107. }
  108. func NewPageResponseDataBuilder() *PageResponseDataBuilder {
  109. s := &PageResponseData{}
  110. b := &PageResponseDataBuilder{s: s}
  111. return b
  112. }
  113. func (b *PageResponseDataBuilder) AgentMode(v PageResponseDataAgentModeEnum) *PageResponseDataBuilder {
  114. b.s.AgentMode = &v
  115. return b
  116. }
  117. func (b *PageResponseDataBuilder) ModelName(v string) *PageResponseDataBuilder {
  118. b.s.ModelName = &v
  119. return b
  120. }
  121. func (b *PageResponseDataBuilder) UpdatedTime(v string) *PageResponseDataBuilder {
  122. b.s.UpdatedTime = &v
  123. return b
  124. }
  125. func (b *PageResponseDataBuilder) AgentId(v string) *PageResponseDataBuilder {
  126. b.s.AgentId = &v
  127. return b
  128. }
  129. func (b *PageResponseDataBuilder) ShelfStatus(v PageResponseDataShelfStatusEnum) *PageResponseDataBuilder {
  130. b.s.ShelfStatus = &v
  131. return b
  132. }
  133. func (b *PageResponseDataBuilder) Name(v string) *PageResponseDataBuilder {
  134. b.s.Name = &v
  135. return b
  136. }
  137. func (b *PageResponseDataBuilder) Icon(v string) *PageResponseDataBuilder {
  138. b.s.Icon = &v
  139. return b
  140. }
  141. func (b *PageResponseDataBuilder) CreatedTime(v string) *PageResponseDataBuilder {
  142. b.s.CreatedTime = &v
  143. return b
  144. }
  145. func (b *PageResponseDataBuilder) Category(v string) *PageResponseDataBuilder {
  146. b.s.Category = &v
  147. return b
  148. }
  149. func (b *PageResponseDataBuilder) WorkflowId(v string) *PageResponseDataBuilder {
  150. b.s.WorkflowId = &v
  151. return b
  152. }
  153. func (b *PageResponseDataBuilder) Introduction(v string) *PageResponseDataBuilder {
  154. b.s.Introduction = &v
  155. return b
  156. }
  157. func (b *PageResponseDataBuilder) Status(v int32) *PageResponseDataBuilder {
  158. b.s.Status = &v
  159. return b
  160. }
  161. func (b *PageResponseDataBuilder) Build() *PageResponseData {
  162. return b.s
  163. }