[docs] add JS examples for double texting and human in the loop for cloud (#885)

This commit is contained in:
Isaac Francisco
2024-07-02 11:42:46 -04:00
committed by GitHub
parent ab8f3174e1
commit d180c80c34
21 changed files with 1371 additions and 1433 deletions
+2 -2
View File
@@ -224,8 +224,8 @@ async for chunk in client.runs.stream(
input=input,
stream_mode="updates",
):
if chunk.data and "run_id" not in chunk.data:
print(chunk.data)
if chunk.data and chunk.event != "metadata":
print(chunk.data)
```
{'agent': {'messages': [{'content': "Hi Bagatur! It's nice to meet you. How can I assist you today?", 'additional_kwargs': {}, 'response_metadata': {'finish_reason': 'stop', 'model_name': 'gpt-4o-2024-05-13', 'system_fingerprint': 'fp_9cb5d38cf7'}, 'type': 'ai', 'name': None, 'id': 'run-c89118b7-1b1e-42b9-a85d-c43fe99881cd', 'example': False, 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None}]}}