| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 646669d commit 484e2a8
119 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,8 @@ | |||
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | 12 | class AgentCreateResponse(BaseModel): | |
| 13 | + """Information about a newly created Agent""" | ||
| 14 | + | ||
| 13 | 15 | agent: Optional["APIAgent"] = None | |
| 14 | 16 | """An Agent""" | |
| 15 | 17 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,8 @@ | |||
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | 12 | class AgentDeleteResponse(BaseModel): | |
| 13 | + """Info about a deleted agent""" | ||
| 14 | + | ||
| 13 | 15 | agent: Optional["APIAgent"] = None | |
| 14 | 16 | """An Agent""" | |
| 15 | 17 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,6 +24,8 @@ | |||
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | 26 | class AgentChatbot(BaseModel): | |
| 27 | + """A Chatbot""" | ||
| 28 | + | ||
| 27 | 29 | allowed_domains: Optional[List[str]] = None | |
| 28 | 30 | ||
| 29 | 31 | button_background_color: Optional[str] = None | |
@@ -41,11 +43,15 @@ class AgentChatbot(BaseModel): | |||
| 41 | 43 | ||
| 42 | 44 | ||
| 43 | 45 | class AgentChatbotIdentifier(BaseModel): | |
| 46 | + """Agent Chatbot Identifier""" | ||
| 47 | + | ||
| 44 | 48 | agent_chatbot_identifier: Optional[str] = None | |
| 45 | 49 | """Agent chatbot identifier""" | |
| 46 | 50 | ||
| 47 | 51 | ||
| 48 | 52 | class AgentDeployment(BaseModel): | |
| 53 | + """Description of deployment""" | ||
| 54 | + | ||
| 49 | 55 | created_at: Optional[datetime] = None | |
| 50 | 56 | """Creation date / time""" | |
| 51 | 57 | ||
@@ -98,6 +104,8 @@ class AgentTemplateGuardrail(BaseModel): | |||
| 98 | 104 | ||
| 99 | 105 | ||
| 100 | 106 | class AgentTemplate(BaseModel): | |
| 107 | + """Represents an AgentTemplate entity""" | ||
| 108 | + | ||
| 101 | 109 | created_at: Optional[datetime] = None | |
| 102 | 110 | """The agent template's creation date""" | |
| 103 | 111 | ||
@@ -157,6 +165,8 @@ class AgentTemplate(BaseModel): | |||
| 157 | 165 | ||
| 158 | 166 | ||
| 159 | 167 | class Agent(BaseModel): | |
| 168 | + """A GenAI Agent's configuration""" | ||
| 169 | + | ||
| 160 | 170 | chatbot: Optional[AgentChatbot] = None | |
| 161 | 171 | """A Chatbot""" | |
| 162 | 172 | ||
@@ -266,6 +276,8 @@ class Agent(BaseModel): | |||
| 266 | 276 | ||
| 267 | 277 | ||
| 268 | 278 | class AgentListResponse(BaseModel): | |
| 279 | + """List of Agents""" | ||
| 280 | + | ||
| 269 | 281 | agents: Optional[List[Agent]] = None | |
| 270 | 282 | """Agents""" | |
| 271 | 283 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,8 @@ | |||
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | 12 | class AgentRetrieveResponse(BaseModel): | |
| 13 | + """One Agent""" | ||
| 14 | + | ||
| 13 | 15 | agent: Optional["APIAgent"] = None | |
| 14 | 16 | """An Agent""" | |
| 15 | 17 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,12 +9,16 @@ | |||
| 9 | 9 | ||
| 10 | 10 | ||
| 11 | 11 | class LogInsightsUsageMeasurement(BaseModel): | |
| 12 | + """Usage Measurement Description""" | ||
| 13 | + | ||
| 12 | 14 | tokens: Optional[int] = None | |
| 13 | 15 | ||
| 14 | 16 | usage_type: Optional[str] = None | |
| 15 | 17 | ||
| 16 | 18 | ||
| 17 | 19 | class LogInsightsUsage(BaseModel): | |
| 20 | + """Resource Usage Description""" | ||
| 21 | + | ||
| 18 | 22 | measurements: Optional[List[LogInsightsUsageMeasurement]] = None | |
| 19 | 23 | ||
| 20 | 24 | resource_uuid: Optional[str] = None | |
@@ -25,12 +29,16 @@ class LogInsightsUsage(BaseModel): | |||
| 25 | 29 | ||
| 26 | 30 | ||
| 27 | 31 | class UsageMeasurement(BaseModel): | |
| 32 | + """Usage Measurement Description""" | ||
| 33 | + | ||
| 28 | 34 | tokens: Optional[int] = None | |
| 29 | 35 | ||
| 30 | 36 | usage_type: Optional[str] = None | |
| 31 | 37 | ||
| 32 | 38 | ||
| 33 | 39 | class Usage(BaseModel): | |
| 40 | + """Resource Usage Description""" | ||
| 41 | + | ||
| 34 | 42 | measurements: Optional[List[UsageMeasurement]] = None | |
| 35 | 43 | ||
| 36 | 44 | resource_uuid: Optional[str] = None | |
@@ -41,6 +49,8 @@ class Usage(BaseModel): | |||
| 41 | 49 | ||
| 42 | 50 | ||
| 43 | 51 | class AgentRetrieveUsageResponse(BaseModel): | |
| 52 | + """Agent usage""" | ||
| 53 | + | ||
| 44 | 54 | log_insights_usage: Optional[LogInsightsUsage] = None | |
| 45 | 55 | """Resource Usage Description""" | |
| 46 | 56 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,8 @@ | |||
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | 12 | class AgentUpdateResponse(BaseModel): | |
| 13 | + """Information about an updated agent""" | ||
| 14 | + | ||
| 13 | 15 | agent: Optional["APIAgent"] = None | |
| 14 | 16 | """An Agent""" | |
| 15 | 17 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,8 @@ | |||
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | 12 | class AgentUpdateStatusResponse(BaseModel): | |
| 13 | + """UpdateAgentDeploymentVisbilityOutput description""" | ||
| 14 | + | ||
| 13 | 15 | agent: Optional["APIAgent"] = None | |
| 14 | 16 | """An Agent""" | |
| 15 | 17 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,8 @@ | |||
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | 12 | class APILinkKnowledgeBaseOutput(BaseModel): | |
| 13 | + """Information about a linked knowledge base""" | ||
| 14 | + | ||
| 13 | 15 | agent: Optional["APIAgent"] = None | |
| 14 | 16 | """An Agent""" | |
| 15 | 17 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -166,6 +166,8 @@ class CompletionCreateParamsBase(TypedDict, total=False): | |||
| 166 | 166 | ||
| 167 | 167 | ||
| 168 | 168 | class MessageChatCompletionRequestSystemMessageContentArrayOfContentPartUnionMember1(TypedDict, total=False): | |
| 169 | + """Content part with type and text""" | ||
| 170 | + | ||
| 169 | 171 | text: Required[str] | |
| 170 | 172 | """The text content""" | |
| 171 | 173 | ||
@@ -179,6 +181,11 @@ class MessageChatCompletionRequestSystemMessageContentArrayOfContentPartUnionMem | |||
| 179 | 181 | ||
| 180 | 182 | ||
| 181 | 183 | class MessageChatCompletionRequestSystemMessage(TypedDict, total=False): | |
| 184 | + """ | ||
| 185 | + System-provided instructions that the model should follow, regardless of | ||
| 186 | + messages sent by the user. | ||
| 187 | + """ | ||
| 188 | + | ||
| 182 | 189 | content: Required[Union[str, SequenceNotStr[MessageChatCompletionRequestSystemMessageContentArrayOfContentPart]]] | |
| 183 | 190 | """The contents of the system message.""" | |
| 184 | 191 | ||
@@ -187,6 +194,8 @@ class MessageChatCompletionRequestSystemMessage(TypedDict, total=False): | |||
| 187 | 194 | ||
| 188 | 195 | ||
| 189 | 196 | class MessageChatCompletionRequestDeveloperMessageContentArrayOfContentPartUnionMember1(TypedDict, total=False): | |
| 197 | + """Content part with type and text""" | ||
| 198 | + | ||
| 190 | 199 | text: Required[str] | |
| 191 | 200 | """The text content""" | |
| 192 | 201 | ||
@@ -200,6 +209,11 @@ class MessageChatCompletionRequestDeveloperMessageContentArrayOfContentPartUnion | |||
| 200 | 209 | ||
| 201 | 210 | ||
| 202 | 211 | class MessageChatCompletionRequestDeveloperMessage(TypedDict, total=False): | |
| 212 | + """ | ||
| 213 | + Developer-provided instructions that the model should follow, regardless of | ||
| 214 | + messages sent by the user. | ||
| 215 | + """ | ||
| 216 | + | ||
| 203 | 217 | content: Required[Union[str, SequenceNotStr[MessageChatCompletionRequestDeveloperMessageContentArrayOfContentPart]]] | |
| 204 | 218 | """The contents of the developer message.""" | |
| 205 | 219 | ||
@@ -208,6 +222,8 @@ class MessageChatCompletionRequestDeveloperMessage(TypedDict, total=False): | |||
| 208 | 222 | ||
| 209 | 223 | ||
| 210 | 224 | class MessageChatCompletionRequestUserMessageContentArrayOfContentPartUnionMember1(TypedDict, total=False): | |
| 225 | + """Content part with type and text""" | ||
| 226 | + | ||
| 211 | 227 | text: Required[str] | |
| 212 | 228 | """The text content""" | |
| 213 | 229 | ||
@@ -221,6 +237,11 @@ class MessageChatCompletionRequestUserMessageContentArrayOfContentPartUnionMembe | |||
| 221 | 237 | ||
| 222 | 238 | ||
| 223 | 239 | class MessageChatCompletionRequestUserMessage(TypedDict, total=False): | |
| 240 | + """ | ||
| 241 | + Messages sent by an end user, containing prompts or additional context | ||
| 242 | + information. | ||
| 243 | + """ | ||
| 244 | + | ||
| 224 | 245 | content: Required[Union[str, SequenceNotStr[MessageChatCompletionRequestUserMessageContentArrayOfContentPart]]] | |
| 225 | 246 | """The contents of the user message.""" | |
| 226 | 247 | ||
@@ -229,6 +250,8 @@ class MessageChatCompletionRequestUserMessage(TypedDict, total=False): | |||
| 229 | 250 | ||
| 230 | 251 | ||
| 231 | 252 | class MessageChatCompletionRequestAssistantMessageContentArrayOfContentPartUnionMember1(TypedDict, total=False): | |
| 253 | + """Content part with type and text""" | ||
| 254 | + | ||
| 232 | 255 | text: Required[str] | |
| 233 | 256 | """The text content""" | |
| 234 | 257 | ||
@@ -242,6 +265,8 @@ class MessageChatCompletionRequestAssistantMessageContentArrayOfContentPartUnion | |||
| 242 | 265 | ||
| 243 | 266 | ||
| 244 | 267 | class MessageChatCompletionRequestAssistantMessageToolCallFunction(TypedDict, total=False): | |
| 268 | + """The function that the model called.""" | ||
| 269 | + | ||
| 245 | 270 | arguments: Required[str] | |
| 246 | 271 | """ | |
| 247 | 272 | The arguments to call the function with, as generated by the model in JSON | |
@@ -266,6 +291,8 @@ class MessageChatCompletionRequestAssistantMessageToolCall(TypedDict, total=Fals | |||
| 266 | 291 | ||
| 267 | 292 | ||
| 268 | 293 | class MessageChatCompletionRequestAssistantMessage(TypedDict, total=False): | |
| 294 | + """Messages sent by the model in response to user messages.""" | ||
| 295 | + | ||
| 269 | 296 | role: Required[Literal["assistant"]] | |
| 270 | 297 | """The role of the messages author, in this case `assistant`.""" | |
| 271 | 298 | ||
@@ -297,6 +324,8 @@ class MessageChatCompletionRequestToolMessage(TypedDict, total=False): | |||
| 297 | 324 | ||
| 298 | 325 | ||
| 299 | 326 | class StreamOptions(TypedDict, total=False): | |
| 327 | + """Options for streaming response. Only set this when you set `stream: true`.""" | ||
| 328 | + | ||
| 300 | 329 | include_usage: bool | |
| 301 | 330 | """If set, an additional chunk will be streamed before the `data: [DONE]` message. | |
| 302 | 331 | ||
@@ -315,6 +344,11 @@ class ToolChoiceChatCompletionNamedToolChoiceFunction(TypedDict, total=False): | |||
| 315 | 344 | ||
| 316 | 345 | ||
| 317 | 346 | class ToolChoiceChatCompletionNamedToolChoice(TypedDict, total=False): | |
| 347 | + """Specifies a tool the model should use. | ||
| 348 | + | ||
| 349 | + Use to force the model to call a specific function. | ||
| 350 | + """ | ||
| 351 | + | ||
| 318 | 352 | function: Required[ToolChoiceChatCompletionNamedToolChoiceFunction] | |
| 319 | 353 | ||
| 320 | 354 | type: Required[Literal["function"]] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,6 +18,8 @@ | |||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | 20 | class ChoiceLogprobs(BaseModel): | |
| 21 | + """Log probability information for the choice.""" | ||
| 22 | + | ||
| 21 | 23 | content: Optional[List[ChatCompletionTokenLogprob]] = None | |
| 22 | 24 | """A list of message content tokens with log probability information.""" | |
| 23 | 25 | ||
@@ -26,6 +28,8 @@ class ChoiceLogprobs(BaseModel): | |||
| 26 | 28 | ||
| 27 | 29 | ||
| 28 | 30 | class ChoiceMessageToolCallFunction(BaseModel): | |
| 31 | + """The function that the model called.""" | ||
| 32 | + | ||
| 29 | 33 | arguments: str | |
| 30 | 34 | """ | |
| 31 | 35 | The arguments to call the function with, as generated by the model in JSON | |
@@ -50,6 +54,8 @@ class ChoiceMessageToolCall(BaseModel): | |||
| 50 | 54 | ||
| 51 | 55 | ||
| 52 | 56 | class ChoiceMessage(BaseModel): | |
| 57 | + """A chat completion message generated by the model.""" | ||
| 58 | + | ||
| 53 | 59 | content: Optional[str] = None | |
| 54 | 60 | """The contents of the message.""" | |
| 55 | 61 | ||
@@ -86,6 +92,10 @@ class Choice(BaseModel): | |||
| 86 | 92 | ||
| 87 | 93 | ||
| 88 | 94 | class CompletionCreateResponse(BaseModel): | |
| 95 | + """ | ||
| 96 | + Represents a chat completion response returned by model, based on the provided input. | ||
| 97 | + """ | ||
| 98 | + | ||
| 89 | 99 | id: str | |
| 90 | 100 | """A unique identifier for the chat completion.""" | |
| 91 | 101 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments