项目文件夹

文件
Rohit C Prasad 41b1591f6d style: black-format the entire repo
Mechanical 'black .' over root package and platform/ (109 files; the
Lint workflow checks the whole repo and has been red since platform
landed unformatted, with a few more violations from community merges
whose branches never ran CI). No functional change: full platform
suite (264) and aisuite suites verified unchanged after formatting.
2026-06-10 15:29:23 -07:00

16 行
557 B
Python

from types import SimpleNamespace
from aisuite.framework.message import Message
def chat_response(
content="done", intermediate_messages=None, intermediate_responses=None
):
message = Message(role="assistant", content=content)
response = SimpleNamespace(choices=[SimpleNamespace(message=message)])
if intermediate_messages is not None:
response.choices[0].intermediate_messages = intermediate_messages
if intermediate_responses is not None:
response.intermediate_responses = intermediate_responses
return response