Merge branch 'main' into feat/memory-orchestration-be

This commit is contained in:
Stream
2025-10-09 15:01:03 +08:00
318 changed files with 7286 additions and 3758 deletions

View File

@ -146,6 +146,8 @@ def build_segment(value: Any, /) -> Segment:
# below
if value is None:
return NoneSegment()
if isinstance(value, Segment):
return value
if isinstance(value, str):
return StringSegment(value=value)
if isinstance(value, bool):