跳到主要内容

openhands.core.exceptions

AgentError Objects

class AgentError(Exception)

Base class for all agent exceptions.

OperationCancelled Objects

class OperationCancelled(Exception)

Exception raised when an operation is cancelled (e.g. by a keyboard interrupt).

CloudFlareBlockageError Objects

class CloudFlareBlockageError(Exception)

Exception raised when a request is blocked by CloudFlare.

FunctionCallConversionError Objects

class FunctionCallConversionError(Exception)

Exception raised when FunctionCallingConverter failed to convert a non-function call message to a function call message.

This typically happens when there's a malformed message (e.g., missing <function=...> tags). But not due to LLM output.

FunctionCallValidationError Objects

class FunctionCallValidationError(Exception)

Exception raised when FunctionCallingConverter failed to validate a function call message.

This typically happens when the LLM outputs unrecognized function call / parameter names / values.

FunctionCallNotExistsError Objects

class FunctionCallNotExistsError(Exception)

Exception raised when an LLM call a tool that is not registered.

AgentRuntimeError Objects

class AgentRuntimeError(Exception)

Base class for all agent runtime exceptions.

AgentRuntimeBuildError Objects

class AgentRuntimeBuildError(AgentRuntimeError)

Exception raised when an agent runtime build operation fails.

AgentRuntimeTimeoutError Objects

class AgentRuntimeTimeoutError(AgentRuntimeError)

Exception raised when an agent runtime operation times out.

AgentRuntimeUnavailableError Objects

class AgentRuntimeUnavailableError(AgentRuntimeError)

Exception raised when an agent runtime is unavailable.

AgentRuntimeNotReadyError Objects

class AgentRuntimeNotReadyError(AgentRuntimeUnavailableError)

Exception raised when an agent runtime is not ready.

AgentRuntimeDisconnectedError Objects

class AgentRuntimeDisconnectedError(AgentRuntimeUnavailableError)

Exception raised when an agent runtime is disconnected.

AgentRuntimeNotFoundError Objects

class AgentRuntimeNotFoundError(AgentRuntimeUnavailableError)

Exception raised when an agent runtime is not found.