Skip to content

Received message types are incorrectly logged when using http exchange #341

Description

@benclifford

Describe the problem.

Messages received via the http exchange are received as dict objects, rather than message objects defined in academy.message.

So while logging of messages shows the correct message type:

the receive of a message does not show the message type:

[2026-02-25 12:20:48.914] [tid=254838 pid=254838 task=Task-11]  DEBUG    (academy.exchange.client) Received dict from AgentId<853058f4> for UserId<47635e05> message_type: dict src: AgentId<853058f4> dest: UserId<47635e05> message_tag: 8c4c7bcc-57b9-45d9-aae4-8cbeb6c45b81 message_label: dad098df-2e38-4034-94dd-497b85994abf

It would be nice to log the message type correctly here.

How did you install and run the code?

pip install -e .

Version

a0e95e6

Python Version

Python 3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0] on linux

OS and Platform

x86_64 linux

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions