mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 07:38:29 +00:00
Some checks failed
Notify Downstream / notify-downstream (push) Has been cancelled
* feat: implement tool usage limit exception handling - Introduced `ToolUsageLimitExceeded` exception to manage maximum usage limits for tools. - Enhanced `CrewStructuredTool` to check and raise this exception when the usage limit is reached. - Updated `_run` and `_execute` methods to include usage limit checks and handle exceptions appropriately, improving reliability and user feedback. * feat: enhance PlusAPI and ToolUsage with task metadata - Removed the `send_trace_batch` method from PlusAPI to streamline the API. - Added timeout parameters to trace event methods in PlusAPI for improved reliability. - Updated ToolUsage to include task metadata (task name and ID) in event emissions, enhancing traceability and context during tool usage. - Refactored event handling in LLM and ToolUsage events to ensure task information is consistently captured. * feat: enhance memory and event handling with task and agent metadata - Added task and agent metadata to various memory and event classes, improving traceability and context during memory operations. - Updated the `ContextualMemory` and `Memory` classes to associate tasks and agents, allowing for better context management. - Enhanced event emissions in `LLM`, `ToolUsage`, and memory events to include task and agent information, facilitating improved debugging and monitoring. - Refactored event handling to ensure consistent capture of task and agent details across the system. * drop * refactor: clean up unused imports in memory and event modules - Removed unused TYPE_CHECKING imports from long_term_memory.py to streamline the code. - Eliminated unnecessary import from memory_events.py, enhancing clarity and maintainability. * fix memory tests * fix task_completed payload * fix: remove unused test agent variable in external memory tests * refactor: remove unused agent parameter from Memory class save method - Eliminated the agent parameter from the save method in the Memory class to streamline the code and improve clarity. - Updated the TraceBatchManager class by moving initialization of attributes into the constructor for better organization and readability. * refactor: enhance ExecutionState and ReasoningEvent classes with optional task and agent identifiers - Added optional `current_agent_id` and `current_task_id` attributes to the `ExecutionState` class for better tracking of agent and task states. - Updated the `from_task` attribute in the `ReasoningEvent` class to use `Optional[Any]` instead of a specific type, improving flexibility in event handling. * refactor: update ExecutionState class by removing unused agent and task identifiers - Removed the `current_agent_id` and `current_task_id` attributes from the `ExecutionState` class to simplify the code and enhance clarity. - Adjusted the import statements to include `Optional` for better type handling. * refactor: streamline LLM event handling in LiteAgent - Removed unused LLM event emissions (LLMCallStartedEvent, LLMCallCompletedEvent, LLMCallFailedEvent) from the LiteAgent class to simplify the code and improve performance. - Adjusted the flow of LLM response handling by eliminating unnecessary event bus interactions, enhancing clarity and maintainability. * flow ownership and not emitting events when a crew is done * refactor: remove unused agent parameter from ShortTermMemory save method - Eliminated the agent parameter from the save method in the ShortTermMemory class to streamline the code and improve clarity. - This change enhances the maintainability of the memory management system by reducing unnecessary complexity. * runtype check fix * fixing tests * fix lints * fix: update event assertions in test_llm_emits_event_with_lite_agent - Adjusted the expected counts for completed and started events in the test to reflect the correct behavior of the LiteAgent. - Updated assertions for agent roles and IDs to match the expected values after recent changes in event handling. * fix: update task name assertions in event tests - Modified assertions in `test_stream_llm_emits_event_with_task_and_agent_info` and `test_llm_emits_event_with_task_and_agent_info` to use `task.description` as a fallback for `task.name`. This ensures that the tests correctly validate the task name even when it is not explicitly set. * fix: update test assertions for output values and improve readability - Updated assertions in `test_output_json_dict_hierarchical` to reflect the correct expected score value. - Enhanced readability of assertions in `test_output_pydantic_to_another_task` and `test_key` by formatting the error messages for clarity. - These changes ensure that the tests accurately validate the expected outputs and improve overall code quality. * test fixes * fix crew_test * added another fixture * fix: ensure agent and task assignments in contextual memory are conditional - Updated the ContextualMemory class to check for the existence of short-term, long-term, external, and extended memory before assigning agent and task attributes. This prevents potential attribute errors when memory types are not initialized.
901 lines
44 KiB
YAML
901 lines
44 KiB
YAML
interactions:
|
|
- request:
|
|
body: !!binary |
|
|
CogYCiQKIgoMc2VydmljZS5uYW1lEhIKEGNyZXdBSS10ZWxlbWV0cnkS3xcKEgoQY3Jld2FpLnRl
|
|
bGVtZXRyeRKbAQoQ/3R5HpZtQjbE3/4NutgE5BII1ouAMR2ZohoqClRvb2wgVXNhZ2UwATlwpoiB
|
|
X38QGEHQj56BX38QGEoaCg5jcmV3YWlfdmVyc2lvbhIICgYwLjg2LjBKJwoJdG9vbF9uYW1lEhoK
|
|
GEFzayBxdWVzdGlvbiB0byBjb3dvcmt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|
User-Agent:
|
|
- OTel-OTLP-Exporter-Python/1.27.0
|
|
method: POST
|
|
uri: https://telemetry.crewai.com:4319/v1/traces
|
|
response:
|
|
body:
|
|
string: "\n\0"
|
|
headers:
|
|
Content-Length:
|
|
- '2'
|
|
Content-Type:
|
|
- application/x-protobuf
|
|
Date:
|
|
- Thu, 12 Dec 2024 17:51:49 GMT
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: '{"messages": [{"role": "system", "content": "You are Crew Manager. You
|
|
are a seasoned manager with a knack for getting the best out of your team.\nYou
|
|
are also known for your ability to delegate work to the right people, and to
|
|
ask the right questions to get the best out of your team.\nEven though you don''t
|
|
perform tasks by yourself, you have a lot of experience in the field, which
|
|
allows you to properly evaluate the work of your team members.\nYour personal
|
|
goal is: Manage the team to complete the task in the best way possible.\nYou
|
|
ONLY have access to the following tools, and should NEVER make up tools that
|
|
are not listed here:\n\nTool Name: Delegate work to coworker\nTool Arguments:
|
|
{''task'': {''description'': ''The task to delegate'', ''type'': ''str''}, ''context'':
|
|
{''description'': ''The context for the task'', ''type'': ''str''}, ''coworker'':
|
|
{''description'': ''The role/name of the coworker to delegate to'', ''type'':
|
|
''str''}}\nTool Description: Delegate a specific task to one of the following
|
|
coworkers: Scorer\nThe input to this tool should be the coworker, the task you
|
|
want them to do, and ALL necessary context to execute the task, they know nothing
|
|
about the task, so share absolute everything you know, don''t reference things
|
|
but instead explain them.\nTool Name: Ask question to coworker\nTool Arguments:
|
|
{''question'': {''description'': ''The question to ask'', ''type'': ''str''},
|
|
''context'': {''description'': ''The context for the question'', ''type'': ''str''},
|
|
''coworker'': {''description'': ''The role/name of the coworker to ask'', ''type'':
|
|
''str''}}\nTool Description: Ask a specific question to one of the following
|
|
coworkers: Scorer\nThe input to this tool should be the coworker, the question
|
|
you have for them, and ALL necessary context to ask the question properly, they
|
|
know nothing about the question, so share absolute everything you know, don''t
|
|
reference things but instead explain them.\n\nUse the following format:\n\nThought:
|
|
you should always think about what to do\nAction: the action to take, only one
|
|
name of [Delegate work to coworker, Ask question to coworker], just the name,
|
|
exactly as it''s written.\nAction Input: the input to the action, just a simple
|
|
python dictionary, enclosed in curly braces, using \" to wrap keys and values.\nObservation:
|
|
the result of the action\n\nOnce all necessary information is gathered:\n\nThought:
|
|
I now know the final answer\nFinal Answer: the final answer to the original
|
|
input question"}, {"role": "user", "content": "\nCurrent Task: Give me an integer
|
|
score between 1-5 for the following title: ''The impact of AI in the future
|
|
of work'', check examples to based your evaluation.\n\nThis is the expect criteria
|
|
for your final answer: The score of the title.\nyou MUST return the actual complete
|
|
content as the final answer, not a summary.\n\nBegin! This is VERY important
|
|
to you, use the tools available and give your best Final Answer, your job depends
|
|
on it!\n\nThought:"}], "model": "gpt-4-0125-preview", "stop": ["\nObservation:"],
|
|
"stream": false}'
|
|
headers:
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- gzip, deflate
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '2994'
|
|
content-type:
|
|
- application/json
|
|
cookie:
|
|
- _cfuvid=MmeN9oHWrBLThkEJdaSFHBfWe95JvA8iFnnt7CC92tk-1732107842102-0.0.1.1-604800000
|
|
host:
|
|
- api.openai.com
|
|
user-agent:
|
|
- OpenAI/Python 1.52.1
|
|
x-stainless-arch:
|
|
- arm64
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- MacOS
|
|
x-stainless-package-version:
|
|
- 1.52.1
|
|
x-stainless-raw-response:
|
|
- 'true'
|
|
x-stainless-retry-count:
|
|
- '0'
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.11.10
|
|
method: POST
|
|
uri: https://api.openai.com/v1/chat/completions
|
|
response:
|
|
content: "{\n \"id\": \"chatcmpl-AdhdgT49oskPNVzkbb9Z6SP7ikLJi\",\n \"object\":
|
|
\"chat.completion\",\n \"created\": 1734025904,\n \"model\": \"gpt-4-0125-preview\",\n
|
|
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
|
|
\"assistant\",\n \"content\": \"Thought: To give an accurate score for
|
|
the title \\\"The impact of AI in the future of work\\\" based on the specified
|
|
criteria, I'll need the expertise of the Scorer. They specialize in evaluating
|
|
content, so I must delegate this task to them. I need to provide them with all
|
|
the necessary context, including the title and the importance of giving a well-considered,
|
|
integer score between 1-5. Since the request stresses the importance of this
|
|
task and its implications for my job, I will make sure to communicate the urgency
|
|
and the criteria very clearly to the Scorer.\\n\\nAction: Delegate work to coworker\\n\\nAction
|
|
Input: {\\\"task\\\": \\\"Evaluate the title 'The impact of AI in the future
|
|
of work' and give it an integer score between 1-5, based on your expert assessment.\\\",
|
|
\\\"context\\\": \\\"The task is to assign a score to the given title based
|
|
on its significance, relevance, and impactfulness regarding the future of work
|
|
influenced by artificial intelligence. This score needs to reflect a thorough
|
|
evaluation within the range of 1 (being the least impactful or relevant) to
|
|
5 (being the most impactful or relevant). The assessment is highly important
|
|
and could significantly affect our future work, so it's crucial to consider
|
|
the current discourse on AI, its potential transformative power on industries
|
|
and job markets, and general expectations of its future role.\\\", \\\"coworker\\\":
|
|
\\\"Scorer\\\"}\",\n \"refusal\": null\n },\n \"logprobs\":
|
|
null,\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
|
|
631,\n \"completion_tokens\": 286,\n \"total_tokens\": 917,\n \"prompt_tokens_details\":
|
|
{\n \"cached_tokens\": 0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\":
|
|
{\n \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\":
|
|
0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"system_fingerprint\":
|
|
null\n}\n"
|
|
headers:
|
|
CF-Cache-Status:
|
|
- DYNAMIC
|
|
CF-RAY:
|
|
- 8f0f9070fd206755-ATL
|
|
Connection:
|
|
- keep-alive
|
|
Content-Encoding:
|
|
- gzip
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Thu, 12 Dec 2024 17:51:51 GMT
|
|
Server:
|
|
- cloudflare
|
|
Set-Cookie:
|
|
- __cf_bm=hmykq8dPVo.iRCPFLyDJJVhA3vlSAmoKNOK6szPX5ZI-1734025911-1.0.1.1-ukj3SfeY5GaS6q5LldvL5GcyN5W_on7HGUThOw9g_oKEVS8.E6bA3rTgQQZyloVkpXfJOSywGJnySVpMP.eJWA;
|
|
path=/; expires=Thu, 12-Dec-24 18:21:51 GMT; domain=.api.openai.com; HttpOnly;
|
|
Secure; SameSite=None
|
|
- _cfuvid=FasG_74jjKfEtA2Mjn2iKdu62tv3zosBxYNYTk1E12M-1734025911900-0.0.1.1-604800000;
|
|
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
|
|
Transfer-Encoding:
|
|
- chunked
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
access-control-expose-headers:
|
|
- X-Request-ID
|
|
alt-svc:
|
|
- h3=":443"; ma=86400
|
|
openai-organization:
|
|
- crewai-iuxna1
|
|
openai-processing-ms:
|
|
- '7000'
|
|
openai-version:
|
|
- '2020-10-01'
|
|
strict-transport-security:
|
|
- max-age=31536000; includeSubDomains; preload
|
|
x-ratelimit-limit-requests:
|
|
- '10000'
|
|
x-ratelimit-limit-tokens:
|
|
- '2000000'
|
|
x-ratelimit-remaining-requests:
|
|
- '9999'
|
|
x-ratelimit-remaining-tokens:
|
|
- '1999280'
|
|
x-ratelimit-reset-requests:
|
|
- 6ms
|
|
x-ratelimit-reset-tokens:
|
|
- 21ms
|
|
x-request-id:
|
|
- req_77f5ddcc16e659a308d96671e0ebdded
|
|
http_version: HTTP/1.1
|
|
status_code: 200
|
|
- request:
|
|
body: '{"messages": [{"role": "system", "content": "You are Scorer. You''re an
|
|
expert scorer, specialized in scoring titles.\nYour personal goal is: Score
|
|
the title\nYou ONLY have access to the following tools, and should NEVER make
|
|
up tools that are not listed here:\n\nTool Name: scoring_examples\nTool Arguments:
|
|
{}\nTool Description: Useful examples for scoring titles.\n\nUse the following
|
|
format:\n\nThought: you should always think about what to do\nAction: the action
|
|
to take, only one name of [scoring_examples], just the name, exactly as it''s
|
|
written.\nAction Input: the input to the action, just a simple python dictionary,
|
|
enclosed in curly braces, using \" to wrap keys and values.\nObservation: the
|
|
result of the action\n\nOnce all necessary information is gathered:\n\nThought:
|
|
I now know the final answer\nFinal Answer: the final answer to the original
|
|
input question"}, {"role": "user", "content": "\nCurrent Task: Evaluate the
|
|
title ''The impact of AI in the future of work'' and give it an integer score
|
|
between 1-5, based on your expert assessment.\n\nThis is the expect criteria
|
|
for your final answer: Your best answer to your coworker asking you this, accounting
|
|
for the context shared.\nyou MUST return the actual complete content as the
|
|
final answer, not a summary.\n\nThis is the context you''re working with:\nThe
|
|
task is to assign a score to the given title based on its significance, relevance,
|
|
and impactfulness regarding the future of work influenced by artificial intelligence.
|
|
This score needs to reflect a thorough evaluation within the range of 1 (being
|
|
the least impactful or relevant) to 5 (being the most impactful or relevant).
|
|
The assessment is highly important and could significantly affect our future
|
|
work, so it''s crucial to consider the current discourse on AI, its potential
|
|
transformative power on industries and job markets, and general expectations
|
|
of its future role.\n\nBegin! This is VERY important to you, use the tools available
|
|
and give your best Final Answer, your job depends on it!\n\nThought:"}], "model":
|
|
"gpt-4o-mini", "stop": ["\nObservation:"], "stream": false}'
|
|
headers:
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- gzip, deflate
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '2112'
|
|
content-type:
|
|
- application/json
|
|
cookie:
|
|
- _cfuvid=FasG_74jjKfEtA2Mjn2iKdu62tv3zosBxYNYTk1E12M-1734025911900-0.0.1.1-604800000;
|
|
__cf_bm=hmykq8dPVo.iRCPFLyDJJVhA3vlSAmoKNOK6szPX5ZI-1734025911-1.0.1.1-ukj3SfeY5GaS6q5LldvL5GcyN5W_on7HGUThOw9g_oKEVS8.E6bA3rTgQQZyloVkpXfJOSywGJnySVpMP.eJWA
|
|
host:
|
|
- api.openai.com
|
|
user-agent:
|
|
- OpenAI/Python 1.52.1
|
|
x-stainless-arch:
|
|
- arm64
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- MacOS
|
|
x-stainless-package-version:
|
|
- 1.52.1
|
|
x-stainless-raw-response:
|
|
- 'true'
|
|
x-stainless-retry-count:
|
|
- '0'
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.11.10
|
|
method: POST
|
|
uri: https://api.openai.com/v1/chat/completions
|
|
response:
|
|
content: "{\n \"id\": \"chatcmpl-AdhdoOZnBz23d3UiqKLBUQwmrMkSo\",\n \"object\":
|
|
\"chat.completion\",\n \"created\": 1734025912,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n
|
|
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
|
|
\"assistant\",\n \"content\": \"I need to evaluate the title \\\"The
|
|
impact of AI in the future of work\\\" based on its significance, relevance,
|
|
and impactfulness, considering the current discourse on AI and its transformative
|
|
role in industries and job markets.\\n\\nAction: scoring_examples \\nAction
|
|
Input: {\\\"title\\\": \\\"The impact of AI in the future of work\\\"} \",\n
|
|
\ \"refusal\": null\n },\n \"logprobs\": null,\n \"finish_reason\":
|
|
\"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 400,\n \"completion_tokens\":
|
|
67,\n \"total_tokens\": 467,\n \"prompt_tokens_details\": {\n \"cached_tokens\":
|
|
0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\": {\n
|
|
\ \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\":
|
|
0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"system_fingerprint\":
|
|
\"fp_6fc10e10eb\"\n}\n"
|
|
headers:
|
|
CF-Cache-Status:
|
|
- DYNAMIC
|
|
CF-RAY:
|
|
- 8f0f909d8ca16755-ATL
|
|
Connection:
|
|
- keep-alive
|
|
Content-Encoding:
|
|
- gzip
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Thu, 12 Dec 2024 17:51:53 GMT
|
|
Server:
|
|
- cloudflare
|
|
Transfer-Encoding:
|
|
- chunked
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
access-control-expose-headers:
|
|
- X-Request-ID
|
|
alt-svc:
|
|
- h3=":443"; ma=86400
|
|
openai-organization:
|
|
- crewai-iuxna1
|
|
openai-processing-ms:
|
|
- '1099'
|
|
openai-version:
|
|
- '2020-10-01'
|
|
strict-transport-security:
|
|
- max-age=31536000; includeSubDomains; preload
|
|
x-ratelimit-limit-requests:
|
|
- '30000'
|
|
x-ratelimit-limit-tokens:
|
|
- '150000000'
|
|
x-ratelimit-remaining-requests:
|
|
- '29999'
|
|
x-ratelimit-remaining-tokens:
|
|
- '149999498'
|
|
x-ratelimit-reset-requests:
|
|
- 2ms
|
|
x-ratelimit-reset-tokens:
|
|
- 0s
|
|
x-request-id:
|
|
- req_61412618dc60f9f52215463e4416bdaa
|
|
http_version: HTTP/1.1
|
|
status_code: 200
|
|
- request:
|
|
body: !!binary |
|
|
CqYBCiQKIgoMc2VydmljZS5uYW1lEhIKEGNyZXdBSS10ZWxlbWV0cnkSfgoSChBjcmV3YWkudGVs
|
|
ZW1ldHJ5EmgKEKVP/jWcz2tSenrJssmLMfwSCDf4c3vyfnKbKhBUb29sIFVzYWdlIEVycm9yMAE5
|
|
8IAzf2F/EBhBmHBGf2F/EBhKGgoOY3Jld2FpX3ZlcnNpb24SCAoGMC44Ni4wegIYAYUBAAEAAA==
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '169'
|
|
Content-Type:
|
|
- application/x-protobuf
|
|
User-Agent:
|
|
- OTel-OTLP-Exporter-Python/1.27.0
|
|
method: POST
|
|
uri: https://telemetry.crewai.com:4319/v1/traces
|
|
response:
|
|
body:
|
|
string: "\n\0"
|
|
headers:
|
|
Content-Length:
|
|
- '2'
|
|
Content-Type:
|
|
- application/x-protobuf
|
|
Date:
|
|
- Thu, 12 Dec 2024 17:51:54 GMT
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: '{"messages": [{"role": "system", "content": "You are Scorer. You''re an
|
|
expert scorer, specialized in scoring titles.\nYour personal goal is: Score
|
|
the title\nYou ONLY have access to the following tools, and should NEVER make
|
|
up tools that are not listed here:\n\nTool Name: scoring_examples\nTool Arguments:
|
|
{}\nTool Description: Useful examples for scoring titles.\n\nUse the following
|
|
format:\n\nThought: you should always think about what to do\nAction: the action
|
|
to take, only one name of [scoring_examples], just the name, exactly as it''s
|
|
written.\nAction Input: the input to the action, just a simple python dictionary,
|
|
enclosed in curly braces, using \" to wrap keys and values.\nObservation: the
|
|
result of the action\n\nOnce all necessary information is gathered:\n\nThought:
|
|
I now know the final answer\nFinal Answer: the final answer to the original
|
|
input question"}, {"role": "user", "content": "\nCurrent Task: Evaluate the
|
|
title ''The impact of AI in the future of work'' and give it an integer score
|
|
between 1-5, based on your expert assessment.\n\nThis is the expect criteria
|
|
for your final answer: Your best answer to your coworker asking you this, accounting
|
|
for the context shared.\nyou MUST return the actual complete content as the
|
|
final answer, not a summary.\n\nThis is the context you''re working with:\nThe
|
|
task is to assign a score to the given title based on its significance, relevance,
|
|
and impactfulness regarding the future of work influenced by artificial intelligence.
|
|
This score needs to reflect a thorough evaluation within the range of 1 (being
|
|
the least impactful or relevant) to 5 (being the most impactful or relevant).
|
|
The assessment is highly important and could significantly affect our future
|
|
work, so it''s crucial to consider the current discourse on AI, its potential
|
|
transformative power on industries and job markets, and general expectations
|
|
of its future role.\n\nBegin! This is VERY important to you, use the tools available
|
|
and give your best Final Answer, your job depends on it!\n\nThought:"}, {"role":
|
|
"assistant", "content": "I need to evaluate the title \"The impact of AI in
|
|
the future of work\" based on its significance, relevance, and impactfulness,
|
|
considering the current discourse on AI and its transformative role in industries
|
|
and job markets.\n\nAction: scoring_examples \nAction Input: {\"title\": \"The
|
|
impact of AI in the future of work\"} \nObservation: \nI encountered an error
|
|
while trying to use the tool. This was the error: Error.\n Tool scoring_examples
|
|
accepts these inputs: Tool Name: scoring_examples\nTool Arguments: {}\nTool
|
|
Description: Useful examples for scoring titles..\nMoving on then. I MUST either
|
|
use a tool (use one at time) OR give my best final answer not both at the same
|
|
time. To Use the following format:\n\nThought: you should always think about
|
|
what to do\nAction: the action to take, should be one of [scoring_examples]\nAction
|
|
Input: the input to the action, dictionary enclosed in curly braces\nObservation:
|
|
the result of the action\n... (this Thought/Action/Action Input/Result can repeat
|
|
N times)\nThought: I now can give a great answer\nFinal Answer: Your final answer
|
|
must be the great and the most complete as possible, it must be outcome described"}],
|
|
"model": "gpt-4o-mini", "stop": ["\nObservation:"], "stream": false}'
|
|
headers:
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- gzip, deflate
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '3325'
|
|
content-type:
|
|
- application/json
|
|
cookie:
|
|
- _cfuvid=FasG_74jjKfEtA2Mjn2iKdu62tv3zosBxYNYTk1E12M-1734025911900-0.0.1.1-604800000;
|
|
__cf_bm=hmykq8dPVo.iRCPFLyDJJVhA3vlSAmoKNOK6szPX5ZI-1734025911-1.0.1.1-ukj3SfeY5GaS6q5LldvL5GcyN5W_on7HGUThOw9g_oKEVS8.E6bA3rTgQQZyloVkpXfJOSywGJnySVpMP.eJWA
|
|
host:
|
|
- api.openai.com
|
|
user-agent:
|
|
- OpenAI/Python 1.52.1
|
|
x-stainless-arch:
|
|
- arm64
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- MacOS
|
|
x-stainless-package-version:
|
|
- 1.52.1
|
|
x-stainless-raw-response:
|
|
- 'true'
|
|
x-stainless-retry-count:
|
|
- '0'
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.11.10
|
|
method: POST
|
|
uri: https://api.openai.com/v1/chat/completions
|
|
response:
|
|
content: "{\n \"id\": \"chatcmpl-Adhdp5Oq2gpRyz7oIh2YzjmLoX4RB\",\n \"object\":
|
|
\"chat.completion\",\n \"created\": 1734025913,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n
|
|
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
|
|
\"assistant\",\n \"content\": \"Thought: Since I cannot use the tool
|
|
to score the title, I will need to perform a manual evaluation based on my expertise
|
|
in scoring titles and the context provided. \\n\\nThe title \\\"The impact of
|
|
AI in the future of work\\\" is highly relevant given the current state of discourse
|
|
surrounding artificial intelligence and its rapid integration into various industries.
|
|
The title effectively captures a significant topic\u2014how AI will shape the
|
|
future of employment, job roles, and organizational structure.\\n\\nEvaluating
|
|
its significance, the title could attract attention from professionals, scholars,
|
|
and businesses interested in understanding the implications of AI on work environments
|
|
and labor markets. It addresses both the potential benefits and challenges posed
|
|
by AI, making it a crucial discussion point in contemporary and future work
|
|
scenarios.\\n\\nFurthermore, its impactfulness lies in its ability to reflect
|
|
concern over the potential job displacement caused by automation versus the
|
|
new opportunities that AI might create. It also aligns with ongoing debates
|
|
around the ethical use of AI in workplaces, further enhancing its relevance.\\n\\nConsidering
|
|
all these factors, I would assign the title a score of 5 for its profound significance,
|
|
relevance, and impactfulness concerning the future of work influenced by AI.\\n\\nThought:
|
|
I now know the final answer\\nFinal Answer: The title \\\"The impact of AI in
|
|
the future of work\\\" scores a 5 based on its significance, relevance, and
|
|
impactfulness. It effectively addresses a crucial topic that is highly relevant
|
|
in today's discourse on artificial intelligence and its transformative role
|
|
in industries and job markets. This title is pivotal for understanding the future
|
|
implications of AI on employment and work environments.\",\n \"refusal\":
|
|
null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n
|
|
\ }\n ],\n \"usage\": {\n \"prompt_tokens\": 651,\n \"completion_tokens\":
|
|
313,\n \"total_tokens\": 964,\n \"prompt_tokens_details\": {\n \"cached_tokens\":
|
|
0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\": {\n
|
|
\ \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\":
|
|
0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"system_fingerprint\":
|
|
\"fp_6fc10e10eb\"\n}\n"
|
|
headers:
|
|
CF-Cache-Status:
|
|
- DYNAMIC
|
|
CF-RAY:
|
|
- 8f0f90a5fa396755-ATL
|
|
Connection:
|
|
- keep-alive
|
|
Content-Encoding:
|
|
- gzip
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Thu, 12 Dec 2024 17:51:58 GMT
|
|
Server:
|
|
- cloudflare
|
|
Transfer-Encoding:
|
|
- chunked
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
access-control-expose-headers:
|
|
- X-Request-ID
|
|
alt-svc:
|
|
- h3=":443"; ma=86400
|
|
openai-organization:
|
|
- crewai-iuxna1
|
|
openai-processing-ms:
|
|
- '4850'
|
|
openai-version:
|
|
- '2020-10-01'
|
|
strict-transport-security:
|
|
- max-age=31536000; includeSubDomains; preload
|
|
x-ratelimit-limit-requests:
|
|
- '30000'
|
|
x-ratelimit-limit-tokens:
|
|
- '150000000'
|
|
x-ratelimit-remaining-requests:
|
|
- '29999'
|
|
x-ratelimit-remaining-tokens:
|
|
- '149999210'
|
|
x-ratelimit-reset-requests:
|
|
- 2ms
|
|
x-ratelimit-reset-tokens:
|
|
- 0s
|
|
x-request-id:
|
|
- req_8974594f8b3ba52b6bb30a6a1870f1fb
|
|
http_version: HTTP/1.1
|
|
status_code: 200
|
|
- request:
|
|
body: '{"messages": [{"role": "system", "content": "You are Crew Manager. You
|
|
are a seasoned manager with a knack for getting the best out of your team.\nYou
|
|
are also known for your ability to delegate work to the right people, and to
|
|
ask the right questions to get the best out of your team.\nEven though you don''t
|
|
perform tasks by yourself, you have a lot of experience in the field, which
|
|
allows you to properly evaluate the work of your team members.\nYour personal
|
|
goal is: Manage the team to complete the task in the best way possible.\nYou
|
|
ONLY have access to the following tools, and should NEVER make up tools that
|
|
are not listed here:\n\nTool Name: Delegate work to coworker\nTool Arguments:
|
|
{''task'': {''description'': ''The task to delegate'', ''type'': ''str''}, ''context'':
|
|
{''description'': ''The context for the task'', ''type'': ''str''}, ''coworker'':
|
|
{''description'': ''The role/name of the coworker to delegate to'', ''type'':
|
|
''str''}}\nTool Description: Delegate a specific task to one of the following
|
|
coworkers: Scorer\nThe input to this tool should be the coworker, the task you
|
|
want them to do, and ALL necessary context to execute the task, they know nothing
|
|
about the task, so share absolute everything you know, don''t reference things
|
|
but instead explain them.\nTool Name: Ask question to coworker\nTool Arguments:
|
|
{''question'': {''description'': ''The question to ask'', ''type'': ''str''},
|
|
''context'': {''description'': ''The context for the question'', ''type'': ''str''},
|
|
''coworker'': {''description'': ''The role/name of the coworker to ask'', ''type'':
|
|
''str''}}\nTool Description: Ask a specific question to one of the following
|
|
coworkers: Scorer\nThe input to this tool should be the coworker, the question
|
|
you have for them, and ALL necessary context to ask the question properly, they
|
|
know nothing about the question, so share absolute everything you know, don''t
|
|
reference things but instead explain them.\n\nUse the following format:\n\nThought:
|
|
you should always think about what to do\nAction: the action to take, only one
|
|
name of [Delegate work to coworker, Ask question to coworker], just the name,
|
|
exactly as it''s written.\nAction Input: the input to the action, just a simple
|
|
python dictionary, enclosed in curly braces, using \" to wrap keys and values.\nObservation:
|
|
the result of the action\n\nOnce all necessary information is gathered:\n\nThought:
|
|
I now know the final answer\nFinal Answer: the final answer to the original
|
|
input question"}, {"role": "user", "content": "\nCurrent Task: Give me an integer
|
|
score between 1-5 for the following title: ''The impact of AI in the future
|
|
of work'', check examples to based your evaluation.\n\nThis is the expect criteria
|
|
for your final answer: The score of the title.\nyou MUST return the actual complete
|
|
content as the final answer, not a summary.\n\nBegin! This is VERY important
|
|
to you, use the tools available and give your best Final Answer, your job depends
|
|
on it!\n\nThought:"}, {"role": "assistant", "content": "Thought: To give an
|
|
accurate score for the title \"The impact of AI in the future of work\" based
|
|
on the specified criteria, I''ll need the expertise of the Scorer. They specialize
|
|
in evaluating content, so I must delegate this task to them. I need to provide
|
|
them with all the necessary context, including the title and the importance
|
|
of giving a well-considered, integer score between 1-5. Since the request stresses
|
|
the importance of this task and its implications for my job, I will make sure
|
|
to communicate the urgency and the criteria very clearly to the Scorer.\n\nAction:
|
|
Delegate work to coworker\n\nAction Input: {\"task\": \"Evaluate the title ''The
|
|
impact of AI in the future of work'' and give it an integer score between 1-5,
|
|
based on your expert assessment.\", \"context\": \"The task is to assign a score
|
|
to the given title based on its significance, relevance, and impactfulness regarding
|
|
the future of work influenced by artificial intelligence. This score needs to
|
|
reflect a thorough evaluation within the range of 1 (being the least impactful
|
|
or relevant) to 5 (being the most impactful or relevant). The assessment is
|
|
highly important and could significantly affect our future work, so it''s crucial
|
|
to consider the current discourse on AI, its potential transformative power
|
|
on industries and job markets, and general expectations of its future role.\",
|
|
\"coworker\": \"Scorer\"}\nObservation: The title \"The impact of AI in the
|
|
future of work\" scores a 5 based on its significance, relevance, and impactfulness.
|
|
It effectively addresses a crucial topic that is highly relevant in today''s
|
|
discourse on artificial intelligence and its transformative role in industries
|
|
and job markets. This title is pivotal for understanding the future implications
|
|
of AI on employment and work environments."}], "model": "gpt-4-0125-preview",
|
|
"stop": ["\nObservation:"], "stream": false}'
|
|
headers:
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- gzip, deflate
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '4843'
|
|
content-type:
|
|
- application/json
|
|
cookie:
|
|
- _cfuvid=FasG_74jjKfEtA2Mjn2iKdu62tv3zosBxYNYTk1E12M-1734025911900-0.0.1.1-604800000;
|
|
__cf_bm=hmykq8dPVo.iRCPFLyDJJVhA3vlSAmoKNOK6szPX5ZI-1734025911-1.0.1.1-ukj3SfeY5GaS6q5LldvL5GcyN5W_on7HGUThOw9g_oKEVS8.E6bA3rTgQQZyloVkpXfJOSywGJnySVpMP.eJWA
|
|
host:
|
|
- api.openai.com
|
|
user-agent:
|
|
- OpenAI/Python 1.52.1
|
|
x-stainless-arch:
|
|
- arm64
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- MacOS
|
|
x-stainless-package-version:
|
|
- 1.52.1
|
|
x-stainless-raw-response:
|
|
- 'true'
|
|
x-stainless-retry-count:
|
|
- '0'
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.11.10
|
|
method: POST
|
|
uri: https://api.openai.com/v1/chat/completions
|
|
response:
|
|
content: "{\n \"id\": \"chatcmpl-Adhduvx929aETP7FXGXyUZWKGhHgH\",\n \"object\":
|
|
\"chat.completion\",\n \"created\": 1734025918,\n \"model\": \"gpt-4-0125-preview\",\n
|
|
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
|
|
\"assistant\",\n \"content\": \"Thought: I now know the final answer\\n\\nFinal
|
|
Answer: The score of the title \\\"The impact of AI in the future of work\\\"
|
|
is 5.\",\n \"refusal\": null\n },\n \"logprobs\": null,\n \"finish_reason\":
|
|
\"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 996,\n \"completion_tokens\":
|
|
32,\n \"total_tokens\": 1028,\n \"prompt_tokens_details\": {\n \"cached_tokens\":
|
|
0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\": {\n
|
|
\ \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\":
|
|
0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"system_fingerprint\":
|
|
null\n}\n"
|
|
headers:
|
|
CF-Cache-Status:
|
|
- DYNAMIC
|
|
CF-RAY:
|
|
- 8f0f90c5693c6755-ATL
|
|
Connection:
|
|
- keep-alive
|
|
Content-Encoding:
|
|
- gzip
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Thu, 12 Dec 2024 17:51:59 GMT
|
|
Server:
|
|
- cloudflare
|
|
Transfer-Encoding:
|
|
- chunked
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
access-control-expose-headers:
|
|
- X-Request-ID
|
|
alt-svc:
|
|
- h3=":443"; ma=86400
|
|
openai-organization:
|
|
- crewai-iuxna1
|
|
openai-processing-ms:
|
|
- '1402'
|
|
openai-version:
|
|
- '2020-10-01'
|
|
strict-transport-security:
|
|
- max-age=31536000; includeSubDomains; preload
|
|
x-ratelimit-limit-requests:
|
|
- '10000'
|
|
x-ratelimit-limit-tokens:
|
|
- '2000000'
|
|
x-ratelimit-remaining-requests:
|
|
- '9999'
|
|
x-ratelimit-remaining-tokens:
|
|
- '1998832'
|
|
x-ratelimit-reset-requests:
|
|
- 6ms
|
|
x-ratelimit-reset-tokens:
|
|
- 35ms
|
|
x-request-id:
|
|
- req_c065668c78262d2781db5b3b04f70dba
|
|
http_version: HTTP/1.1
|
|
status_code: 200
|
|
- request:
|
|
body: '{"messages": [{"role": "system", "content": "You are Crew Manager. You
|
|
are a seasoned manager with a knack for getting the best out of your team.\nYou
|
|
are also known for your ability to delegate work to the right people, and to
|
|
ask the right questions to get the best out of your team.\nEven though you don''t
|
|
perform tasks by yourself, you have a lot of experience in the field, which
|
|
allows you to properly evaluate the work of your team members.\nYour personal
|
|
goal is: Manage the team to complete the task in the best way possible.\nYou
|
|
ONLY have access to the following tools, and should NEVER make up tools that
|
|
are not listed here:\n\nTool Name: Delegate work to coworker\nTool Arguments:
|
|
{''task'': {''description'': ''The task to delegate'', ''type'': ''str''}, ''context'':
|
|
{''description'': ''The context for the task'', ''type'': ''str''}, ''coworker'':
|
|
{''description'': ''The role/name of the coworker to delegate to'', ''type'':
|
|
''str''}}\nTool Description: Delegate a specific task to one of the following
|
|
coworkers: Scorer\nThe input to this tool should be the coworker, the task you
|
|
want them to do, and ALL necessary context to execute the task, they know nothing
|
|
about the task, so share absolutely everything you know, don''t reference things
|
|
but instead explain them.\nTool Name: Ask question to coworker\nTool Arguments:
|
|
{''question'': {''description'': ''The question to ask'', ''type'': ''str''},
|
|
''context'': {''description'': ''The context for the question'', ''type'': ''str''},
|
|
''coworker'': {''description'': ''The role/name of the coworker to ask'', ''type'':
|
|
''str''}}\nTool Description: Ask a specific question to one of the following
|
|
coworkers: Scorer\nThe input to this tool should be the coworker, the question
|
|
you have for them, and ALL necessary context to ask the question properly, they
|
|
know nothing about the question, so share absolutely everything you know, don''t
|
|
reference things but instead explain them.\n\nIMPORTANT: Use the following format
|
|
in your response:\n\n```\nThought: you should always think about what to do\nAction:
|
|
the action to take, only one name of [Delegate work to coworker, Ask question
|
|
to coworker], just the name, exactly as it''s written.\nAction Input: the input
|
|
to the action, just a simple JSON object, enclosed in curly braces, using \"
|
|
to wrap keys and values.\nObservation: the result of the action\n```\n\nOnce
|
|
all necessary information is gathered, return the following format:\n\n```\nThought:
|
|
I now know the final answer\nFinal Answer: the final answer to the original
|
|
input question\n```"}, {"role": "user", "content": "\nCurrent Task: Give me
|
|
an integer score between 1-5 for the following title: ''The impact of AI in
|
|
the future of work'', check examples to based your evaluation.\n\nThis is the
|
|
expected criteria for your final answer: The score of the title.\nyou MUST return
|
|
the actual complete content as the final answer, not a summary.\n\nBegin! This
|
|
is VERY important to you, use the tools available and give your best Final Answer,
|
|
your job depends on it!\n\nThought:"}, {"role": "assistant", "content": "Thought:
|
|
To give an accurate score for the title \"The impact of AI in the future of
|
|
work\" based on the specified criteria, I''ll need the expertise of the Scorer.
|
|
They specialize in evaluating content, so I must delegate this task to them.
|
|
I need to provide them with all the necessary context, including the title and
|
|
the importance of giving a well-considered, integer score between 1-5. Since
|
|
the request stresses the importance of this task and its implications for my
|
|
job, I will make sure to communicate the urgency and the criteria very clearly
|
|
to the Scorer.\n\nAction: Delegate work to coworker\n\nAction Input: {\"task\":
|
|
\"Evaluate the title ''The impact of AI in the future of work'' and give it
|
|
an integer score between 1-5, based on your expert assessment.\", \"context\":
|
|
\"The task is to assign a score to the given title based on its significance,
|
|
relevance, and impactfulness regarding the future of work influenced by artificial
|
|
intelligence. This score needs to reflect a thorough evaluation within the range
|
|
of 1 (being the least impactful or relevant) to 5 (being the most impactful
|
|
or relevant). The assessment is highly important and could significantly affect
|
|
our future work, so it''s crucial to consider the current discourse on AI, its
|
|
potential transformative power on industries and job markets, and general expectations
|
|
of its future role.\", \"coworker\": \"Scorer\"}\nObservation: The score of
|
|
the title \"The impact of AI in the future of work\" is 5."}], "model": "gpt-4-0125-preview",
|
|
"stop": ["\nObservation:"]}'
|
|
headers:
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- gzip, deflate, zstd
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '4575'
|
|
content-type:
|
|
- application/json
|
|
cookie:
|
|
- _cfuvid=FasG_74jjKfEtA2Mjn2iKdu62tv3zosBxYNYTk1E12M-1734025911900-0.0.1.1-604800000
|
|
host:
|
|
- api.openai.com
|
|
user-agent:
|
|
- OpenAI/Python 1.93.0
|
|
x-stainless-arch:
|
|
- arm64
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- MacOS
|
|
x-stainless-package-version:
|
|
- 1.93.0
|
|
x-stainless-raw-response:
|
|
- 'true'
|
|
x-stainless-read-timeout:
|
|
- '600.0'
|
|
x-stainless-retry-count:
|
|
- '0'
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.12.9
|
|
method: POST
|
|
uri: https://api.openai.com/v1/chat/completions
|
|
response:
|
|
body:
|
|
string: !!binary |
|
|
H4sIAAAAAAAAAwAAAP//jJJNaxsxEIbv/hWDznaIE9t19uYWUkLTQiG3OiyydnZXtlajSLN2m+D/
|
|
XqSNvZs2hV4E0jPvq/l6GQEIXYgMhKolq8aZyafl5nq7emqWz9+/bO8/Pu9n3+4VL+nz01e8FeOo
|
|
oM0WFZ9UF4oaZ5A12Q4rj5Ixuk4/zBfTxXw6nSfQUIEmyirHk9nkcno1nziPe42HV2VNWmEQGfwY
|
|
AQC8pDPmaAv8KTK4HJ9eGgxBViiycxCA8GTii5Ah6MDSshj3UJFltCnth5raquYM7sDSAXbx4Bqh
|
|
1FYakDYc0K/t2t6m+yrdM3ioEYIij0BlCmfNBmEtItCNk4ojWd2Btp1dy20XfSC/WwvQAeYXw5w8
|
|
lm2QsSe2NWYApLXEMvY0dePxlRzP9RuqnKdN+EMqSm11qHOPMpCNtQYmJxI9jgAeU5/bN60TzlPj
|
|
OGfaYfruZnHV+Yl+tD29PkEmlmagupmN3/HLC2SpTRhMSiipaix6aT9W2RaaBmA0qPrvbN7z7irX
|
|
tvof+x4ohY6xyJ3HQqu3FfdhHuPm/yvs3OWUsAjo91phzhp9nESBpWxNt5Mi/AqMTV5qW6F3XqfF
|
|
jJMcHUe/AQAA//8DAErhO7yXAwAA
|
|
headers:
|
|
CF-RAY:
|
|
- 974eec827a978486-SJC
|
|
Connection:
|
|
- keep-alive
|
|
Content-Encoding:
|
|
- gzip
|
|
Content-Type:
|
|
- application/json
|
|
Date:
|
|
- Mon, 25 Aug 2025 23:38:36 GMT
|
|
Server:
|
|
- cloudflare
|
|
Set-Cookie:
|
|
- __cf_bm=r95s2Hh1kHgI6PI08wwTySLyufxeDnmixIX5GVDEyoA-1756165116-1.0.1.1-X5dML3NG4uvFgDnjqJ4pQWbB9MyxJisxAZJlRivMc7T1f83cCNBH_cy5fJjn4XjKks_UKUUj5PvBGifu2gLkaiqYYWvbSjrhjKseuPN8.Q4;
|
|
path=/; expires=Tue, 26-Aug-25 00:08:36 GMT; domain=.api.openai.com; HttpOnly;
|
|
Secure; SameSite=None
|
|
- _cfuvid=lnKPmS3pW0Tw6qE4ZI8cf4lyVDuLg7ZNxmzxi7CqlME-1756165116673-0.0.1.1-604800000;
|
|
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
|
|
Strict-Transport-Security:
|
|
- max-age=31536000; includeSubDomains; preload
|
|
Transfer-Encoding:
|
|
- chunked
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
access-control-expose-headers:
|
|
- X-Request-ID
|
|
alt-svc:
|
|
- h3=":443"; ma=86400
|
|
cf-cache-status:
|
|
- DYNAMIC
|
|
openai-organization:
|
|
- crewai-iuxna1
|
|
openai-processing-ms:
|
|
- '1211'
|
|
openai-project:
|
|
- proj_xitITlrFeen7zjNSzML82h9x
|
|
openai-version:
|
|
- '2020-10-01'
|
|
x-envoy-upstream-service-time:
|
|
- '1305'
|
|
x-ratelimit-limit-requests:
|
|
- '10000'
|
|
x-ratelimit-limit-tokens:
|
|
- '2000000'
|
|
x-ratelimit-remaining-requests:
|
|
- '9999'
|
|
x-ratelimit-remaining-tokens:
|
|
- '1998911'
|
|
x-ratelimit-reset-requests:
|
|
- 6ms
|
|
x-ratelimit-reset-tokens:
|
|
- 32ms
|
|
x-request-id:
|
|
- req_3ee53a55bafb9d8ab8855cf07987362b
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
version: 1
|