File: main_stream_response.txt

package info (click to toggle)
python-azure 20250603%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 851,724 kB
  • sloc: python: 7,362,925; ansic: 804; javascript: 287; makefile: 195; sh: 145; xml: 109
file content (45 lines) | stat: -rw-r--r-- 18,480 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
event: thread.run.created
data: {"id":"run_01","object":"thread.run","created_at":1735945041,"assistant_id":"asst_01","thread_id":"thread_01","status":"queued","started_at":null,"expires_at":1735945641,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4-1106-preview","instructions":"You are a helpful assistant","tools":[{"type":"function","function":{"name":"get_user_info","description":"Retrieves user information based on user ID.","parameters":{"type":"object","properties":{"user_id":{"type":"integer","description":"ID of the user."}},"required":["user_id"]},"strict":false}},{"type":"function","function":{"name":"convert_temperature","description":"Converts temperature from Celsius to Fahrenheit.","parameters":{"type":"object","properties":{"celsius":{"type":"number","description":"Temperature in Celsius."}},"required":["celsius"]},"strict":false}},{"type":"function","function":{"name":"longest_word_in_sentences","description":"Finds the longest word in each sentence.","parameters":{"type":"object","properties":{"sentences":{"type":"array","items":{"type":"string"},"description":"A list of sentences."}},"required":["sentences"]},"strict":false}},{"type":"function","function":{"name":"toggle_flag","description":"Toggles a boolean flag.","parameters":{"type":"object","properties":{"flag":{"type":"boolean","description":"The flag to toggle."}},"required":["flag"]},"strict":false}},{"type":"function","function":{"name":"send_email","description":"Sends an email with the specified subject and body to the recipient.","parameters":{"type":"object","properties":{"recipient":{"type":"string","description":"Email address of the recipient."},"subject":{"type":"string","description":"Subject of the email."},"body":{"type":"string","description":"Body content of the email."}},"required":["recipient","subject","body"]},"strict":false}},{"type":"function","function":{"name":"process_records","description":"Process a list of records, where each record is a dictionary with string keys and integer values.","parameters":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object"},"description":"A list containing dictionaries that map strings to integers."}},"required":["records"]},"strict":false}},{"type":"function","function":{"name":"merge_dicts","description":"Merges two dictionaries.","parameters":{"type":"object","properties":{"dict1":{"type":"object","description":"First dictionary."},"dict2":{"type":"object","description":"Second dictionary."}},"required":["dict1","dict2"]},"strict":false}},{"type":"function","function":{"name":"calculate_sum","description":"Calculates the sum of two integers.","parameters":{"type":"object","properties":{"a":{"type":"integer","description":"First integer."},"b":{"type":"integer","description":"Second integer."}},"required":["a","b"]},"strict":false}},{"type":"function","function":{"name":"fetch_weather","description":"Fetches the weather information for the specified location.","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The location to fetch weather for."}},"required":["location"]},"strict":false}},{"type":"function","function":{"name":"fetch_current_datetime","description":"Get the current time as a JSON string, optionally formatted.","parameters":{"type":"object","properties":{"format":{"type":["string","null"],"description":"The format in which to return the current time. Defaults to None, which uses a standard format."}},"required":[]},"strict":false}}],"tool_resources":{"code_interpreter":{"file_ids":[]}},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}

event: thread.run.queued
data: {"id":"run_01","object":"thread.run","created_at":1735945041,"assistant_id":"asst_01","thread_id":"thread_01","status":"queued","started_at":null,"expires_at":1735945641,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4-1106-preview","instructions":"You are a helpful assistant","tools":[{"type":"function","function":{"name":"get_user_info","description":"Retrieves user information based on user ID.","parameters":{"type":"object","properties":{"user_id":{"type":"integer","description":"ID of the user."}},"required":["user_id"]},"strict":false}},{"type":"function","function":{"name":"convert_temperature","description":"Converts temperature from Celsius to Fahrenheit.","parameters":{"type":"object","properties":{"celsius":{"type":"number","description":"Temperature in Celsius."}},"required":["celsius"]},"strict":false}},{"type":"function","function":{"name":"longest_word_in_sentences","description":"Finds the longest word in each sentence.","parameters":{"type":"object","properties":{"sentences":{"type":"array","items":{"type":"string"},"description":"A list of sentences."}},"required":["sentences"]},"strict":false}},{"type":"function","function":{"name":"toggle_flag","description":"Toggles a boolean flag.","parameters":{"type":"object","properties":{"flag":{"type":"boolean","description":"The flag to toggle."}},"required":["flag"]},"strict":false}},{"type":"function","function":{"name":"send_email","description":"Sends an email with the specified subject and body to the recipient.","parameters":{"type":"object","properties":{"recipient":{"type":"string","description":"Email address of the recipient."},"subject":{"type":"string","description":"Subject of the email."},"body":{"type":"string","description":"Body content of the email."}},"required":["recipient","subject","body"]},"strict":false}},{"type":"function","function":{"name":"process_records","description":"Process a list of records, where each record is a dictionary with string keys and integer values.","parameters":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object"},"description":"A list containing dictionaries that map strings to integers."}},"required":["records"]},"strict":false}},{"type":"function","function":{"name":"merge_dicts","description":"Merges two dictionaries.","parameters":{"type":"object","properties":{"dict1":{"type":"object","description":"First dictionary."},"dict2":{"type":"object","description":"Second dictionary."}},"required":["dict1","dict2"]},"strict":false}},{"type":"function","function":{"name":"calculate_sum","description":"Calculates the sum of two integers.","parameters":{"type":"object","properties":{"a":{"type":"integer","description":"First integer."},"b":{"type":"integer","description":"Second integer."}},"required":["a","b"]},"strict":false}},{"type":"function","function":{"name":"fetch_weather","description":"Fetches the weather information for the specified location.","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The location to fetch weather for."}},"required":["location"]},"strict":false}},{"type":"function","function":{"name":"fetch_current_datetime","description":"Get the current time as a JSON string, optionally formatted.","parameters":{"type":"object","properties":{"format":{"type":["string","null"],"description":"The format in which to return the current time. Defaults to None, which uses a standard format."}},"required":[]},"strict":false}}],"tool_resources":{"code_interpreter":{"file_ids":[]}},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}

event: thread.run.in_progress
data: {"id":"run_01","object":"thread.run","created_at":1735945041,"assistant_id":"asst_01","thread_id":"thread_01","status":"in_progress","started_at":1735945041,"expires_at":1735945641,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4-1106-preview","instructions":"You are a helpful assistant","tools":[{"type":"function","function":{"name":"get_user_info","description":"Retrieves user information based on user ID.","parameters":{"type":"object","properties":{"user_id":{"type":"integer","description":"ID of the user."}},"required":["user_id"]},"strict":false}},{"type":"function","function":{"name":"convert_temperature","description":"Converts temperature from Celsius to Fahrenheit.","parameters":{"type":"object","properties":{"celsius":{"type":"number","description":"Temperature in Celsius."}},"required":["celsius"]},"strict":false}},{"type":"function","function":{"name":"longest_word_in_sentences","description":"Finds the longest word in each sentence.","parameters":{"type":"object","properties":{"sentences":{"type":"array","items":{"type":"string"},"description":"A list of sentences."}},"required":["sentences"]},"strict":false}},{"type":"function","function":{"name":"toggle_flag","description":"Toggles a boolean flag.","parameters":{"type":"object","properties":{"flag":{"type":"boolean","description":"The flag to toggle."}},"required":["flag"]},"strict":false}},{"type":"function","function":{"name":"send_email","description":"Sends an email with the specified subject and body to the recipient.","parameters":{"type":"object","properties":{"recipient":{"type":"string","description":"Email address of the recipient."},"subject":{"type":"string","description":"Subject of the email."},"body":{"type":"string","description":"Body content of the email."}},"required":["recipient","subject","body"]},"strict":false}},{"type":"function","function":{"name":"process_records","description":"Process a list of records, where each record is a dictionary with string keys and integer values.","parameters":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object"},"description":"A list containing dictionaries that map strings to integers."}},"required":["records"]},"strict":false}},{"type":"function","function":{"name":"merge_dicts","description":"Merges two dictionaries.","parameters":{"type":"object","properties":{"dict1":{"type":"object","description":"First dictionary."},"dict2":{"type":"object","description":"Second dictionary."}},"required":["dict1","dict2"]},"strict":false}},{"type":"function","function":{"name":"calculate_sum","description":"Calculates the sum of two integers.","parameters":{"type":"object","properties":{"a":{"type":"integer","description":"First integer."},"b":{"type":"integer","description":"Second integer."}},"required":["a","b"]},"strict":false}},{"type":"function","function":{"name":"fetch_weather","description":"Fetches the weather information for the specified location.","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The location to fetch weather for."}},"required":["location"]},"strict":false}},{"type":"function","function":{"name":"fetch_current_datetime","description":"Get the current time as a JSON string, optionally formatted.","parameters":{"type":"object","properties":{"format":{"type":["string","null"],"description":"The format in which to return the current time. Defaults to None, which uses a standard format."}},"required":[]},"strict":false}}],"tool_resources":{"code_interpreter":{"file_ids":[]}},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}

event: thread.run.step.created
data: {"id":"step_01","object":"thread.run.step","created_at":1735945043,"run_id":"run_01","assistant_id":"asst_01","thread_id":"thread_01","type":"tool_calls","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1735945641,"failed_at":null,"last_error":null,"step_details":{"type":"tool_calls","tool_calls":[]},"usage":null}

event: thread.run.step.in_progress
data: {"id":"step_01","object":"thread.run.step","created_at":1735945043,"run_id":"run_01","assistant_id":"asst_01","thread_id":"thread_01","type":"tool_calls","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1735945641,"failed_at":null,"last_error":null,"step_details":{"type":"tool_calls","tool_calls":[]},"usage":null}

event: thread.run.step.delta
data: {"id":"step_01","object":"thread.run.step.delta","delta":{"step_details":{"type":"tool_calls","tool_calls":[{"index":0,"id":"call_01","type":"function","function":{"name":"fetch_current_datetime","arguments":"","output":null}}]}}}

event: thread.run.step.delta
data: {"id":"step_01","object":"thread.run.step.delta","delta":{"step_details":{"type":"tool_calls","tool_calls":[{"index":0,"type":"function","function":{"arguments":"{}"}}]}}}

event: thread.run.step.delta
data: {"id":"step_01","object":"thread.run.step.delta","delta":{"step_details":{"type":"tool_calls","tool_calls":[{"index":1,"id":"call_02","type":"function","function":{"name":"fetch_weather","arguments":"","output":null}}]}}}

event: thread.run.step.delta
data: {"id":"step_01","object":"thread.run.step.delta","delta":{"step_details":{"type":"tool_calls","tool_calls":[{"index":1,"type":"function","function":{"arguments":"{\"location"}}]}}}

event: thread.run.step.delta
data: {"id":"step_01","object":"thread.run.step.delta","delta":{"step_details":{"type":"tool_calls","tool_calls":[{"index":1,"type":"function","function":{"arguments":""}}]}}}

event: thread.run.step.delta
data: {"id":"step_01","object":"thread.run.step.delta","delta":{"step_details":{"type":"tool_calls","tool_calls":[{"index":1,"type":"function","function":{"arguments":"\": \"N"}}]}}}

event: thread.run.step.delta
data: {"id":"step_01","object":"thread.run.step.delta","delta":{"step_details":{"type":"tool_calls","tool_calls":[{"index":1,"type":"function","function":{"arguments":"ew Y"}}]}}}

event: thread.run.step.delta
data: {"id":"step_01","object":"thread.run.step.delta","delta":{"step_details":{"type":"tool_calls","tool_calls":[{"index":1,"type":"function","function":{"arguments":"ork\"}"}}]}}}

event: thread.run.requires_action
data: {"id":"run_01","object":"thread.run","created_at":1735945041,"assistant_id":"asst_01","thread_id":"thread_01","status":"requires_action","started_at":1735945041,"expires_at":1735945641,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":{"type":"submit_tool_outputs","submit_tool_outputs":{"tool_calls":[{"id":"call_01","type":"function","function":{"name":"fetch_current_datetime","arguments":"{}"}},{"id":"call_02","type":"function","function":{"name":"fetch_weather","arguments":"{\"location\": \"New York\"}"}}]}},"last_error":null,"model":"gpt-4-1106-preview","instructions":"You are a helpful assistant","tools":[{"type":"function","function":{"name":"get_user_info","description":"Retrieves user information based on user ID.","parameters":{"type":"object","properties":{"user_id":{"type":"integer","description":"ID of the user."}},"required":["user_id"]},"strict":false}},{"type":"function","function":{"name":"convert_temperature","description":"Converts temperature from Celsius to Fahrenheit.","parameters":{"type":"object","properties":{"celsius":{"type":"number","description":"Temperature in Celsius."}},"required":["celsius"]},"strict":false}},{"type":"function","function":{"name":"longest_word_in_sentences","description":"Finds the longest word in each sentence.","parameters":{"type":"object","properties":{"sentences":{"type":"array","items":{"type":"string"},"description":"A list of sentences."}},"required":["sentences"]},"strict":false}},{"type":"function","function":{"name":"toggle_flag","description":"Toggles a boolean flag.","parameters":{"type":"object","properties":{"flag":{"type":"boolean","description":"The flag to toggle."}},"required":["flag"]},"strict":false}},{"type":"function","function":{"name":"send_email","description":"Sends an email with the specified subject and body to the recipient.","parameters":{"type":"object","properties":{"recipient":{"type":"string","description":"Email address of the recipient."},"subject":{"type":"string","description":"Subject of the email."},"body":{"type":"string","description":"Body content of the email."}},"required":["recipient","subject","body"]},"strict":false}},{"type":"function","function":{"name":"process_records","description":"Process a list of records, where each record is a dictionary with string keys and integer values.","parameters":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object"},"description":"A list containing dictionaries that map strings to integers."}},"required":["records"]},"strict":false}},{"type":"function","function":{"name":"merge_dicts","description":"Merges two dictionaries.","parameters":{"type":"object","properties":{"dict1":{"type":"object","description":"First dictionary."},"dict2":{"type":"object","description":"Second dictionary."}},"required":["dict1","dict2"]},"strict":false}},{"type":"function","function":{"name":"calculate_sum","description":"Calculates the sum of two integers.","parameters":{"type":"object","properties":{"a":{"type":"integer","description":"First integer."},"b":{"type":"integer","description":"Second integer."}},"required":["a","b"]},"strict":false}},{"type":"function","function":{"name":"fetch_weather","description":"Fetches the weather information for the specified location.","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The location to fetch weather for."}},"required":["location"]},"strict":false}},{"type":"function","function":{"name":"fetch_current_datetime","description":"Get the current time as a JSON string, optionally formatted.","parameters":{"type":"object","properties":{"format":{"type":["string","null"],"description":"The format in which to return the current time. Defaults to None, which uses a standard format."}},"required":[]},"strict":false}}],"tool_resources":{"code_interpreter":{"file_ids":[]}},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}

event: done
data: [DONE]