@elizaos/python 2.0.0-alpha.27 → 2.0.0-alpha.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/elizaos/advanced_capabilities/actions/add_contact.py +4 -3
  2. package/elizaos/advanced_capabilities/actions/follow_room.py +2 -2
  3. package/elizaos/advanced_capabilities/actions/image_generation.py +2 -2
  4. package/elizaos/advanced_capabilities/actions/mute_room.py +2 -2
  5. package/elizaos/advanced_capabilities/actions/remove_contact.py +2 -2
  6. package/elizaos/advanced_capabilities/actions/roles.py +5 -4
  7. package/elizaos/advanced_capabilities/actions/search_contacts.py +3 -3
  8. package/elizaos/advanced_capabilities/actions/send_message.py +2 -2
  9. package/elizaos/advanced_capabilities/actions/settings.py +2 -2
  10. package/elizaos/advanced_capabilities/actions/unfollow_room.py +2 -2
  11. package/elizaos/advanced_capabilities/actions/unmute_room.py +2 -2
  12. package/elizaos/advanced_capabilities/actions/update_contact.py +2 -2
  13. package/elizaos/advanced_capabilities/actions/update_entity.py +2 -2
  14. package/elizaos/advanced_capabilities/providers/knowledge.py +8 -9
  15. package/elizaos/advanced_capabilities/services/rolodex.py +2 -2
  16. package/elizaos/advanced_memory/actions/reset_session.py +143 -11
  17. package/elizaos/advanced_memory/memory_service.py +54 -10
  18. package/elizaos/advanced_memory/plugin.py +2 -1
  19. package/elizaos/advanced_memory/types.py +2 -2
  20. package/elizaos/advanced_planning/actions/schedule_follow_up.py +2 -2
  21. package/elizaos/basic_capabilities/providers/contacts.py +1 -1
  22. package/elizaos/basic_capabilities/providers/follow_ups.py +1 -1
  23. package/elizaos/basic_capabilities/providers/knowledge.py +8 -9
  24. package/elizaos/basic_capabilities/providers/recent_messages.py +5 -0
  25. package/elizaos/basic_capabilities/providers/relationships.py +19 -13
  26. package/elizaos/basic_capabilities/services/embedding.py +10 -7
  27. package/elizaos/basic_capabilities/services/task.py +3 -3
  28. package/elizaos/bootstrap/actions/__init__.py +3 -0
  29. package/elizaos/bootstrap/actions/reset_session.py +3 -0
  30. package/elizaos/bootstrap/actions/roles.py +5 -4
  31. package/elizaos/bootstrap/providers/knowledge.py +8 -9
  32. package/elizaos/bootstrap/providers/recent_messages.py +5 -0
  33. package/elizaos/bootstrap/providers/relationships.py +19 -13
  34. package/elizaos/bootstrap/services/embedding.py +53 -10
  35. package/elizaos/bootstrap/services/rolodex.py +2 -2
  36. package/elizaos/bootstrap/services/task.py +3 -3
  37. package/elizaos/media/mime.py +2 -2
  38. package/elizaos/runtime.py +10 -9
  39. package/elizaos/services/hook_service.py +3 -3
  40. package/elizaos/types/generated/eliza/v1/agent_pb2.py +4 -4
  41. package/elizaos/types/generated/eliza/v1/components_pb2.py +4 -4
  42. package/elizaos/types/generated/eliza/v1/database_pb2.py +4 -4
  43. package/elizaos/types/generated/eliza/v1/environment_pb2.py +4 -4
  44. package/elizaos/types/generated/eliza/v1/events_pb2.py +4 -4
  45. package/elizaos/types/generated/eliza/v1/ipc_pb2.py +4 -4
  46. package/elizaos/types/generated/eliza/v1/knowledge_pb2.py +4 -4
  47. package/elizaos/types/generated/eliza/v1/memory_pb2.py +4 -4
  48. package/elizaos/types/generated/eliza/v1/message_service_pb2.py +4 -4
  49. package/elizaos/types/generated/eliza/v1/messaging_pb2.py +4 -4
  50. package/elizaos/types/generated/eliza/v1/model_pb2.py +4 -4
  51. package/elizaos/types/generated/eliza/v1/payment_pb2.py +4 -4
  52. package/elizaos/types/generated/eliza/v1/plugin_pb2.py +4 -4
  53. package/elizaos/types/generated/eliza/v1/primitives_pb2.py +4 -4
  54. package/elizaos/types/generated/eliza/v1/prompts_pb2.py +4 -4
  55. package/elizaos/types/generated/eliza/v1/service_interfaces_pb2.py +4 -4
  56. package/elizaos/types/generated/eliza/v1/service_pb2.py +4 -4
  57. package/elizaos/types/generated/eliza/v1/settings_pb2.py +4 -4
  58. package/elizaos/types/generated/eliza/v1/state_pb2.py +4 -4
  59. package/elizaos/types/generated/eliza/v1/task_pb2.py +4 -4
  60. package/elizaos/types/generated/eliza/v1/tee_pb2.py +4 -4
  61. package/elizaos/types/generated/eliza/v1/testing_pb2.py +4 -4
  62. package/elizaos/types/model.py +3 -3
  63. package/elizaos/types/primitives.py +3 -3
  64. package/elizaos/types/runtime.py +12 -2
  65. package/elizaos/types/state.py +2 -2
  66. package/elizaos/utils/streaming.py +3 -3
  67. package/package.json +3 -3
  68. package/pyproject.toml +1 -2
  69. package/requirements-dev.lock +2 -2
  70. package/requirements.in +1 -2
  71. package/requirements.lock +2 -2
  72. package/tests/test_history_compaction.py +104 -0
  73. package/tests/test_memory_bounds.py +115 -0
  74. package/tests/test_validation.py +1 -1
  75. package/uv.lock +10 -10
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/agent.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/agent.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/components.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/components.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/database.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/database.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/environment.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/environment.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/events.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/events.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/ipc.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/ipc.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/knowledge.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/knowledge.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/memory.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/memory.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/message_service.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/message_service.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/messaging.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/messaging.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/model.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/model.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/payment.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/payment.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/plugin.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/plugin.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/primitives.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/primitives.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/prompts.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/prompts.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/service_interfaces.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/service_interfaces.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/service.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/service.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/settings.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/settings.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/state.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/state.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/task.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/task.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/tee.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/tee.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: eliza/v1/testing.proto
5
- # Protobuf Python Version: 6.33.5
5
+ # Protobuf Python Version: 7.34.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
11
11
  from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 33,
16
- 5,
14
+ 7,
15
+ 34,
16
+ 0,
17
17
  '',
18
18
  'eliza/v1/testing.proto'
19
19
  )
@@ -1,7 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from collections.abc import Awaitable, Callable
4
- from enum import Enum
4
+ from enum import StrEnum
5
5
  from typing import TYPE_CHECKING, Any
6
6
 
7
7
  from pydantic import BaseModel, Field
@@ -10,13 +10,13 @@ if TYPE_CHECKING:
10
10
  from elizaos.types.runtime import IAgentRuntime
11
11
 
12
12
 
13
- class LLMMode(str, Enum):
13
+ class LLMMode(StrEnum):
14
14
  DEFAULT = "DEFAULT"
15
15
  SMALL = "SMALL"
16
16
  LARGE = "LARGE"
17
17
 
18
18
 
19
- class ModelType(str, Enum):
19
+ class ModelType(StrEnum):
20
20
  # Text generation models
21
21
  TEXT_SMALL = "TEXT_SMALL"
22
22
  TEXT_LARGE = "TEXT_LARGE"
@@ -4,7 +4,7 @@ import hashlib
4
4
  import re
5
5
  import urllib.parse
6
6
  import uuid as uuid_module
7
- from enum import Enum
7
+ from enum import StrEnum
8
8
 
9
9
  from elizaos.types.generated.eliza.v1 import primitives_pb2
10
10
 
@@ -63,7 +63,7 @@ def string_to_uuid(target: str | int | uuid_module.UUID) -> str:
63
63
  return str(uuid_module.UUID(bytes=bytes(b)))
64
64
 
65
65
 
66
- class ChannelType(str, Enum):
66
+ class ChannelType(StrEnum):
67
67
  SELF = "SELF"
68
68
  DM = "DM"
69
69
  GROUP = "GROUP"
@@ -76,7 +76,7 @@ class ChannelType(str, Enum):
76
76
  API = "API"
77
77
 
78
78
 
79
- class ContentType(str, Enum):
79
+ class ContentType(StrEnum):
80
80
  IMAGE = "image"
81
81
  VIDEO = "video"
82
82
  AUDIO = "audio"
@@ -419,11 +419,16 @@ class IAgentRuntime(ABC):
419
419
 
420
420
  # Convenience wrappers
421
421
  @abstractmethod
422
- async def get_entity_by_id(self, entity_id: UUID) -> Entity | None: ...
422
+ async def get_entity_by_id(self, entity_id: UUID | str) -> Entity | None: ...
423
423
 
424
424
  @abstractmethod
425
425
  async def get_entity(self, entity_id: UUID | str) -> Entity | None: ...
426
426
 
427
+ @abstractmethod
428
+ async def get_entities_for_room(
429
+ self, room_id: UUID, include_components: bool = False
430
+ ) -> list[Entity]: ...
431
+
427
432
  @abstractmethod
428
433
  async def update_entity(self, entity: Entity) -> None: ...
429
434
 
@@ -436,6 +441,9 @@ class IAgentRuntime(ABC):
436
441
  @abstractmethod
437
442
  async def create_room(self, room: Room) -> UUID: ...
438
443
 
444
+ @abstractmethod
445
+ async def update_room(self, room: Room) -> None: ...
446
+
439
447
  @abstractmethod
440
448
  async def add_participant(self, entity_id: UUID, room_id: UUID) -> bool: ...
441
449
 
@@ -458,7 +466,9 @@ class IAgentRuntime(ABC):
458
466
  async def get_relationships(self, params: dict[str, object]) -> list[object]: ...
459
467
 
460
468
  @abstractmethod
461
- async def search_memories(self, params: MemorySearchOptions) -> list[Memory]: ...
469
+ async def search_memories(
470
+ self, params: MemorySearchOptions | dict[str, Any]
471
+ ) -> list[Memory]: ...
462
472
 
463
473
  @abstractmethod
464
474
  async def search_knowledge(self, query: str, limit: int = 5) -> list[object]: ...
@@ -2,7 +2,7 @@ from __future__ import annotations
2
2
 
3
3
  import time
4
4
  from dataclasses import dataclass, field
5
- from enum import Enum
5
+ from enum import StrEnum
6
6
 
7
7
  from elizaos.types.generated.eliza.v1 import state_pb2
8
8
 
@@ -97,7 +97,7 @@ class RetryBackoffConfig:
97
97
  return min(int(delay), self.max_ms)
98
98
 
99
99
 
100
- class StreamEventType(str, Enum):
100
+ class StreamEventType(StrEnum):
101
101
  """Stream event types for validation-aware streaming.
102
102
 
103
103
  Rich consumers receive these typed events for custom UX handling.
@@ -16,7 +16,7 @@ code matches, we know that part wasn't truncated.
16
16
 
17
17
  from collections.abc import Callable
18
18
  from dataclasses import dataclass, field
19
- from enum import Enum
19
+ from enum import StrEnum
20
20
 
21
21
  from elizaos.types.state import SchemaRow, StreamEvent
22
22
 
@@ -109,7 +109,7 @@ class MarkableExtractor(IStreamExtractor):
109
109
  self._done = True
110
110
 
111
111
 
112
- class ExtractorState(str, Enum):
112
+ class ExtractorState(StrEnum):
113
113
  """Extractor state machine for validation-aware streaming."""
114
114
 
115
115
  STREAMING = "streaming" # Normal operation - actively receiving chunks
@@ -119,7 +119,7 @@ class ExtractorState(str, Enum):
119
119
  FAILED = "failed" # Unrecoverable error
120
120
 
121
121
 
122
- class FieldState(str, Enum):
122
+ class FieldState(StrEnum):
123
123
  """Per-field state tracking for progressive validation."""
124
124
 
125
125
  PENDING = "pending" # Haven't seen this field yet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/python",
3
- "version": "2.0.0-alpha.27",
3
+ "version": "2.0.0-alpha.30",
4
4
  "description": "elizaOS Core - Python runtime and types",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -12,9 +12,9 @@
12
12
  "lint:fix": "ruff check --fix . && ruff format .",
13
13
  "format": "ruff format .",
14
14
  "format:check": "ruff format --check .",
15
- "typecheck": "python3.13 -m mypy elizaos || echo 'mypy not installed, skipping typecheck'"
15
+ "typecheck": "python3.13 -c \"import importlib.util, subprocess, sys; spec = importlib.util.find_spec('mypy'); sys.exit(0 if spec is None and print('mypy not installed, skipping typecheck') is None else subprocess.call([sys.executable, '-m', 'mypy', 'elizaos']))\""
16
16
  },
17
17
  "author": "elizaOS",
18
18
  "license": "MIT",
19
- "gitHead": "645f273ed2eee2f5777193ee7d9d94c8a4444767"
19
+ "gitHead": "b6d792be2dddcbe53f0342e04d99512a6cf33fef"
20
20
  }