Skip to content

Response Types & Schemas

This section details the response types and schemas used throughout the AGB SDK.

SessionResult

Result of operations returning a single Session

API Methods Using This Response Type

  • AGB.create()
  • AGB.get()

Properties

PropertyTypeDescription
request_idAnyUnique identifier for the API request. Defaults to "".
sessionAnyThe session object. Defaults to None.
successAnyWhether the operation was successful. Defaults to False.
error_messageAnyError message if the operation failed. Defaults to "".

Session Management APIs

Get a session by its ID or create a new session in the AGB cloud environment


DeleteResult

Result of delete operations

API Methods Using This Response Type

  • session.delete()
  • AGB.delete()

Properties

PropertyTypeDescription
request_idAnyUnique identifier for the API request. Defaults to "".
successAnyWhether the delete operation was successful. Defaults to False.
error_messageAnyError message if the operation failed. Defaults to "".

Session and Resource Deletion APIs

Delete sessions and manage resource cleanup operations


OperationResult

Result of general operations

API Methods Using This Response Type

  • session.set_labels()
  • session.get_labels()
  • session.info()
  • session.get_link()
  • agb.context.update()
  • agb.context.delete()
  • agb.context.delete_file()
  • session.computer.get_cursor_position()
  • session.computer.get_screen_size()
  • session.computer.screenshot()

Properties

PropertyTypeDescription
request_idAnyUnique identifier for the API request. Defaults to "".
successAnyWhether the operation was successful. Defaults to False.
dataAnyData returned by the operation. Defaults to None.
error_messageAnyError message if the operation failed. Defaults to "".

Context and Session Management APIs

Update context data, delete files, and manage session operations


BoolResult

Result of operations returning a boolean value

API Methods Using This Response Type

  • session.file_system.create_directory()
  • session.file_system.edit_file()
  • session.file_system.move_file()
  • session.file_system.delete_file()
  • session.file_system.write_file()
  • session.computer.click_mouse()
  • session.computer.move_mouse()
  • session.computer.drag_mouse()
  • session.computer.scroll()
  • session.computer.input_text()
  • session.computer.press_keys()
  • session.computer.release_keys()
  • session.computer.activate_window()
  • session.computer.close_window()
  • session.computer.maximize_window()
  • session.computer.minimize_window()
  • session.computer.restore_window()
  • session.computer.resize_window()
  • session.computer.fullscreen_window()
  • session.computer.focus_mode()

Properties

PropertyTypeDescription
request_idAnyUnique identifier for the API request. Defaults to "".
successAnyWhether the operation was successful. Defaults to False.
dataAnyThe boolean result. Defaults to None.
error_messageAnyError message if the operation failed. Defaults to "".

File System Validation APIs

File existence checks and validation operations


SessionListResult

Result of operations returning a list of Sessions

API Methods Using This Response Type

  • AGB.list()

Properties

PropertyTypeDescription
request_idAnyThe request ID.
successAnyWhether the operation was successful.
error_messageAnyError message if the operation failed.
session_idsAnyList of session IDs.
next_tokenAnyToken for the next page of results.
max_resultsAnyNumber of results per page.
total_countAnyTotal number of results available.

Session Listing APIs

Returns paginated list of session IDs filtered by labels


FileInfoResult

Result of file info operations

API Methods Using This Response Type

  • session.file_system.get_file_info()

Properties

PropertyTypeDescription
request_idAnyUnique identifier for the API request. Defaults to "".
successAnyWhether the operation was successful. Defaults to False.
file_infoAnyFile information. Defaults to None.
error_messageAnyError message if the operation failed. Defaults to "".

File Information and Metadata APIs

Get file properties, permissions, and metadata information


FileContentResult

Result of file read operations

API Methods Using This Response Type

  • session.file_system.read_file()
  • session.file_system.read()

Properties

PropertyTypeDescription
request_idAnyUnique identifier for the API request. Defaults to "".
successAnyWhether the operation was successful. Defaults to False.
contentAnyFile content. Defaults to "".
error_messageAnyError message if the operation failed. Defaults to "".

File Content Access APIs

Read file content and retrieve file data


MultipleFileContentResult

Result of multiple file read operations

API Methods Using This Response Type

  • session.file_system.read_multiple_files()

Properties

PropertyTypeDescription
request_idAnyUnique identifier for the API request. Defaults to "".
successAnyWhether the operation was successful. Defaults to False.
contentsAnyDictionary of file paths to file contents. Defaults to None.
error_messageAnyError message if the operation failed. Defaults to "".

File Content Management APIs

Read multiple files and batch file content operations


DirectoryListResult

Result of directory listing operations

API Methods Using This Response Type

  • session.file_system.list_directory()

Properties

PropertyTypeDescription
request_idAnyUnique identifier for the API request. Defaults to "".
successAnyWhether the operation was successful. Defaults to False.
entriesAnyDirectory entries. Defaults to None.
error_messageAnyError message if the operation failed. Defaults to "".

Directory Management APIs

List directory contents and navigate file system structure


FileSearchResult

Result of file search operations

API Methods Using This Response Type

  • session.file_system.search_files()

Properties

PropertyTypeDescription
request_idAnyUnique identifier for the API request. Defaults to "".
successAnyWhether the operation was successful. Defaults to False.
matchesAnyMatching file paths. Defaults to None.
error_messageAnyError message if the operation failed. Defaults to "".

File Search and Discovery APIs

Search files by patterns and locate specific file content


Base Response Type

All response types inherit from ApiResponse, which provides the basic request_id property for tracking API requests.


Documentation generated automatically from source code.