Skip to main content

Core message definitions for Open World Agents

Project description

owa-msgs

Core message definitions for Open World Agents (OWA).

This package provides the standard message types used throughout the OWA ecosystem, organized by domain and registered through Python entry points for automatic discovery.

Installation

pip install owa-msgs

Usage

Using the Message Registry

The recommended way to access messages is through the global registry:

from owa.core import MESSAGES

# Access message classes by type name
KeyboardEvent = MESSAGES['desktop/KeyboardEvent']
MouseEvent = MESSAGES['desktop/MouseEvent']

# Create message instances
event = KeyboardEvent(event_type="press", vk=65)

Direct Imports

You can also import message classes directly:

from owa.msgs.desktop.keyboard import KeyboardEvent
from owa.msgs.desktop.mouse import MouseEvent

Discovering Available Message Types

To see all available message types, use the CLI command:

owl messages list

Or programmatically:

from owa.core import MESSAGES

# List all available message types
for message_type in sorted(MESSAGES.keys()):
    print(f"- {message_type}")

# Get detailed information about a specific message
print(f"Total messages: {len(MESSAGES)}")

Getting Message Details

For detailed information about any message type:

# Show comprehensive details about a message
owl messages show desktop/KeyboardEvent

# Show with usage examples
owl messages show desktop/KeyboardEvent --example

# Validate all messages
owl messages validate

Message Domains

Messages are organized by domain for better structure:

  • Desktop Domain (desktop/*): Desktop interaction messages including keyboard, mouse, window, and screen capture events

Extending with Custom Messages

To add custom message types, create a package with entry point registration:

# pyproject.toml
[project.entry-points."owa.msgs"]
"custom/MyMessage" = "my_package.messages:MyMessage"

Schema and Compatibility

All messages implement the BaseMessage interface from owa.core.message and are compatible with the OWAMcap format for data recording and playback.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

owa_msgs-0.6.6.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

owa_msgs-0.6.6-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file owa_msgs-0.6.6.tar.gz.

File metadata

  • Download URL: owa_msgs-0.6.6.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for owa_msgs-0.6.6.tar.gz
Algorithm Hash digest
SHA256 243f5a91575b8b550599c61e71575d74cd611af7cc4cb2add3faa1ffdc299512
MD5 79245c1415c57d14e3b2d9161b370528
BLAKE2b-256 f6393cf21755c6c4badc39491170f5a2a2829171b14f90d8b81df4213217f0cf

See more details on using hashes here.

File details

Details for the file owa_msgs-0.6.6-py3-none-any.whl.

File metadata

  • Download URL: owa_msgs-0.6.6-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for owa_msgs-0.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 32fefaf5e5bd27efd6d13a3095752626ca6495671ba73a59c5bb7218d55bf3fd
MD5 30221b729e60ddf21b763d469177644b
BLAKE2b-256 7adb6ff818091bac6456bbcda17b294e4eb2a1d9328513276a435f1a8b32e291

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page