Greyson LaLonde
b4b285764c
fix: harden RuntimeState serialization across entity fields
Adds missing serializers, discriminators, and exclude markers on entity
fields that previously crashed model_dump_json or restored ambiguously:
- Flow.persistence: add _serialize_persistence; drop | Any escape hatch
- Flow.input_provider: SerializableInstance dotted-path round-trip
- BaseAgent.agent_executor: add _serialize_executor_ref
- BaseAgent.tools_handler / cache_handler: exclude=True
- Memory / MemoryScope / MemorySlice: memory_kind Literal discriminator
- Knowledge.storage / .embedder: exclude live client, serialize spec
- BaseKnowledgeSource subclasses: source_type Literal + dict-resolver
- BaseKnowledgeSource.storage / chunk_embeddings: exclude=True
- input_provider: enforce InputProvider protocol via dedicated
validator/serializer; reject non-class dotted paths in
_dotted_path_to_instance
- MemoryScope/MemorySlice: allow restore without live Memory; expose
bind() to reattach the dependency post-restore
- Knowledge.embedder: add BeforeValidator that resolves provider_class
dotted paths back to a BaseEmbeddingsProvider subclass
2026-05-21 14:53:40 +08:00
..
2026-04-02 04:46:07 +08:00
2026-05-12 11:22:13 -07:00
2026-05-12 11:22:13 -07:00
2026-05-06 20:46:46 +08:00
2025-10-20 14:10:19 -07:00
2025-12-04 16:53:19 -05:00
2026-04-24 03:41:55 +08:00
2025-12-05 13:23:26 -05:00
2026-04-08 21:02:25 +08:00
2026-03-31 08:11:21 +08:00
2026-05-12 12:39:12 -07:00
2026-05-06 20:46:46 +08:00
2026-05-06 20:46:46 +08:00
2025-11-29 16:55:24 -05:00
2025-11-05 07:19:09 -05:00
2026-04-07 03:22:30 +08:00
2025-10-20 14:10:19 -07:00
2026-05-20 14:38:25 -03:00
2026-02-13 21:34:37 -03:00
2026-05-04 18:42:12 +08:00
2026-05-12 11:22:13 -07:00
2026-04-09 04:29:53 +08:00
2026-05-06 20:46:46 +08:00
2026-05-12 11:22:13 -07:00
2025-10-20 14:10:19 -07:00
2026-03-15 18:33:17 -07:00
2026-04-01 03:48:41 +08:00
2026-03-20 15:18:50 -04:00
2026-05-06 20:46:46 +08:00
2026-05-06 20:46:46 +08:00
2026-01-22 17:44:03 -08:00
2026-01-23 15:13:25 -05:00
2025-10-20 14:10:19 -07:00
2026-05-12 11:22:13 -07:00
2025-12-01 18:56:56 -05:00
2026-04-07 03:22:30 +08:00
2026-05-21 14:53:40 +08:00
2025-10-20 14:10:19 -07:00
2026-02-04 15:40:22 -05:00
2026-01-23 15:13:25 -05:00
2026-05-01 11:46:07 -04:00
2025-10-20 14:10:19 -07:00
2026-03-25 03:42:39 -03:00
2025-11-24 17:35:12 -05:00
2026-03-09 09:38:35 -04:00
2026-04-28 14:57:49 +08:00
2025-10-20 14:10:19 -07:00
2026-05-12 00:26:31 +08:00
2026-03-26 03:28:17 -03:00
2025-10-20 14:10:19 -07:00
2026-05-16 02:46:35 +08:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2026-04-21 15:57:19 -03:00
2025-11-29 16:55:24 -05:00
2026-04-17 03:02:03 +08:00
2026-05-03 14:17:03 +08:00
2026-02-25 17:13:34 -05:00
2026-04-01 18:08:37 -03:00