nip.utils.api#
Utilities for dealing with APIs.
Exceptions
|
Base class for exceptions regarding connection errors. |
|
Raised when the agent's response is blocked by a content filter. |
|
Raised when the content of the generated message is |
|
Base class for exceptions raised during generation of the next message. |
|
A generic connection error, which doesn't have its own specific class. |
|
Raised when the user does not have enough credits to make a request. |
|
Raised when the agent's decision is invalid (i.e. not accept or reject). |
|
Raised when the response does not contain messages for all active channels. |
|
Raised when the agent has not made a decision within the max number of turns. |
|
Raised when the rate limit is exceeded. |
|
Raised when the response has been correctly received but is malformed. |
|
Raised when the request times out. |
|
Raised when the agent's finishes generating for an unknown reason. |
|
Raised when the agent's response text is not able to be parsed. |