feat: inference generates messages, simplify inference run events, fix encoding bug

This commit is contained in:
Shivering Ocelot committed 2026-10-03 11:46:16 -05:00
1 parent ee323fe660
commit 868e9b0545
5 files changed
+258 -309

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ def encode_value(value):
if isinstance(value, ToolSpec):
return value.to_openai_dict()
elif isinstance(value, Message):
return {'type': value.type, 'content': encode_value(value.content)}
return {'role': value.role, 'content': encode_value(value.content)}
elif isinstance(value, ToolCall):
json = {
'id': value.id,