{'choices': [{'finish_reason': 'stop',
              'index': 0,
              'logprobs': None,
              'message': {'content': '[\n'
                                     '  {\n'
                                     '    "action": "StandardPosition",\n'
                                     '    "parameters": {}\n'
                                     '  },\n'
                                     '  {\n'
                                     '    "action": "Hit",\n'
                                     '    "parameters": {}\n'
                                     '  },\n'
                                     '  {\n'
                                     '    "action": "Say",\n'
                                     '    "parameters": {\n'
                                     '      "text": "I have removed the object '
                                     'from the table."\n'
                                     '    }\n'
                                     '  },\n'
                                     '  {\n'
                                     '    "action": "Smile",\n'
                                     '    "parameters": {\n'
                                     '      "state": true\n'
                                     '    }\n'
                                     '  }\n'
                                     ']',
                          'role': 'assistant'}}],
 'created': 1715686616,
 'id': 'chatcmpl-9Okkit2FeWlbaZUa0t1rHZU4XTRjR',
 'model': 'gpt-4-0613',
 'object': 'chat.completion',
 'system_fingerprint': None,
 'usage': {'completion_tokens': 92, 'prompt_tokens': 94, 'total_tokens': 186}}




{'choices': [{'finish_reason': 'stop',
              'index': 0,
              'logprobs': None,
              'message': {'content': '[\n'
                                     '  {\n'
                                     '    "action": "Say",\n'
                                     '    "parameters": ["I will remove the '
                                     'ball from the table"]\n'
                                     '  },\n'
                                     '  {\n'
                                     '    "action": "StandardPosition",\n'
                                     '    "parameters": []\n'
                                     '  },\n'
                                     '  {\n'
                                     '    "action": "Hit",\n'
                                     '    "parameters": []\n'
                                     '  },\n'
                                     '  {\n'
                                     '    "action": "Say",\n'
                                     '    "parameters": ["The ball has been '
                                     'removed from the table"]\n'
                                     '  },\n'
                                     '  {\n'
                                     '    "action": "Smile",\n'
                                     '    "parameters": ["True"]\n'
                                     '  }\n'
                                     ']',
                          'role': 'assistant'}}],
 'created': 1715692884,
 'id': 'chatcmpl-9OmNornIUgpw7ztnIOzlICKcEnCoz',
 'model': 'gpt-4-0613',
 'object': 'chat.completion',
 'system_fingerprint': None,
 'usage': {'completion_tokens': 104, 'prompt_tokens': 113, 'total_tokens': 217}}
Say(I will remove the ball from the table)
StandardPosition()
Hit()
Say(The ball has been removed from the table)
Smile(True)
>>> quit()



















