agent_inspect.exception package

Submodules

agent_inspect.exception.error_codes module

class agent_inspect.exception.error_codes.ClientComponent(value)[source]

Bases: Enum

An enumeration.

CLIENT_ERROR_CODE = '07'
class agent_inspect.exception.error_codes.ErrorCode(value)[source]

Bases: Enum

An enumeration.

AUC_CALCULATION_ERROR = '0006'
CLIENT_REQUEST_ERROR = '0017'
EMPTY_PROGRESS_SCORE = '0005'
EMPTY_VALIDATION_RESULT = '0004'
INSUFFICIENT_JUDGE_RESPONSES_ERROR = '0007'
INVALID_JSON_DECODE_ERROR = '0014'
INVALID_JUDGE_RESPONSE_FORMAT_ERROR = '0003'
INVALID_JUDGE_TRIALS_ERROR = '0002'
INVALID_LLM_JUDGE_RESULT_ERROR = '0000'
INVALID_USER_MESSAGE_REFLECTION = '0010'
INVALID_USER_PROXY_RESPONSE = '0011'
INVALID_VALUE = '0009'
MAX_RETRY_EXCEEDED_ERROR = '0001'
MISSING_VALUE = '0008'
PPT_CALCULATION_ERROR = '0012'
UNSUCCESSFUL_LLM_SUMMARIZATION = '0015'
UNSUCCESSFUL_MAJORITY_VOTING = '0016'
UNSUPPORTED_ATTRIBUTION_TYPE = '0013'
class agent_inspect.exception.error_codes.EvaluationComponent(value)[source]

Bases: Enum

An enumeration.

EVALUATION_ERROR_CODE = '05'
class agent_inspect.exception.error_codes.ToolComponent(value)[source]

Bases: Enum

An enumeration.

TOOL_ERROR_CODE = '08'
class agent_inspect.exception.error_codes.UserProxyComponent(value)[source]

Bases: Enum

An enumeration.

USER_PROXY_ERROR_CODE = '06'

agent_inspect.exception.exception module

exception agent_inspect.exception.exception.EvaluationError(internal_code, message)[source]

Bases: Exception

Base exception class for Evaluation errors.

Parameters:
  • internal_code (str)

  • message (str)

exception agent_inspect.exception.exception.InvalidInputValueError(internal_code, message, component_code='05')[source]

Bases: ValueError

Parameters:
  • internal_code (str)

  • message (str)

exception agent_inspect.exception.exception.ToolError(internal_code, message)[source]

Bases: Exception

Base exception class for Tool errors.

Parameters:
  • internal_code (str)

  • message (str)

exception agent_inspect.exception.exception.UserProxyError(internal_code, message)[source]

Bases: Exception

Parameters:
  • internal_code (str)

  • message (str)

Module contents

class agent_inspect.exception.ClientComponent(value)[source]

Bases: Enum

An enumeration.

CLIENT_ERROR_CODE = '07'
class agent_inspect.exception.ErrorCode(value)[source]

Bases: Enum

An enumeration.

AUC_CALCULATION_ERROR = '0006'
CLIENT_REQUEST_ERROR = '0017'
EMPTY_PROGRESS_SCORE = '0005'
EMPTY_VALIDATION_RESULT = '0004'
INSUFFICIENT_JUDGE_RESPONSES_ERROR = '0007'
INVALID_JSON_DECODE_ERROR = '0014'
INVALID_JUDGE_RESPONSE_FORMAT_ERROR = '0003'
INVALID_JUDGE_TRIALS_ERROR = '0002'
INVALID_LLM_JUDGE_RESULT_ERROR = '0000'
INVALID_USER_MESSAGE_REFLECTION = '0010'
INVALID_USER_PROXY_RESPONSE = '0011'
INVALID_VALUE = '0009'
MAX_RETRY_EXCEEDED_ERROR = '0001'
MISSING_VALUE = '0008'
PPT_CALCULATION_ERROR = '0012'
UNSUCCESSFUL_LLM_SUMMARIZATION = '0015'
UNSUCCESSFUL_MAJORITY_VOTING = '0016'
UNSUPPORTED_ATTRIBUTION_TYPE = '0013'
class agent_inspect.exception.EvaluationComponent(value)[source]

Bases: Enum

An enumeration.

EVALUATION_ERROR_CODE = '05'
exception agent_inspect.exception.EvaluationError(internal_code, message)[source]

Bases: Exception

Base exception class for Evaluation errors.

Parameters:
  • internal_code (str)

  • message (str)

exception agent_inspect.exception.InvalidInputValueError(internal_code, message, component_code='05')[source]

Bases: ValueError

Parameters:
  • internal_code (str)

  • message (str)

class agent_inspect.exception.ToolComponent(value)[source]

Bases: Enum

An enumeration.

TOOL_ERROR_CODE = '08'
exception agent_inspect.exception.ToolError(internal_code, message)[source]

Bases: Exception

Base exception class for Tool errors.

Parameters:
  • internal_code (str)

  • message (str)

class agent_inspect.exception.UserProxyComponent(value)[source]

Bases: Enum

An enumeration.

USER_PROXY_ERROR_CODE = '06'
exception agent_inspect.exception.UserProxyError(internal_code, message)[source]

Bases: Exception

Parameters:
  • internal_code (str)

  • message (str)