актуальный README и menual тест
This commit is contained in:
parent
bd2923ffca
commit
972fc23bfc
2 changed files with 11 additions and 1 deletions
|
|
@ -23,9 +23,18 @@ async def main():
|
|||
while True:
|
||||
try:
|
||||
prompt = await asyncio.get_event_loop().run_in_executor(None, input, ">>> ")
|
||||
attachments_input = await asyncio.get_event_loop().run_in_executor(
|
||||
None, input, "Attachments (comma-separated, empty for none): "
|
||||
)
|
||||
attachments = (
|
||||
[a.strip() for a in attachments_input.split(",") if a.strip()]
|
||||
if attachments_input.strip()
|
||||
else None
|
||||
)
|
||||
|
||||
print("Agent: ", end="")
|
||||
is_tool = False
|
||||
async for chunk in api.send_message(prompt):
|
||||
async for chunk in api.send_message(prompt, attachments):
|
||||
match chunk:
|
||||
case MsgEventTextChunk():
|
||||
is_tool = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue