abacusai.code_agent_response — AbacusAI documentation

# abacusai.code_agent_response

## Classes

`CodeAgentResponse` | A response from a Code Agent

## Module Contents

class abacusai.code_agent_response.CodeAgentResponse(client, deploymentConversationId=None, messages=None, toolUseRequest=None)

  Bases: `abacusai.return_class.AbstractApiClass`

  A response from a Code Agent

  Parameters:

    - client (ApiClient) – An authenticated API Client instance

    - deploymentConversationId (str) – The unique identifier of the deployment conversation.

    - messages (list) – The conversation messages in the chat.

    - toolUseRequest (dict) – A request to use an external tool. Contains: - id (str): Unique identifier for the tool use request - input (dict): Input parameters for the tool, e.g. {‘command’: ‘ls’} - name (str): Name of the tool being used, e.g. ‘bash’ - type (str): Always ‘tool_use’ to identify this as a tool request

  deployment_conversation_id = None
  messages = None
  tool_use_request = None
  deprecated_keys
  __repr__()
  to_dict()

    Get a dict representation of the parameters in this class

    Returns:

      The dict value representation of the class parameters

    Return type:

      dict