From 6ff18128a7ce1a1a6a82d3dd6b7753a32e5a149f Mon Sep 17 00:00:00 2001 From: Joao Moura Date: Fri, 10 Nov 2023 18:15:45 -0300 Subject: [PATCH] Add support to delegate work --- crewai/crew.py | 5 + crewai/task.py | 12 +- crewai/tools/agent_tools.py | 57 + tests/agent_test.py | 39 +- tests/agent_tools/__init__.py | 0 tests/agent_tools/agent_tools_test.py | 46 + .../cassettes/test_ask_question.yaml | 207 +++ .../cassettes/test_delegate_work.yaml | 215 +++ tests/cassettes/test_agent_execution.yaml | 179 +- ...t_agent_execution_with_specific_tools.yaml | 303 ++++ .../test_agent_execution_with_tools.yaml | 207 +-- tests/cassettes/test_crew_creation.yaml | 1467 ++--------------- .../test_crew_with_delegating_agents.yaml | 579 +++++++ tests/crew_test.py | 49 +- tests/task_test.py | 57 + 15 files changed, 1786 insertions(+), 1636 deletions(-) create mode 100644 crewai/tools/agent_tools.py create mode 100644 tests/agent_tools/__init__.py create mode 100644 tests/agent_tools/agent_tools_test.py create mode 100644 tests/agent_tools/cassettes/test_ask_question.yaml create mode 100644 tests/agent_tools/cassettes/test_delegate_work.yaml create mode 100644 tests/cassettes/test_agent_execution_with_specific_tools.yaml create mode 100644 tests/cassettes/test_crew_with_delegating_agents.yaml create mode 100644 tests/task_test.py diff --git a/crewai/crew.py b/crewai/crew.py index 93fd3b85f..1435573c9 100644 --- a/crewai/crew.py +++ b/crewai/crew.py @@ -4,6 +4,7 @@ from pydantic.v1 import BaseModel, Field from .process import Process from .agent import Agent from .task import Task +from .tools.agent_tools import AgentTools class Crew(BaseModel): """ @@ -35,6 +36,10 @@ class Crew(BaseModel): """ task_outcome = None for task in self.tasks: + # Add delegation tools to the task if the agent allows it + if task.agent.allow_delegation: + tools = AgentTools(agents=self.agents).tools() + task.tools += tools task_outcome = task.execute(task_outcome) return task_outcome \ No newline at end of file diff --git a/crewai/task.py b/crewai/task.py index 0b83ecb84..53de4354a 100644 --- a/crewai/task.py +++ b/crewai/task.py @@ -22,17 +22,21 @@ class Task(BaseModel): @root_validator(pre=False) def _set_tools(cls, values): - if values.get('agent'): - values['tools'] = values.get('agent.tools') + if (values.get('agent')) and not (values.get('tools')): + values['tools'] = values.get('agent').tools return values - def execute(self, context) -> str: + def execute(self, context: str = None) -> str: """ Execute the task. Returns: output (str): Output of the task. """ if self.agent: - return self.agent.execute_task(self.description, context) + return self.agent.execute_task( + task = self.description, + context = context, + tools = self.tools + ) else: raise Exception(f"The task '{self.description}' has no agent assigned, therefore it can't be executed directly and should be executed in a Crew using a specific process that support that, either consensual or hierarchical.") \ No newline at end of file diff --git a/crewai/tools/agent_tools.py b/crewai/tools/agent_tools.py new file mode 100644 index 000000000..06ea9f68e --- /dev/null +++ b/crewai/tools/agent_tools.py @@ -0,0 +1,57 @@ +from typing import List, Any +from pydantic.v1 import BaseModel, Field +from textwrap import dedent +from langchain.tools import Tool + +from ..agent import Agent + +class AgentTools(BaseModel): + """Tools for generic agent.""" + agents: List[Agent] = Field(description="List of agents in this crew.") + + def tools(self): + return [ + Tool.from_function( + func=self.delegate_work, + name="Delegate Work to Co-Worker", + description=dedent(f"""Useful to delegate a specific task to one of the + following co-workers: [{', '.join([agent.role for agent in self.agents])}]. + The input to this tool should be a pipe (|) separated text of length + three, representing the role you want to delegate it to, the task and + information necessary. For example, `coworker|task|information`. + """) + ), + Tool.from_function( + func=self.ask_question, + name="Ask Question to Co-Worker", + description=dedent(f"""Useful to ask a question, opinion or take from on + of the following co-workers: [{', '.join([agent.role for agent in self.agents])}]. + The input to this tool should be a pipe (|) separated text of length + three, representing the role you want to ask it to, the question and + information necessary. For example, `coworker|question|information`. + """) + ), + ] + + def delegate_work(self, command): + """Useful to delegate a specific task to a coworker.""" + return self.__execute(command) + + def ask_question(self, command): + """Useful to ask a question, opinion or take from a coworker.""" + return self.__execute(command) + + def __execute(self, command): + """Execute the command.""" + agent, task, information = command.split("|") + if not agent or not task or not information: + return "Error executing tool." + + agent = [available_agent for available_agent in self.agents if available_agent.role == agent] + + if len(agent) == 0: + return "Error executing tool." + + agent = agent[0] + result = agent.execute_task(task, information) + return result \ No newline at end of file diff --git a/tests/agent_test.py b/tests/agent_test.py index a7b3feade..c77bd4ec1 100644 --- a/tests/agent_test.py +++ b/tests/agent_test.py @@ -18,7 +18,7 @@ def test_agent_creation(): assert agent.backstory == "test backstory" assert agent.tools == [] -def test_agent_default_value(): +def test_agent_default_values(): agent = Agent( role="test role", goal="test goal", @@ -29,6 +29,7 @@ def test_agent_default_value(): assert agent.llm.model_name == "gpt-4" assert agent.llm.temperature == 0.7 assert agent.llm.verbose == False + assert agent.allow_delegation == True def test_custom_llm(): agent = Agent( @@ -50,11 +51,12 @@ def test_agent_execution(): agent = Agent( role="test role", goal="test goal", - backstory="test backstory" + backstory="test backstory", + allow_delegation=False ) output = agent.execute_task("How much is 1 + 1?") - assert output == "1 + 1 equals 2." + assert output == "1 + 1 = 2" @pytest.mark.vcr() def test_agent_execution_with_tools(): @@ -73,8 +75,35 @@ def test_agent_execution_with_tools(): role="test role", goal="test goal", backstory="test backstory", - tools=[multiplier] + tools=[multiplier], + allow_delegation=False ) output = agent.execute_task("What is 3 times 4") - assert output == "3 times 4 is 12." \ No newline at end of file + assert output == "3 times 4 is 12" + +@pytest.mark.vcr() +def test_agent_execution_with_specific_tools(): + from langchain.tools import tool + + @tool + def multiplier(numbers) -> float: + """Useful for when you need to multiply two numbers together. + The input to this tool should be a comma separated list of numbers of + length two, representing the two numbers you want to multiply together. + For example, `1,2` would be the input if you wanted to multiply 1 by 2.""" + a, b = numbers.split(',') + return int(a) * int(b) + + agent = Agent( + role="test role", + goal="test goal", + backstory="test backstory", + allow_delegation=False + ) + + output = agent.execute_task( + task="What is 3 times 4", + tools=[multiplier] + ) + assert output == "12" \ No newline at end of file diff --git a/tests/agent_tools/__init__.py b/tests/agent_tools/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/agent_tools/agent_tools_test.py b/tests/agent_tools/agent_tools_test.py new file mode 100644 index 000000000..46aa4d276 --- /dev/null +++ b/tests/agent_tools/agent_tools_test.py @@ -0,0 +1,46 @@ +"""Test Agent creation and execution basic functionality.""" + +import pytest +from ...crewai import Agent +from ...crewai.tools.agent_tools import AgentTools + +researcher = Agent( + role="researcher", + goal="make the best research and analysis on content about AI and AI agents", + backstory="You're an expert researcher, specialized in technology", + allow_delegation=False +) +tools = AgentTools(agents=[researcher]) + + +@pytest.mark.vcr() +def test_delegate_work(): + result = tools.delegate_work( + command="researcher|share your take on AI Agents|I heard you hate them" + ) + + assert result == "As a technology researcher, it's important to maintain objectivity. AI agents have their own merits and demerits. On the positive side, they can automate routine tasks, improve efficiency, and enable new forms of communication and decision-making. However, there are potential downsides, like job displacement due to automation and concerns about privacy and security. It's not accurate to say that I hate them, but rather, I recognize the potential implications - both positive and negative - of their use." + +@pytest.mark.vcr() +def test_ask_question(): + result = tools.ask_question( + command="researcher|do you hate AI Agents?|I heard you LOVE them" + ) + + assert result == "As a researcher, my feelings towards AI Agents are neutral. I neither love nor hate them. I study and analyze them objectively to understand their potential, capabilities, and limitations. While I appreciate the technological advancement they represent, my job is to approach them from an analytical and scientific perspective." + +def test_delegate_work_to_wrong_agent(): + result = tools.ask_question( + command="writer|share your take on AI Agents|I heard you hate them" + ) + + assert result == "Error executing tool." + +def test_ask_question_to_wrong_agent(): + result = tools.ask_question( + command="writer|do you hate AI Agents?|I heard you LOVE them" + ) + + assert result == "Error executing tool." + + diff --git a/tests/agent_tools/cassettes/test_ask_question.yaml b/tests/agent_tools/cassettes/test_ask_question.yaml new file mode 100644 index 000000000..f25aa1e70 --- /dev/null +++ b/tests/agent_tools/cassettes/test_ask_question.yaml @@ -0,0 +1,207 @@ +interactions: +- request: + body: '{"messages": [{"role": "user", "content": "You are researcher.\nYou''re + an expert researcher, specialized in technology\n\nYour personal goal is: make + the best research and analysis on content about AI and AI agents\nTOOLS:\n------\n\nYou + have access to the following tools:\n\n\n\nTo use a tool, please use the following + format:\n\n```\nThought: Do I need to use a tool? Yes\nAction: the action to + take, should be one of []\nAction Input: the input to the action\nObservation: + the result of the action\n```\n\nWhen you have a response for your task, or + if you do not need to use a tool, you MUST use the format:\n\n```\nThought: + Do I need to use a tool? No\nFinal Answer: [your response here]\n```\n\t\tThis + is the summary of your work so far:\n \nBegin! This is VERY important + to you, your job depends on it!\n\nCurrent Task: do you hate AI Agents?\n\nThis + is the context you are working with:\nI heard you LOVE them\n\n"}], "model": + "gpt-4", "max_tokens": null, "stream": false, "n": 1, "temperature": 0.7, "stop": + ["\nObservation"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer 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 + Connection: + - keep-alive + Content-Length: + - '1042' + Content-Type: + - application/json + Cookie: + - __cf_bm=tK5mxmIOd60ucoQKATtbR8SRQ_JqyXuQNF3_REtUp8Y-1699495558-0-AYxCQwfqvfsWejuO19whuBqtsq2nrXi+wWcAirvErhN24TrrInAJKVGS9DLI/ZeUJPnfoX8EyTWdV32kPHM68cM= + User-Agent: + - OpenAI/v1 PythonBindings/0.28.1 + X-OpenAI-Client-User-Agent: + - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": + "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", + "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 + PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA1RSy24bMRC7+ysInR0jLyexL4WLooBboJemL7RFMNGOvXK1M4I0TuoE+fdAu07c + XnQQRQ4pzuMIcKFxczjfkvkuxaOrpcbrjx/o83RWNl/F0oP8+N58eVvCw2bmxpWhtxv29sKaeO1S + ZAsqA+wzk3FVPbmYzc5n08uzaQ902nCstHWyo/Oj44uTsz2j1eC5uDl+jgDgsT+rN2n4r5vjePxy + 03EptGY3f30EuKyx3jgqJRQjMTc+gF7FWHq7161u163N8U6xhDA3MMW2MAimGt/gk/6S90EoYiHl + nvMciwJC5sKUfct5jG6HFXMMsi4wvafcFCyWWKxZrIAyQ3hrmeKknxGs5YyodwzRjJaMYS13FS22 + bXYgaUBCcfcwIBj+N9xx3PX+pOFcYzUVDhlJa6BAcQxPiW5DDBa4jHulGLpgVNsoE3xrQ2QsQSll + 9mE/G8a+FY26Dp4iqLkj8dyxWEV3yJxqYLE+7EZvEWrUXkXJt4PLVdYOJIN1G5SkQfGhmlsFj8S5 + pCHJxO0LeXptchUklPYmMxWV2k4xTcOzpxHwu9+M7X9lu5S1S3Zj+oelrsvp8WzQc4clPKCXp3vQ + 1Cj+w7o6GdUhT6NnAAAA//8DAPOW3RcBAwAA + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 823282bba87b1ceb-GRU + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 09 Nov 2023 02:08:59 GMT + Server: + - cloudflare + Transfer-Encoding: + - chunked + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400 + openai-model: + - gpt-4-0613 + openai-organization: + - clearbit-2 + openai-processing-ms: + - '3917' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '100' + x-ratelimit-limit-tokens: + - '300000' + x-ratelimit-remaining-requests: + - '99' + x-ratelimit-remaining-tokens: + - '299770' + x-ratelimit-reset-requests: + - 600ms + x-ratelimit-reset-tokens: + - 45ms + x-request-id: + - 9ddc4f75922fceafc44487e8f65707eb + status: + code: 200 + message: OK +- request: + body: '{"messages": [{"role": "user", "content": "Progressively summarize the + lines of conversation provided, adding onto the previous summary returning a + new summary.\n\nEXAMPLE\nCurrent summary:\nThe human asks what the AI thinks + of artificial intelligence. The AI thinks artificial intelligence is a force + for good.\n\nNew lines of conversation:\nHuman: Why do you think artificial + intelligence is a force for good?\nAI: Because artificial intelligence will + help humans reach their full potential.\n\nNew summary:\nThe human asks what + the AI thinks of artificial intelligence. The AI thinks artificial intelligence + is a force for good because it will help humans reach their full potential.\nEND + OF EXAMPLE\n\nCurrent summary:\n\n\nNew lines of conversation:\nHuman: do you + hate AI Agents?\n\nThis is the context you are working with:\nI heard you LOVE + them\nAI: As a researcher, my feelings towards AI Agents are neutral. I neither + love nor hate them. I study and analyze them objectively to understand their + potential, capabilities, and limitations. While I appreciate the technological + advancement they represent, my job is to approach them from an analytical and + scientific perspective.\n\nNew summary:"}], "model": "gpt-4", "max_tokens": + null, "stream": false, "n": 1, "temperature": 0.7}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer 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 + Connection: + - keep-alive + Content-Length: + - '1289' + Content-Type: + - application/json + Cookie: + - __cf_bm=tK5mxmIOd60ucoQKATtbR8SRQ_JqyXuQNF3_REtUp8Y-1699495558-0-AYxCQwfqvfsWejuO19whuBqtsq2nrXi+wWcAirvErhN24TrrInAJKVGS9DLI/ZeUJPnfoX8EyTWdV32kPHM68cM= + User-Agent: + - OpenAI/v1 PythonBindings/0.28.1 + X-OpenAI-Client-User-Agent: + - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": + "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", + "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 + PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA1RSwY4aMQy98xVWzgOCXUqBW08VUttDu6pWqqqVSQxxN5NEsYeWrvj3KjPMsr1E + ip/fy3OeXyYAhp3ZgrEe1bY5TNe7FB43vP7mvuN5uX7UT93xy5Lmn7+Gj2Saykj7X2R1ZM1sanMg + 5RQH2BZCpaq6WG02y8279/ebHmiTo1Bpx6zT5XS+WtxfGT6xJTFb+DEBAHjpz+otOvpjtjBvxkpL + Ingks31tAjAlhVoxKMKiGNU0N9CmqBR7uw+ewHctRkB5FlBP8GEHfABW8Kgk9YpHiioNaILfnq0f + 2wpJTtFVGiqgANYSYbGeSlMlIrF6KhDSiQRiKldR9dTOYBdFCV3fKdo5JgGMDjBiOP+9tsHwt3yi + cK4Ouuio1JFchblATnUYxtCAxYx7DqxM0vRSgVtWrEnIDB4G25hzIcujEVCyPqaQjmwxALoTRkst + Ra3oGQrlOlXUBvad9uyE1o/2DiW1UP+vmtZBIjoQy9XVgS1kKpKHEWbmmsLlNb4DRxb/VAglxRqJ + aMpD22UC8LNfh+6/hE0uqc36pOmZYt2Ru8Vq0DO3zbuhqxHUpBjesNZ3k/rIZfIPAAD//wMA5pC0 + w/YCAAA= + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 823282d5cdcc1ceb-GRU + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 09 Nov 2023 02:09:03 GMT + Server: + - cloudflare + Transfer-Encoding: + - chunked + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400 + openai-model: + - gpt-4-0613 + openai-organization: + - clearbit-2 + openai-processing-ms: + - '3310' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '100' + x-ratelimit-limit-tokens: + - '300000' + x-ratelimit-remaining-requests: + - '99' + x-ratelimit-remaining-tokens: + - '299699' + x-ratelimit-reset-requests: + - 600ms + x-ratelimit-reset-tokens: + - 60ms + x-request-id: + - 3f90abfc5a4c9e1c14f2502f88195bbd + status: + code: 200 + message: OK +version: 1 diff --git a/tests/agent_tools/cassettes/test_delegate_work.yaml b/tests/agent_tools/cassettes/test_delegate_work.yaml new file mode 100644 index 000000000..c22bac314 --- /dev/null +++ b/tests/agent_tools/cassettes/test_delegate_work.yaml @@ -0,0 +1,215 @@ +interactions: +- request: + body: '{"messages": [{"role": "user", "content": "You are researcher.\nYou''re + an expert researcher, specialized in technology\n\nYour personal goal is: make + the best research and analysis on content about AI and AI agents\nTOOLS:\n------\n\nYou + have access to the following tools:\n\n\n\nTo use a tool, please use the following + format:\n\n```\nThought: Do I need to use a tool? Yes\nAction: the action to + take, should be one of []\nAction Input: the input to the action\nObservation: + the result of the action\n```\n\nWhen you have a response for your task, or + if you do not need to use a tool, you MUST use the format:\n\n```\nThought: + Do I need to use a tool? No\nFinal Answer: [your response here]\n```\n\t\tThis + is the summary of your work so far:\n \nBegin! This is VERY important + to you, your job depends on it!\n\nCurrent Task: share your take on AI Agents\n\nThis + is the context you are working with:\nI heard you hate them\n\n"}], "model": + "gpt-4", "max_tokens": null, "stream": false, "n": 1, "temperature": 0.7, "stop": + ["\nObservation"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer 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 + Connection: + - keep-alive + Content-Length: + - '1048' + Content-Type: + - application/json + User-Agent: + - OpenAI/v1 PythonBindings/0.28.1 + X-OpenAI-Client-User-Agent: + - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": + "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", + "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 + PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA1RTy47jRgy8+ysKuuxFNtbzSsa3uSziBHkiQQJkgwXdoqReS6TQpOwoi/n3oGV5 + jL000Cyyq1hNflkBRayKHYrQkod+6Nbf7tVVp++/+eHDr78Y/3n87aft/mkfxjr88VdR5go9fObg + 16pN0H7o2KPKBQ6JyTm/un16fn54frp7vJuBXivuclkz+Pph/f5pe79UtBoDW7HD3ysA+DKfWZtU + /G+xw/vyGunZjBoudm9JQJG0y5GCzKI5iRflDQwqzjLL/b3VsWl9hx8nDJxMhTrUzF2UxuB6plQZ + XvZ4aVjcYK2OXSXvHFTXHBz9hCFpzWZxriWhbrJoG7wYCImNKYWWU4k9hLmCa644xYpBEB49zWUV + LibGE+MU+TxoFMeBjCuooKbgNqdV5LT5KB/lQ8yEL2JnTrsLnXNoRTttpq+Yo78zxH7QlK3ICnqK + 4hTljTT6tMl90qXPlk4Mbzkm6FnQc4pXer5cNvhZcgYGtTirtlhxmUMTAglodO3JGUlHj8JwsqOV + WUfSE4PrOobIEqZyfpiFDh1D+IxaU2/QGkH7fpQYKM/SQh9itnrd0zFKs8F3euZTbtJbTgxKWVH+ + 3kgdKj1LlmUlunhkfNYDqmhDR4F7Fkc1crZj0XolCSqBkxjooKNjSPFEYZoh4zCm2ax9NlXUQSGM + KTfqCqMJ3pJjj3YOtdyXOIyORL5MQeKgjcT/eLHvKjb2Q7e0aljjoN7ezM3cwg3Nl3X25vI7o/Gm + WEb79W0n6ijR2k+JyVTynJvrcEl7XQH/zDs2frU2xZC0H/yT65ElL97ddtmx4rbON3R7/7igrk7d + Dbh/eFxlltfV/wAAAP//AwAfk8xeTAQAAA== + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 82328f5b5d5a013b-GRU + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 09 Nov 2023 02:17:38 GMT + Server: + - cloudflare + Set-Cookie: + - __cf_bm=Kok7joFOxdnT4Rx42sui.msFN7jEZTBCOWV7KIuNoRU-1699496258-0-AWKfmFHxH6JvrxGRge6CrVDGH8NMMnlPoiNxVrU67tDkND02pVJemu65mT6VtMZ2t9HbOQUO+GHsKxUfpQh3BXI=; + path=/; expires=Thu, 09-Nov-23 02:47:38 GMT; domain=.api.openai.com; HttpOnly; + Secure; SameSite=None + Transfer-Encoding: + - chunked + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400 + openai-model: + - gpt-4-0613 + openai-organization: + - clearbit-2 + openai-processing-ms: + - '5497' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '100' + x-ratelimit-limit-tokens: + - '300000' + x-ratelimit-remaining-requests: + - '99' + x-ratelimit-remaining-tokens: + - '299769' + x-ratelimit-reset-requests: + - 600ms + x-ratelimit-reset-tokens: + - 46ms + x-request-id: + - cb70f6cd3ef05277cf4d4b56d0bf5595 + status: + code: 200 + message: OK +- request: + body: '{"messages": [{"role": "user", "content": "Progressively summarize the + lines of conversation provided, adding onto the previous summary returning a + new summary.\n\nEXAMPLE\nCurrent summary:\nThe human asks what the AI thinks + of artificial intelligence. The AI thinks artificial intelligence is a force + for good.\n\nNew lines of conversation:\nHuman: Why do you think artificial + intelligence is a force for good?\nAI: Because artificial intelligence will + help humans reach their full potential.\n\nNew summary:\nThe human asks what + the AI thinks of artificial intelligence. The AI thinks artificial intelligence + is a force for good because it will help humans reach their full potential.\nEND + OF EXAMPLE\n\nCurrent summary:\n\n\nNew lines of conversation:\nHuman: share + your take on AI Agents\n\nThis is the context you are working with:\nI heard + you hate them\nAI: As a technology researcher, it''s important to maintain objectivity. + AI agents have their own merits and demerits. On the positive side, they can + automate routine tasks, improve efficiency, and enable new forms of communication + and decision-making. However, there are potential downsides, like job displacement + due to automation and concerns about privacy and security. It''s not accurate + to say that I hate them, but rather, I recognize the potential implications + - both positive and negative - of their use.\n\nNew summary:"}], "model": "gpt-4", + "max_tokens": null, "stream": false, "n": 1, "temperature": 0.7}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer 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 + Connection: + - keep-alive + Content-Length: + - '1475' + Content-Type: + - application/json + Cookie: + - __cf_bm=Kok7joFOxdnT4Rx42sui.msFN7jEZTBCOWV7KIuNoRU-1699496258-0-AWKfmFHxH6JvrxGRge6CrVDGH8NMMnlPoiNxVrU67tDkND02pVJemu65mT6VtMZ2t9HbOQUO+GHsKxUfpQh3BXI= + User-Agent: + - OpenAI/v1 PythonBindings/0.28.1 + X-OpenAI-Client-User-Agent: + - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": + "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", + "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 + PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA1RTsW7bQAzd/RWEli6yESepkXjLVg9dmixpUQTUiZYY60jhSDl1gvx7cbIcJ4uA + 4zuS7717epsBFFwXayhCix5i381vNurDJtzXe7m/271Wd031+Pvh8qc/Hn78KsrcodUzBT91LYLG + viNnlSMcEqFTnrpc3d5e364uv9+MQNSautzW9D6/nl+slldTR6scyIo1/JkBALyN38xNavpXrOGi + PFUimWFDxfrjEkCRtMuVAs3YHMWL8gwGFScZ6T60BO0QUQBtZ+Atwd0GtpqA3UB7FlYBlVzFhsSt + BKzrRGYsDSCkIWoCb9GBHVp0GqfEBTyMs0pAAwSn0Ip22hwgkRGm0FIqISKLI4vB0UHesx8ApQYd + vGMhg0q9HXlFSplTBmuaDro9E1vAxoFi36Lx68gC/YxCyBoH14hO4FltCRz7pHsC2m45MEk4lON8 + Eqw6AqGXbEUc9wSNcRAOmJ91YhHYWGUeccfSlFANDtiZgmi2odfsMmMHtb6IcU0GHe8InrWCmq3v + MFAk8ePSPvEew1G9URhStiKoBEpiJzshdJh4yyd97FArmXw7ev/5mTKbREEbmeygT4w49t2kZVTn + LXGCwWhRTDl5/wjYloWtfUqEppJDY6798dr7DODvGNjhSwaLPmns/cl1R5JTPAV+DN/p3zijy4ur + CXV17M7A1Wo5y1veZ/8BAAD//wMAkERfVZkDAAA= + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 82328f7f6eae013b-GRU + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 09 Nov 2023 02:17:44 GMT + Server: + - cloudflare + Transfer-Encoding: + - chunked + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400 + openai-model: + - gpt-4-0613 + openai-organization: + - clearbit-2 + openai-processing-ms: + - '5386' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '100' + x-ratelimit-limit-tokens: + - '300000' + x-ratelimit-remaining-requests: + - '99' + x-ratelimit-remaining-tokens: + - '299652' + x-ratelimit-reset-requests: + - 600ms + x-ratelimit-reset-tokens: + - 69ms + x-request-id: + - 1a9f4c2a0146fabe806e3bd5a30018d8 + status: + code: 200 + message: OK +version: 1 diff --git a/tests/cassettes/test_agent_execution.yaml b/tests/cassettes/test_agent_execution.yaml index 922e942c7..c827e0ead 100644 --- a/tests/cassettes/test_agent_execution.yaml +++ b/tests/cassettes/test_agent_execution.yaml @@ -1,121 +1,16 @@ interactions: -- request: - body: '{"messages": [{"role": "user", "content": "You are an AI assistant reading - the transcript of a conversation between an AI and a human. Extract all of the - proper nouns from the last line of conversation. As a guideline, a proper noun - is generally capitalized. You should definitely extract all names and places.\n\nThe - conversation history is provided just in case of a coreference (e.g. \"What - do you know about him\" where \"him\" is defined in a previous line) -- ignore - items mentioned there that are not in the last line.\n\nReturn the output as - a single comma-separated list, or NONE if there is nothing of note to return - (e.g. the user is just issuing a greeting or having a simple conversation).\n\nEXAMPLE\nConversation - history:\nPerson #1: how''s it going today?\nAI: \"It''s going great! How about - you?\"\nPerson #1: good! busy working on Langchain. lots to do.\nAI: \"That - sounds like a lot of work! What kind of things are you doing to make Langchain - better?\"\nLast line:\nPerson #1: i''m trying to improve Langchain''s interfaces, - the UX, its integrations with various products the user might want ... a lot - of stuff.\nOutput: Langchain\nEND OF EXAMPLE\n\nEXAMPLE\nConversation history:\nPerson - #1: how''s it going today?\nAI: \"It''s going great! How about you?\"\nPerson - #1: good! busy working on Langchain. lots to do.\nAI: \"That sounds like a lot - of work! What kind of things are you doing to make Langchain better?\"\nLast - line:\nPerson #1: i''m trying to improve Langchain''s interfaces, the UX, its - integrations with various products the user might want ... a lot of stuff. I''m - working with Person #2.\nOutput: Langchain, Person #2\nEND OF EXAMPLE\n\nConversation - history (for reference only):\n\nLast line of conversation (for extraction):\nHuman: - How much is 1 + 1?\n\nOutput:"}], "model": "gpt-4", "max_tokens": null, "stream": - false, "n": 1, "temperature": 0.7}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Authorization: - - Bearer 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 - Connection: - - keep-alive - Content-Length: - - '1879' - Content-Type: - - application/json - User-Agent: - - OpenAI/v1 PythonBindings/0.28.1 - X-OpenAI-Client-User-Agent: - - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": - "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", - "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 - PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA1SQT2uDQBDF736KYc5a1ASN3lootJcU+gdCSwmbdRo36q64k9IS/O5l1cT0Mof5 - vffmMScPAFWBOaAsBcumrYPVAz0Wv693t1VJz2/lJtm9yPj4Hm8Wh+8KfecwuwNJPrtupGnamlgZ - PWLZkWByqVGSZXGURmk2gMYUVDvbvuVgGYRJtJgcpVGSLObw4QEAnIbpuumCfjCH0D9vGrJW7Anz - iwgAO1O7DQprlWWhGf0ZSqOZ9FB3/bS+x4n0l8gvpZUttx0Ja7STWTbtKOs9gM+h4vHfVWw707S8 - ZVORdr2XYTrm4fyNmUYTY8OivjatPHej9/4AAAD//wMAIl8yO4kBAAA= - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 8217f2097fed01af-GRU - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Sun, 05 Nov 2023 20:46:20 GMT - Server: - - cloudflare - Transfer-Encoding: - - chunked - access-control-allow-origin: - - '*' - alt-svc: - - h3=":443"; ma=86400 - openai-model: - - gpt-4-0613 - openai-organization: - - clearbit-2 - openai-processing-ms: - - '847' - openai-version: - - '2020-10-01' - strict-transport-security: - - max-age=15724800; includeSubDomains - x-ratelimit-limit-requests: - - '100' - x-ratelimit-limit-tokens: - - '150000' - x-ratelimit-remaining-requests: - - '99' - x-ratelimit-remaining-tokens: - - '149557' - x-ratelimit-reset-requests: - - 600ms - x-ratelimit-reset-tokens: - - 177ms - x-request-id: - - c0e542a54029d73256f7615e6edc08e7 - status: - code: 200 - message: OK - request: body: '{"messages": [{"role": "user", "content": "You are test role.\ntest backstory\n\nYour - main goal is: test goal\nTOOLS:\n------\n\nYou have access to the following + personal goal is: test goal\nTOOLS:\n------\n\nYou have access to the following tools:\n\n\n\nTo use a tool, please use the following format:\n\n```\nThought: Do I need to use a tool? Yes\nAction: the action to take, should be one of []\nAction Input: the input to the action\nObservation: the result of the action\n```\n\nWhen you have a response for your task, or if you do not need to use a tool, you MUST use the format:\n\n```\nThought: Do I need to use a tool? No\nFinal Answer: - [your response here]\n```\n\t\tThis is the summary of your work so far:\n \n\n This - is your understanding of the current situation:\n {}\nBegin!\n\nCurrent - Task: How much is 1 + 1?\n\n"}], "model": "gpt-4", "max_tokens": null, "stream": - false, "n": 1, "temperature": 0.7, "stop": ["\nObservation"]}' + [your response here]\n```\n\t\tThis is the summary of your work so far:\n \nBegin! + This is VERY important to you, your job depends on it!\n\nCurrent Task: How + much is 1 + 1?\n\n"}], "model": "gpt-4", "max_tokens": null, "stream": false, + "n": 1, "temperature": 0.7, "stop": ["\nObservation"]}' headers: Accept: - '*/*' @@ -126,7 +21,7 @@ interactions: Connection: - keep-alive Content-Length: - - '886' + - '869' Content-Type: - application/json User-Agent: @@ -141,17 +36,17 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA1SQQU/CQBCF7/0Vk70KpFsQaC+GhKhcPBiMJmrIuh3ble1O7U6jgfS/my0IetnD - ++a9ebP7CECYXGQgdKlYV7Udzm9xhY87Xj3QzqbLuNzePNH6fny5MKjFIDjo7QM1/7pGmqraIhty - B6wbVIwhVU7TNJEzOY97UFGONtiKmoeTYTyV46OjJKPRiwyeIwCAff+Gbi7Hb5FB7++VCr1XBYrs - NAQgGrJBEcp741k5FoMz1OQYXV93XVJblJzBkmAFDjEHJmg9ggImsldwRy/u2jhlYeH8FzYZSLgA - CfjZKushGYljcHdq9G6c8eWmQeXJhS2eqT6MdRHAa39h+6+0qBuqat4wbdGFs+UsPeSJ82eeaTI5 - QiZW9o8ej6OwpIt+AAAA//8DAHOHxGfJAQAA + H4sIAAAAAAAAA1RQwUrDQBC95yuGvZpK0pTSBEQkpZhLFSp4UCnrZky2bnZCdkrV0n+XTdNWL3N4 + b96b92YfAAhdigyEqiWrpjWjWUHTTb7KV8+P8TJfRPPiXv58d6uK5rsHEXoFvW9Q8Ul1rahpDbIm + e6RVh5LRu8bTNJ2kyThKe6KhEo2XVS2PJqNoGieDoiat0IkMXgIAgH0/fTZb4pfIIApPSIPOyQpF + dl4CEB0ZjwjpnHYsLYvwQiqyjLaP+1TTtqo5gzlBARaxBCbYOgQJTGRuYUmvdqGtNHBn3Q67DGK4 + ghhuYCwGy8M5y4e22tXrDqUj6/0dU3tcOwQAb3237b+4ou2oaXnN9InWF45nQzdxeeOFHScDycTS + /MGjJPBHDsEvAAAA//8DANNUqtjDAQAA headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8217f210daec01af-GRU + - 8232450e7c33016c-GRU Cache-Control: - no-cache, must-revalidate Connection: @@ -161,9 +56,13 @@ interactions: Content-Type: - application/json Date: - - Sun, 05 Nov 2023 20:46:21 GMT + - Thu, 09 Nov 2023 01:26:50 GMT Server: - cloudflare + Set-Cookie: + - __cf_bm=gkc3fZTvDPQQcvL6AsOb5ZabV_BJygyXmsJKgi0mtCU-1699493210-0-AWKdSYb5U/QGRawJ4wWK6DvEWiy6+l7vXFmP3RnnSvAVR+kc3AFmDrcnMowxNcJdOH8DqFD/H8jQAb6ZfMNSE3E=; + path=/; expires=Thu, 09-Nov-23 01:56:50 GMT; domain=.api.openai.com; HttpOnly; + Secure; SameSite=None Transfer-Encoding: - chunked access-control-allow-origin: @@ -175,7 +74,7 @@ interactions: openai-organization: - clearbit-2 openai-processing-ms: - - '1086' + - '911' openai-version: - '2020-10-01' strict-transport-security: @@ -183,17 +82,17 @@ interactions: x-ratelimit-limit-requests: - '100' x-ratelimit-limit-tokens: - - '150000' + - '300000' x-ratelimit-remaining-requests: - '99' x-ratelimit-remaining-tokens: - - '149810' + - '299813' x-ratelimit-reset-requests: - 600ms x-ratelimit-reset-tokens: - - 76ms + - 37ms x-request-id: - - ebeb778dd7c0273460cdb5e24fdbfe7c + - 57fa8c5d7c0ca15499c9624bb1a13c0f status: code: 200 message: OK @@ -208,7 +107,7 @@ interactions: the AI thinks of artificial intelligence. The AI thinks artificial intelligence is a force for good because it will help humans reach their full potential.\nEND OF EXAMPLE\n\nCurrent summary:\n\n\nNew lines of conversation:\nHuman: How much - is 1 + 1?\nAI: 1 + 1 equals 2.\n\nNew summary:"}], "model": "gpt-4", "max_tokens": + is 1 + 1?\nAI: 1 + 1 = 2\n\nNew summary:"}], "model": "gpt-4", "max_tokens": null, "stream": false, "n": 1, "temperature": 0.7}' headers: Accept: @@ -220,9 +119,11 @@ interactions: Connection: - keep-alive Content-Length: - - '905' + - '899' Content-Type: - application/json + Cookie: + - __cf_bm=gkc3fZTvDPQQcvL6AsOb5ZabV_BJygyXmsJKgi0mtCU-1699493210-0-AWKdSYb5U/QGRawJ4wWK6DvEWiy6+l7vXFmP3RnnSvAVR+kc3AFmDrcnMowxNcJdOH8DqFD/H8jQAb6ZfMNSE3E= User-Agent: - OpenAI/v1 PythonBindings/0.28.1 X-OpenAI-Client-User-Agent: @@ -235,17 +136,17 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA1RQQW7CMBC85xUrXxsQpiWF3LhUpaIHJDhVFXKdBbvEdshuVBDi75VDgPayh52Z - nZk9JQDCFiIHoY1i7aqyN37F2WaxfDlmfGz2q6NbLQ6H5m1az+v3uUijInx9o+arqq+Dq0pkG/wF - 1jUqxnhVZpPJUD7LsWwBFwoso2xbce+pN8jkY6cwwWokkcNHAgBwamfM5gs8iBwG6XXjkEhtUeQ3 - EoCoQxk3QhFZYuVZpHdQB8/o27hLg2Aapzwo2hGwQZjOQAHZ2ACcYgP7Bil2SYED/BirzZVXI1XB - F1GnGCQ8gATcN6okGPZFZ3i+Jd1Yb8msa1QUfHQnDtWFdk4APtvmzb8yoqqDq3jNYYc+vkOOsss9 - cX/yHR2OOpADq/KPaiyTaHJOfgEAAP//AwADfIQK4QEAAA== + H4sIAAAAAAAAA1SQT08CMRDF7/spJr0KhF2QuHvzpESjHsCLMaSUkdZtO2s7CEL47qbLP73MYd77 + zbyZXQYgzEJUIJSWrFxjuzdjGtX2e/u8nk7u+vP66XVjXh7K6f2jLreikwiaf6LiE9VT5BqLbMgf + ZBVQMqap+agsh+WgyPut4GiBNmHLhrvDbn+UD46EJqMwigreMgCAXVtTNr/Ajaig5duOwxjlEkV1 + NgGIQDZ1hIzRRJaeReciKvKMvo070Qh65aQHGesIrBFuxyAhmnQBOMkamkBzi64DTLDWRumTTVEI + qNj+gPRxjSHxkiGHK8gBv1bSRih64rh4f078YbyJehZQRvIpRWRqDrZ9BvDefmD17yjRBHINz5hq + 9Okt+fXoME9cnn1Ri5PIxNL+oW6KLC3ZZ78AAAD//wMAQUWO/+kBAAA= headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8217f219bdf601af-GRU + - 823245165c88016c-GRU Cache-Control: - no-cache, must-revalidate Connection: @@ -255,7 +156,7 @@ interactions: Content-Type: - application/json Date: - - Sun, 05 Nov 2023 20:46:23 GMT + - Thu, 09 Nov 2023 01:26:52 GMT Server: - cloudflare Transfer-Encoding: @@ -269,7 +170,7 @@ interactions: openai-organization: - clearbit-2 openai-processing-ms: - - '1196' + - '1229' openai-version: - '2020-10-01' strict-transport-security: @@ -277,17 +178,17 @@ interactions: x-ratelimit-limit-requests: - '100' x-ratelimit-limit-tokens: - - '150000' + - '300000' x-ratelimit-remaining-requests: - '99' x-ratelimit-remaining-tokens: - - '149793' + - '299795' x-ratelimit-reset-requests: - 600ms x-ratelimit-reset-tokens: - - 82ms + - 40ms x-request-id: - - 088729b81730273860e6434d8eb6ed57 + - 5a5b201eb4124de1372291f96d0142df status: code: 200 message: OK diff --git a/tests/cassettes/test_agent_execution_with_specific_tools.yaml b/tests/cassettes/test_agent_execution_with_specific_tools.yaml new file mode 100644 index 000000000..92a7d7ca1 --- /dev/null +++ b/tests/cassettes/test_agent_execution_with_specific_tools.yaml @@ -0,0 +1,303 @@ +interactions: +- request: + body: '{"messages": [{"role": "user", "content": "You are test role.\ntest backstory\n\nYour + personal goal is: test goal\nTOOLS:\n------\n\nYou have access to the following + tools:\n\nmultiplier: multiplier(numbers) -> float - Useful for when you need + to multiply two numbers together. \n\t\t\tThe input to this tool should be a + comma separated list of numbers of \n\t\t\tlength two, representing the two + numbers you want to multiply together. \n\t\t\tFor example, `1,2` would be the + input if you wanted to multiply 1 by 2.\n\nTo use a tool, please use the following + format:\n\n```\nThought: Do I need to use a tool? Yes\nAction: the action to + take, should be one of [multiplier]\nAction Input: the input to the action\nObservation: + the result of the action\n```\n\nWhen you have a response for your task, or + if you do not need to use a tool, you MUST use the format:\n\n```\nThought: + Do I need to use a tool? No\nFinal Answer: [your response here]\n```\n\t\tThis + is the summary of your work so far:\n \nBegin! This is VERY important + to you, your job depends on it!\n\nCurrent Task: What is 3 times 4\n\n"}], "model": + "gpt-4", "max_tokens": null, "stream": false, "n": 1, "temperature": 0.7, "stop": + ["\nObservation"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer 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 + Connection: + - keep-alive + Content-Length: + - '1217' + Content-Type: + - application/json + User-Agent: + - OpenAI/v1 PythonBindings/0.28.1 + X-OpenAI-Client-User-Agent: + - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": + "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", + "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 + PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA1RQy2rDMBC8+ysWnZ1SN66JfSmBQHEOSaFpIW1KUORtrFbWCmsNgZB/L3Kevexh + ZmdnZvcRgNCVKECoWrJqnBmMpq9Juix3i810+TEr1aae5W8vz+P5/H3SijgoaPODis+qO0WNM8ia + 7JFWLUrGcDXJ8jxLsywZ9URDFZog2zoepIP7LBmeFDVphV4U8BkBAOz7GbLZCneigPv4jDTovdyi + KC5LAKIlExAhvdeepWURX0lFltH2cRc1dduaC5gQlGARK2CCziNIYCLzBEv0KztWoUwBTWdYO6Ox + PWNQWtdxAcM4XVlx8jhcwn1rq329blF6ssHQM7nj2iEC+OrLdv/yC9dS43jN9Is2fODhMT/eE9e/ + 3rDpiWRiaW7w0TAKJofoDwAA//8DAHj9RNPUAQAA + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 8240e667dda81d40-GIG + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Fri, 10 Nov 2023 20:03:40 GMT + Server: + - cloudflare + Set-Cookie: + - __cf_bm=qYjHtObHmnuj7bUr95x9cwbTcVmcUYOIypCLBKdVYs4-1699646620-0-AQeu11iFH6nTGNmgj6ZfcaJImCKZh6t5u20SP71vsQESEAE6zlxJ6ZkKJQmIkv3sR37LF/PKPhzLydE3f+srokY=; + path=/; expires=Fri, 10-Nov-23 20:33:40 GMT; domain=.api.openai.com; HttpOnly; + Secure; SameSite=None + Transfer-Encoding: + - chunked + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400 + openai-model: + - gpt-4-0613 + openai-organization: + - clearbit-2 + openai-processing-ms: + - '1274' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '10000' + x-ratelimit-limit-tokens: + - '300000' + x-ratelimit-remaining-requests: + - '9999' + x-ratelimit-remaining-tokens: + - '299729' + x-ratelimit-reset-requests: + - 6ms + x-ratelimit-reset-tokens: + - 54ms + x-request-id: + - dc4e4c53dc93ab456ba5f5f66282131f + status: + code: 200 + message: OK +- request: + body: '{"messages": [{"role": "user", "content": "You are test role.\ntest backstory\n\nYour + personal goal is: test goal\nTOOLS:\n------\n\nYou have access to the following + tools:\n\nmultiplier: multiplier(numbers) -> float - Useful for when you need + to multiply two numbers together. \n\t\t\tThe input to this tool should be a + comma separated list of numbers of \n\t\t\tlength two, representing the two + numbers you want to multiply together. \n\t\t\tFor example, `1,2` would be the + input if you wanted to multiply 1 by 2.\n\nTo use a tool, please use the following + format:\n\n```\nThought: Do I need to use a tool? Yes\nAction: the action to + take, should be one of [multiplier]\nAction Input: the input to the action\nObservation: + the result of the action\n```\n\nWhen you have a response for your task, or + if you do not need to use a tool, you MUST use the format:\n\n```\nThought: + Do I need to use a tool? No\nFinal Answer: [your response here]\n```\n\t\tThis + is the summary of your work so far:\n \nBegin! This is VERY important + to you, your job depends on it!\n\nCurrent Task: What is 3 times 4\nThought: + Do I need to use a tool? Yes\nAction: multiplier\nAction Input: 3,4\n\nObservation: + multiplier is not a valid tool, try one of [].\nThought: \n"}], "model": "gpt-4", + "max_tokens": null, "stream": false, "n": 1, "temperature": 0.7, "stop": ["\nObservation"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer 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 + Connection: + - keep-alive + Content-Length: + - '1367' + Content-Type: + - application/json + Cookie: + - __cf_bm=qYjHtObHmnuj7bUr95x9cwbTcVmcUYOIypCLBKdVYs4-1699646620-0-AQeu11iFH6nTGNmgj6ZfcaJImCKZh6t5u20SP71vsQESEAE6zlxJ6ZkKJQmIkv3sR37LF/PKPhzLydE3f+srokY= + User-Agent: + - OpenAI/v1 PythonBindings/0.28.1 + X-OpenAI-Client-User-Agent: + - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": + "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", + "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 + PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA1SRS2/bMBCE7/oVA15ysQ3LsoVGlyJAUMQ9pK8UPTRBQElbizEfKncVpw383wvK + TtxcCHBnvuVw9zkDlGlVBdV0WhrX2+m7j9/y8lNx+bD6emWK1bWtzffVzfbvj4vPX+ZqkohQP1Aj + L9SsCa63JCb4g9xE0kKpa16en5fLslzMR8GFlmzCNr1Ml9N5mRdHogumIVYVfmYA8DyeKZtv6UlV + GPmx4ohZb0hVryZAxWBTRWlmw6K9qMlJbIIX8mPcm44igYkcQwJqgoZLxJZmWGOnGfTUUyPGb5Jh + 4OSQEGy6ucGK6e0fSEfwg6sp8gT1IDAC3fekIyct0hlDe1CMIUL7dgTGLob9mUA/amN1bWmGq7Cj + R4oTrLH1YQfptKCAGEeMJej3oC0jX8xu/WXAGp6ofZvsPa7Drf9gvLa48LyjWCFfqOP/96+D+2W8 + 4e4+kubg0zBYQn+w7TPgblzE8Ga2qo/B9XIvYUs+baeY54d+6rTzk1oujqIE0fY/qiyy9Mg++wcA + AP//AwAOHyo+cAIAAA== + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 8240e671495c1d40-GIG + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Fri, 10 Nov 2023 20:03:44 GMT + Server: + - cloudflare + Transfer-Encoding: + - chunked + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400 + openai-model: + - gpt-4-0613 + openai-organization: + - clearbit-2 + openai-processing-ms: + - '3513' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '10000' + x-ratelimit-limit-tokens: + - '300000' + x-ratelimit-remaining-requests: + - '9999' + x-ratelimit-remaining-tokens: + - '299693' + x-ratelimit-reset-requests: + - 6ms + x-ratelimit-reset-tokens: + - 61ms + x-request-id: + - 4a2658b98a181b090c362f6ce027ab4b + status: + code: 200 + message: OK +- request: + body: '{"messages": [{"role": "user", "content": "Progressively summarize the + lines of conversation provided, adding onto the previous summary returning a + new summary.\n\nEXAMPLE\nCurrent summary:\nThe human asks what the AI thinks + of artificial intelligence. The AI thinks artificial intelligence is a force + for good.\n\nNew lines of conversation:\nHuman: Why do you think artificial + intelligence is a force for good?\nAI: Because artificial intelligence will + help humans reach their full potential.\n\nNew summary:\nThe human asks what + the AI thinks of artificial intelligence. The AI thinks artificial intelligence + is a force for good because it will help humans reach their full potential.\nEND + OF EXAMPLE\n\nCurrent summary:\n\n\nNew lines of conversation:\nHuman: What + is 3 times 4\nAI: 12\n\nNew summary:"}], "model": "gpt-4", "max_tokens": null, + "stream": false, "n": 1, "temperature": 0.7}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer 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 + Connection: + - keep-alive + Content-Length: + - '891' + Content-Type: + - application/json + Cookie: + - __cf_bm=qYjHtObHmnuj7bUr95x9cwbTcVmcUYOIypCLBKdVYs4-1699646620-0-AQeu11iFH6nTGNmgj6ZfcaJImCKZh6t5u20SP71vsQESEAE6zlxJ6ZkKJQmIkv3sR37LF/PKPhzLydE3f+srokY= + User-Agent: + - OpenAI/v1 PythonBindings/0.28.1 + X-OpenAI-Client-User-Agent: + - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": + "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", + "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 + PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA1SQT0/DMAzF7/0UVs7dtG6lsN4GCI0dJiQQEkJoylKzhjZxlHgaY9p3R+n+wcWH + 9/Ozn71LAISuRAlC1ZKVcW3vZvacTWY/d3PVIMm3e5y+TR/o9nXerPhJpNFByy9UfHL1FRnXImuy + B6w8SsY4NSvG4yIvimHeAUMVttG2ctzLe4MiGx0dNWmFQZTwngAA7Loas9kKv0UJg/SkGAxBrlCU + 5yYA4amNipAh6MDSskgvUJFltF3clxqhXhtpQYYmANcIk0dgArNuWbt2CyNYbiFPQdrqhD0GR7YK + sNFcd6Ii71ExSBs26FPIhn1x3Lc/B/3UVod64VEGsnF5YHKHtn0C8NEdvv53i3CejOMFU4M2fiPL + x4d54vLjCx1eHSETy/aP6zpP4pJ98gsAAP//AwA0pTz34AEAAA== + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 8240e688ca6e1d40-GIG + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Fri, 10 Nov 2023 20:03:45 GMT + Server: + - cloudflare + Transfer-Encoding: + - chunked + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400 + openai-model: + - gpt-4-0613 + openai-organization: + - clearbit-2 + openai-processing-ms: + - '1515' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '10000' + x-ratelimit-limit-tokens: + - '300000' + x-ratelimit-remaining-requests: + - '9999' + x-ratelimit-remaining-tokens: + - '299797' + x-ratelimit-reset-requests: + - 6ms + x-ratelimit-reset-tokens: + - 40ms + x-request-id: + - 76574b94ab5a1c54d1ac4d372a830eb9 + status: + code: 200 + message: OK +version: 1 diff --git a/tests/cassettes/test_agent_execution_with_tools.yaml b/tests/cassettes/test_agent_execution_with_tools.yaml index 19324eb89..275364c46 100644 --- a/tests/cassettes/test_agent_execution_with_tools.yaml +++ b/tests/cassettes/test_agent_execution_with_tools.yaml @@ -1,113 +1,4 @@ interactions: -- request: - body: '{"messages": [{"role": "user", "content": "You are an AI assistant reading - the transcript of a conversation between an AI and a human. Extract all of the - proper nouns from the last line of conversation. As a guideline, a proper noun - is generally capitalized. You should definitely extract all names and places.\n\nThe - conversation history is provided just in case of a coreference (e.g. \"What - do you know about him\" where \"him\" is defined in a previous line) -- ignore - items mentioned there that are not in the last line.\n\nReturn the output as - a single comma-separated list, or NONE if there is nothing of note to return - (e.g. the user is just issuing a greeting or having a simple conversation).\n\nEXAMPLE\nConversation - history:\nPerson #1: how''s it going today?\nAI: \"It''s going great! How about - you?\"\nPerson #1: good! busy working on Langchain. lots to do.\nAI: \"That - sounds like a lot of work! What kind of things are you doing to make Langchain - better?\"\nLast line:\nPerson #1: i''m trying to improve Langchain''s interfaces, - the UX, its integrations with various products the user might want ... a lot - of stuff.\nOutput: Langchain\nEND OF EXAMPLE\n\nEXAMPLE\nConversation history:\nPerson - #1: how''s it going today?\nAI: \"It''s going great! How about you?\"\nPerson - #1: good! busy working on Langchain. lots to do.\nAI: \"That sounds like a lot - of work! What kind of things are you doing to make Langchain better?\"\nLast - line:\nPerson #1: i''m trying to improve Langchain''s interfaces, the UX, its - integrations with various products the user might want ... a lot of stuff. I''m - working with Person #2.\nOutput: Langchain, Person #2\nEND OF EXAMPLE\n\nConversation - history (for reference only):\n\nLast line of conversation (for extraction):\nHuman: - What is 3 times 4\n\nOutput:"}], "model": "gpt-4", "max_tokens": null, "stream": - false, "n": 1, "temperature": 0.7}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Authorization: - - Bearer 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 - Connection: - - keep-alive - Content-Length: - - '1878' - Content-Type: - - application/json - User-Agent: - - OpenAI/v1 PythonBindings/0.28.1 - X-OpenAI-Client-User-Agent: - - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": - "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", - "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 - PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA1SQMW+DMBCFd37F6WaoIKEksLVShi5k6VZVkWuc4NT4LHxJq0b898qQhHa54b73 - 3j3dJQJA3WAFKFvBsnMmWb9Yf8rq8379s3pyZ7Mpno3Q29e6Lb5SjIODPo5K8s31IKlzRrEmO2HZ - K8EqpGZFWeblYvm4GEFHjTLBdnCc5ElaZMuroyUtlccK3iIAgMs4QzfbqG+sII1vm055Lw4Kq7sI - AHsyYYPCe+1ZWMZ4hpIsKzvWrbf1Bq9kuEfutdW+3fVKeLJB5pncJBsigPex4unfVXQ9dY53TJ/K - ht55Wkx5OH9jptmVMbEwf02rKNwYol8AAAD//wMAtfp4RYkBAAA= - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 82323023acba0182-GRU - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Thu, 09 Nov 2023 01:12:33 GMT - Server: - - cloudflare - Set-Cookie: - - __cf_bm=pggttVzpKyQR4nT.B1yq6_bhIXPGndjWgQ1FDQWrqmI-1699492353-0-AdtCtI4A9MJL7HNTV51tlyV/nXd/jR6ewJjLEbxTXtzvv5pNZJ/AcBybsdljMBmcKJ+MAD1bX9NwEjuW0k7E6F8=; - path=/; expires=Thu, 09-Nov-23 01:42:33 GMT; domain=.api.openai.com; HttpOnly; - Secure; SameSite=None - Transfer-Encoding: - - chunked - access-control-allow-origin: - - '*' - alt-svc: - - h3=":443"; ma=86400 - openai-model: - - gpt-4-0613 - openai-organization: - - clearbit-2 - openai-processing-ms: - - '433' - openai-version: - - '2020-10-01' - strict-transport-security: - - max-age=15724800; includeSubDomains - x-ratelimit-limit-requests: - - '100' - x-ratelimit-limit-tokens: - - '300000' - x-ratelimit-remaining-requests: - - '99' - x-ratelimit-remaining-tokens: - - '299557' - x-ratelimit-reset-requests: - - 600ms - x-ratelimit-reset-tokens: - - 88ms - x-request-id: - - 222744a81f853802353e390dd40173ea - status: - code: 200 - message: OK - request: body: '{"messages": [{"role": "user", "content": "You are test role.\ntest backstory\n\nYour personal goal is: test goal\nTOOLS:\n------\n\nYou have access to the following @@ -121,9 +12,8 @@ interactions: the result of the action\n```\n\nWhen you have a response for your task, or if you do not need to use a tool, you MUST use the format:\n\n```\nThought: Do I need to use a tool? No\nFinal Answer: [your response here]\n```\n\t\tThis - is the summary of your work so far:\n \n\n This is your understanding - of the current situation:\n {}\nBegin! This is VERY important to you, - your job depends on it!\n\nCurrent Task: What is 3 times 4\n\n"}], "model": + is the summary of your work so far:\n \nBegin! This is VERY important + to you, your job depends on it!\n\nCurrent Task: What is 3 times 4\n\n"}], "model": "gpt-4", "max_tokens": null, "stream": false, "n": 1, "temperature": 0.7, "stop": ["\nObservation"]}' headers: @@ -136,11 +26,11 @@ interactions: Connection: - keep-alive Content-Length: - - '1293' + - '1217' Content-Type: - application/json Cookie: - - __cf_bm=pggttVzpKyQR4nT.B1yq6_bhIXPGndjWgQ1FDQWrqmI-1699492353-0-AdtCtI4A9MJL7HNTV51tlyV/nXd/jR6ewJjLEbxTXtzvv5pNZJ/AcBybsdljMBmcKJ+MAD1bX9NwEjuW0k7E6F8= + - __cf_bm=gkc3fZTvDPQQcvL6AsOb5ZabV_BJygyXmsJKgi0mtCU-1699493210-0-AWKdSYb5U/QGRawJ4wWK6DvEWiy6+l7vXFmP3RnnSvAVR+kc3AFmDrcnMowxNcJdOH8DqFD/H8jQAb6ZfMNSE3E= User-Agent: - OpenAI/v1 PythonBindings/0.28.1 X-OpenAI-Client-User-Agent: @@ -153,17 +43,17 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA1RQy2rDMBC8+ysWnZ1ix3ZS61IKbSFQeuoltCWo8jZWK2uFtQ6BkH8vct6XPczs - 7MzsLgEQphEShG4V687byf3ChY3bvGX1tsr0srLP8xdVZZxXr5yLNCro+xc1n1R3mjpvkQ25A617 - VIzxaj6r67KeFlUxEh01aKNs7XlSTrJZXhwVLRmNQUj4SAAAduOM2VyDWyEhS09IhyGoNQp5XgIQ - PdmICBWCCawci/RCanKMboz73tKwblnCE8ECHGIDTDAEBAVMZB9gieHTPepYRkI3WDbeGuxPGCyc - H1hCkZbi6LA/R/sxzoR21aMK5KJdYPKHtX0C8DVWHW7SC99T53nF9Icu9p/O88M9cfnqFVscSSZW - 9gqvyySa7JN/AAAA//8DAGryDPHSAQAA + H4sIAAAAAAAAA1RQTUvDQBC951cMe06lTWJo9iKlglQEL2IRLWW7GZvVzc6SnYBS+t9l008vc3hv + 3rz3ZpcACFMLCUI3inXr7Wi6oLJ9yuduWWavv3OznD0/Fo3ql25TP4g0KmjzhZpPqhtNrbfIhtyB + 1h0qxnh1UlZVUeXZJBuIlmq0Ubb1PCpG43KSHxUNGY1BSHhPAAB2w4zZXI0/QsI4PSEthqC2KOR5 + CUB0ZCMiVAgmsHIs0gupyTG6Ie5LQ/22YQn3BAtwiDUwQR8QFDCRvYM3DB9upmMZCW1v2XhrsDth + sHC+Zwl5Woijw/4c7dM4E5p1hyqQi3aByR/W9gnAaqja/0svfEet5zXTN7rYP7utDvfE5atXbH4k + mVjZK3yaJdFkn/wBAAD//wMAU+pOotIBAAA= headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 823230284a450182-GRU + - 823245216f2f520b-GRU Cache-Control: - no-cache, must-revalidate Connection: @@ -173,7 +63,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 09 Nov 2023 01:12:34 GMT + - Thu, 09 Nov 2023 01:26:53 GMT Server: - cloudflare Transfer-Encoding: @@ -187,7 +77,7 @@ interactions: openai-organization: - clearbit-2 openai-processing-ms: - - '1120' + - '1105' openai-version: - '2020-10-01' strict-transport-security: @@ -199,13 +89,13 @@ interactions: x-ratelimit-remaining-requests: - '99' x-ratelimit-remaining-tokens: - - '299710' + - '299729' x-ratelimit-reset-requests: - 600ms x-ratelimit-reset-tokens: - - 57ms + - 54ms x-request-id: - - 00d0dced84c81ed56d116437daa60a72 + - 951ac7b6b78d0178415f15e6576c49e6 status: code: 200 message: OK @@ -222,12 +112,11 @@ interactions: the result of the action\n```\n\nWhen you have a response for your task, or if you do not need to use a tool, you MUST use the format:\n\n```\nThought: Do I need to use a tool? No\nFinal Answer: [your response here]\n```\n\t\tThis - is the summary of your work so far:\n \n\n This is your understanding - of the current situation:\n {}\nBegin! This is VERY important to you, - your job depends on it!\n\nCurrent Task: What is 3 times 4\nThought: Do I need - to use a tool? Yes\nAction: multiplier\nAction Input: 3,4\nObservation: 12\nThought: - \n"}], "model": "gpt-4", "max_tokens": null, "stream": false, "n": 1, "temperature": - 0.7, "stop": ["\nObservation"]}' + is the summary of your work so far:\n \nBegin! This is VERY important + to you, your job depends on it!\n\nCurrent Task: What is 3 times 4\nThought: + Do I need to use a tool? Yes\nAction: multiplier\nAction Input: 3,4\nObservation: + 12\nThought: \n"}], "model": "gpt-4", "max_tokens": null, "stream": false, "n": + 1, "temperature": 0.7, "stop": ["\nObservation"]}' headers: Accept: - '*/*' @@ -238,11 +127,11 @@ interactions: Connection: - keep-alive Content-Length: - - '1397' + - '1321' Content-Type: - application/json Cookie: - - __cf_bm=pggttVzpKyQR4nT.B1yq6_bhIXPGndjWgQ1FDQWrqmI-1699492353-0-AdtCtI4A9MJL7HNTV51tlyV/nXd/jR6ewJjLEbxTXtzvv5pNZJ/AcBybsdljMBmcKJ+MAD1bX9NwEjuW0k7E6F8= + - __cf_bm=gkc3fZTvDPQQcvL6AsOb5ZabV_BJygyXmsJKgi0mtCU-1699493210-0-AWKdSYb5U/QGRawJ4wWK6DvEWiy6+l7vXFmP3RnnSvAVR+kc3AFmDrcnMowxNcJdOH8DqFD/H8jQAb6ZfMNSE3E= User-Agent: - OpenAI/v1 PythonBindings/0.28.1 X-OpenAI-Client-User-Agent: @@ -255,17 +144,17 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA1SQW08CQQyF3/dXNPMMBHZXhH0x3ghoNCSoMVFDxtkKg7PTzbYEE7L/3cxy05c+ - 9Os5Pe02AlA2Vxkos9RiitK1BxPPm5fRbDy4Wr0OzqfT2/vn8dPD7Hoc31nVCgr6XKGRg6pjqCgd - iiW/w6ZCLRhce/3hMB3GyVnagIJydEG2KKWdtrv9XrJXLMkaZJXBWwQAsG1qyOZz/FEZdFuHToHM - eoEqOw4BqIpc6CjNbFm0F9U6QUNe0Ddxbwgm4BFzEII1I2gQIncBj/TuR9ZrB5eeN1hlkIDYAhlS - sAy9uKP2hvUxyZf1lpfzCjWTD+4sVO7G6gjgo7ls/S+sKisqSpkLfaMP5ybddOenTk880TjeQyHR - 7o8q7kdhSR39AgAA//8DAGQ+69zBAQAA + H4sIAAAAAAAAA1SQS0/DQAyE7/kV1p5b1DwUSC6oqKpUIXHgCqhaNibdNrFD7NJKVf872vQFlz3M + 55kd+xABGF+ZEoxbWXVt14wfFpyT/DzNdt9I06zevM6f11b32/t57c0oOPhzjU4vrjvHbdegeqYT + dj1axZAa50WRFWkSpwNoucIm2OpOx9l4ksfp2bFi71BMCW8RAMBheEM3qnBvSpiMLkqLIrZGU16H + AEzPTVCMFfGiltSMbtAxKdJQd8awAEKsQBm2gmBBmZtHeOF3mnuyDUxJdtiXkIL6FgUy8AJxYs55 + x2uRL09eVsserTCFcFHuTmPHCOBjWGz7r6vpem47XSpvkMK2SZGc8szthn9ofIbKapubnsZpFD45 + Rr8AAAD//wMAIwC1ssABAAA= headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 82323030ddb90182-GRU + - 8232452a2e6e520b-GRU Cache-Control: - no-cache, must-revalidate Connection: @@ -275,7 +164,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 09 Nov 2023 01:12:36 GMT + - Thu, 09 Nov 2023 01:26:55 GMT Server: - cloudflare Transfer-Encoding: @@ -289,7 +178,7 @@ interactions: openai-organization: - clearbit-2 openai-processing-ms: - - '1128' + - '1095' openai-version: - '2020-10-01' strict-transport-security: @@ -301,13 +190,13 @@ interactions: x-ratelimit-remaining-requests: - '99' x-ratelimit-remaining-tokens: - - '299685' + - '299704' x-ratelimit-reset-requests: - 600ms x-ratelimit-reset-tokens: - - 62ms + - 59ms x-request-id: - - 2edfda088d7c07b018426c91a4506903 + - aa5df5b29842f6d68339b5c4887eeecc status: code: 200 message: OK @@ -322,7 +211,7 @@ interactions: the AI thinks of artificial intelligence. The AI thinks artificial intelligence is a force for good because it will help humans reach their full potential.\nEND OF EXAMPLE\n\nCurrent summary:\n\n\nNew lines of conversation:\nHuman: What - is 3 times 4\nAI: 3 times 4 is 12.\n\nNew summary:"}], "model": "gpt-4", "max_tokens": + is 3 times 4\nAI: 3 times 4 is 12\n\nNew summary:"}], "model": "gpt-4", "max_tokens": null, "stream": false, "n": 1, "temperature": 0.7}' headers: Accept: @@ -334,11 +223,11 @@ interactions: Connection: - keep-alive Content-Length: - - '905' + - '904' Content-Type: - application/json Cookie: - - __cf_bm=pggttVzpKyQR4nT.B1yq6_bhIXPGndjWgQ1FDQWrqmI-1699492353-0-AdtCtI4A9MJL7HNTV51tlyV/nXd/jR6ewJjLEbxTXtzvv5pNZJ/AcBybsdljMBmcKJ+MAD1bX9NwEjuW0k7E6F8= + - __cf_bm=gkc3fZTvDPQQcvL6AsOb5ZabV_BJygyXmsJKgi0mtCU-1699493210-0-AWKdSYb5U/QGRawJ4wWK6DvEWiy6+l7vXFmP3RnnSvAVR+kc3AFmDrcnMowxNcJdOH8DqFD/H8jQAb6ZfMNSE3E= User-Agent: - OpenAI/v1 PythonBindings/0.28.1 X-OpenAI-Client-User-Agent: @@ -351,17 +240,17 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA1SQMW/CQAyF9/wK62ZAJEAE2TpUAqlSFzrQqkLXi0sO7s5R7EhFiP9eXQKkXTz4 - e89+9iUBULZUBShTaTG+duPlJvDZro+Hrffr12x3fntpps/y3hrOd2oUHfR1RCN318SQrx2KpdBj - 06AWjFPTfLWar7LZIu+ApxJdtB1qGc/H0zyd3RwVWYOsCvhIAAAuXY3ZQok/qoDp6N7xyKwPqIqH - CEA15GJHaWbLooOo0QANBcHQxd1WCFXrdQDNJwapEJ42IARGO9M6LQgzEOuRYT6BbY8b5JpCGeVa - Bg6WIc0m6rbo+kj4bYPlat+gZgpxKwvVveyaAHx2F7f/jlB1Q76WvdAJQ3xDulj089Tw3IFm+Q0K - iXZ/XMs0iUuuyS8AAAD//wMAmwGlztkBAAA= + H4sIAAAAAAAAA1SQu27DMAxFd38FodkJYuftrR1aZAzarSgCRWZsNbIomHQfCPLvhZyH24UD7z3k + JU8JgLKlKkCZWotpghutNrQIj9q9PG+PT9uKpeoO9udrv/zMNlalkaD9Bxq5UWNDTXAolvxFNi1q + wTg1W6zXs/U0z+a90FCJLmJVkNFsNFlk0ytRkzXIqoC3BADg1NeYzZf4rQqYpLdOg8y6QlXcTQCq + JRc7SjNbFu1FpYNoyAv6Pu5rjVB3jfag+cggNcLDBoTAaGc6pwVhCmIbZJiloH15s7TIgXwZES2D + ByxDlo/Vddn5nvJgveV616Jm8nEzC4WL7ZwAvPdXd/8OUaGlJshO6Ig+viKbzy/z1PDgQc2XV1FI + tPtDrfIkLjknvwAAAP//AwC2/4B/3QEAAA== headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8232303a294a0182-GRU + - 823245332d7b520b-GRU Cache-Control: - no-cache, must-revalidate Connection: @@ -371,7 +260,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 09 Nov 2023 01:12:37 GMT + - Thu, 09 Nov 2023 01:26:56 GMT Server: - cloudflare Transfer-Encoding: @@ -385,7 +274,7 @@ interactions: openai-organization: - clearbit-2 openai-processing-ms: - - '1025' + - '1275' openai-version: - '2020-10-01' strict-transport-security: @@ -403,7 +292,7 @@ interactions: x-ratelimit-reset-tokens: - 41ms x-request-id: - - 8f752eda873d901ecec28888cdeb318d + - ac804646da74e95835f869ebd5313225 status: code: 200 message: OK diff --git a/tests/cassettes/test_crew_creation.yaml b/tests/cassettes/test_crew_creation.yaml index cb665736b..14187ffd2 100644 --- a/tests/cassettes/test_crew_creation.yaml +++ b/tests/cassettes/test_crew_creation.yaml @@ -1,114 +1,4 @@ interactions: -- request: - body: '{"messages": [{"role": "user", "content": "You are an AI assistant reading - the transcript of a conversation between an AI and a human. Extract all of the - proper nouns from the last line of conversation. As a guideline, a proper noun - is generally capitalized. You should definitely extract all names and places.\n\nThe - conversation history is provided just in case of a coreference (e.g. \"What - do you know about him\" where \"him\" is defined in a previous line) -- ignore - items mentioned there that are not in the last line.\n\nReturn the output as - a single comma-separated list, or NONE if there is nothing of note to return - (e.g. the user is just issuing a greeting or having a simple conversation).\n\nEXAMPLE\nConversation - history:\nPerson #1: how''s it going today?\nAI: \"It''s going great! How about - you?\"\nPerson #1: good! busy working on Langchain. lots to do.\nAI: \"That - sounds like a lot of work! What kind of things are you doing to make Langchain - better?\"\nLast line:\nPerson #1: i''m trying to improve Langchain''s interfaces, - the UX, its integrations with various products the user might want ... a lot - of stuff.\nOutput: Langchain\nEND OF EXAMPLE\n\nEXAMPLE\nConversation history:\nPerson - #1: how''s it going today?\nAI: \"It''s going great! How about you?\"\nPerson - #1: good! busy working on Langchain. lots to do.\nAI: \"That sounds like a lot - of work! What kind of things are you doing to make Langchain better?\"\nLast - line:\nPerson #1: i''m trying to improve Langchain''s interfaces, the UX, its - integrations with various products the user might want ... a lot of stuff. I''m - working with Person #2.\nOutput: Langchain, Person #2\nEND OF EXAMPLE\n\nConversation - history (for reference only):\n\nLast line of conversation (for extraction):\nHuman: - Give me a list of 5 interesting ideas to explore for na article, what makes - them unique and interesting.\n\nOutput:"}], "model": "gpt-4", "max_tokens": - null, "stream": false, "n": 1, "temperature": 0.7}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Authorization: - - Bearer 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 - Connection: - - keep-alive - Content-Length: - - '1965' - Content-Type: - - application/json - User-Agent: - - OpenAI/v1 PythonBindings/0.28.1 - X-OpenAI-Client-User-Agent: - - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": - "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", - "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 - PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA1SQTU+EMBCG7/yKyZzBLAob4KaGGL/WeDAxMWZTS4UqdBo6osmG/27Ksoteepjn - fWbedBcAoK6wAJSNYNnZNsquTSkfry6+L9Ph9rm+q8/N0A/l/c1TnKYYeoPePpTkg3UiqbOtYk1m - j2WvBCu/NV7neZLlWZpMoKNKtV6rLUdJtFrHZ7PRkJbKYQEvAQDAbnp9N1OpHyxgFR4mnXJO1AqL - YwgAe2r9BIVz2rEwjOECJRlWZqq7ediUOJPxuPJdG+2aba+EI+NjjsnuY2MA8DpV/Pp3FW1PneUt - 06cyvndyOlfE5TcWGs+MiUX7V4oDf2MMfgEAAP//AwB6KgtHiQEAAA== - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 8231f3258d8a02e9-GRU - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Thu, 09 Nov 2023 00:30:54 GMT - Server: - - cloudflare - Set-Cookie: - - __cf_bm=omt5hOnsQkeg7bY0srmDk9.plAPmA8M4A2avjnRJqnc-1699489854-0-AT3mgzRgrYaYWpOG/jTYc9vzQHoiqYltUoBg0LPYVxsbN/4GrMkFITZSN+42iHF8q9RV/7KDN7ZZEGmps+YZtus=; - path=/; expires=Thu, 09-Nov-23 01:00:54 GMT; domain=.api.openai.com; HttpOnly; - Secure; SameSite=None - Transfer-Encoding: - - chunked - access-control-allow-origin: - - '*' - alt-svc: - - h3=":443"; ma=86400 - openai-model: - - gpt-4-0613 - openai-organization: - - clearbit-2 - openai-processing-ms: - - '384' - openai-version: - - '2020-10-01' - strict-transport-security: - - max-age=15724800; includeSubDomains - x-ratelimit-limit-requests: - - '100' - x-ratelimit-limit-tokens: - - '300000' - x-ratelimit-remaining-requests: - - '99' - x-ratelimit-remaining-tokens: - - '299535' - x-ratelimit-reset-requests: - - 600ms - x-ratelimit-reset-tokens: - - 93ms - x-request-id: - - 73eba3e609e12dd5cc0f5455b4684480 - status: - code: 200 - message: OK - request: body: '{"messages": [{"role": "user", "content": "You are Researcher.\nYou''re an expert researcher, specialized in technology, software engineering, AI and @@ -120,12 +10,11 @@ interactions: Input: the input to the action\nObservation: the result of the action\n```\n\nWhen you have a response for your task, or if you do not need to use a tool, you MUST use the format:\n\n```\nThought: Do I need to use a tool? No\nFinal Answer: - [your response here]\n```\n\t\tThis is the summary of your work so far:\n \n\n This - is your understanding of the current situation:\n {}\nBegin! This is - VERY important to you, your job depends on it!\n\nCurrent Task: Give me a list - of 5 interesting ideas to explore for na article, what makes them unique and - interesting.\n\n"}], "model": "gpt-4", "max_tokens": null, "stream": false, - "n": 1, "temperature": 0.7, "stop": ["\nObservation"]}' + [your response here]\n```\n\t\tThis is the summary of your work so far:\n \nBegin! + This is VERY important to you, your job depends on it!\n\nCurrent Task: Give + me a list of 5 interesting ideas to explore for na article, what makes them + unique and interesting.\n\n"}], "model": "gpt-4", "max_tokens": null, "stream": + false, "n": 1, "temperature": 0.7, "stop": ["\nObservation"]}' headers: Accept: - '*/*' @@ -136,11 +25,11 @@ interactions: Connection: - keep-alive Content-Length: - - '1267' + - '1191' Content-Type: - application/json Cookie: - - __cf_bm=omt5hOnsQkeg7bY0srmDk9.plAPmA8M4A2avjnRJqnc-1699489854-0-AT3mgzRgrYaYWpOG/jTYc9vzQHoiqYltUoBg0LPYVxsbN/4GrMkFITZSN+42iHF8q9RV/7KDN7ZZEGmps+YZtus= + - __cf_bm=gkc3fZTvDPQQcvL6AsOb5ZabV_BJygyXmsJKgi0mtCU-1699493210-0-AWKdSYb5U/QGRawJ4wWK6DvEWiy6+l7vXFmP3RnnSvAVR+kc3AFmDrcnMowxNcJdOH8DqFD/H8jQAb6ZfMNSE3E= User-Agent: - OpenAI/v1 PythonBindings/0.28.1 X-OpenAI-Client-User-Agent: @@ -153,20 +42,30 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA4SSTW/bMAyG7/kVhM5JkC4fTXxLh6E1hgHFUGAYlqFQJcbSJpOGRDcLivz3QXYS - b6deLOul3oeUyLcRgPJWFaCM02LqJkzWJX2yj7O729eHhRy+xceHL5jum6/u+/L+RY2zg19+oZGL - a2q4bgKKZ+rDJqIWzNSb1WazWG/Wy2UXqNliyLaqkcliMlvdzM8Ox95gUgX8GAEAvHXfXBtZ/KMK - mI0vSo0p6QpVcT0EoCKHrCidkk+iSdR4CBomQerKfXLcVk4KeGIwXCO0DRy8OPAkGDGJpwq8RZ1g - zxE0gY7iTcAxlECIFoShJYsxZ7EgDsG0MSIJSESyCbKs7asmgzWSJPAE27KT81JlbQolHHwI0CaE - +gjCHLqEERPqaFxPIR2Oyaecs9LiMII4n4F7jrXO7z3d0Y62Jv8W8JHJtkZAgziO+aIDj6mrNWjB - JO/Xd4FCSU0rBXzG44Gj7V8lg65gw22w4MmE1iLsVGb8Q9+p8Vmshu25im15xfQ61hir3IFtCYLG - EQeuPHYuFDPdkTp39XQdh70nn9xzRJ2YcouTcNMfO40Afnbj1f43MaqJXDfyLPwbKc/ch8Wm56lh - kofo+vYcFBYdBn0+X41yktPoLwAAAP//AwBYKzlNRgMAAA== + H4sIAAAAAAAAA5RWTW8bRwy9+1cQe8llJdix69S6FGkSJ27RBk2d5lAXATVLaRnPDrczXCmbIP+9 + 4Iw+asdK0YsOS/IN+R4/9PkIoOKmmkHlWlTX9X7y/ZWcx5f+l7fvfn7+9rc/Ll/7n85f/njavaG3 + ry+r2iJk/oGcbqOmTrrek7KEYnaRUMlQT84vLs4uTh+fPMmGThryFrbsdXI2OT4/Od1EtMKOUjWD + P48AAD7nX8stNPSxmsFxvf3SUUq4pGq2cwKoonj7UmFKnBSDVvXe6CQohZzudSvDstUZXEEgakAF + hkTQjUAfe4rKiYADPL0yi5OOYOhhzdrCEPjvgQBDAxyUIiXlsARuCJM508feS6Qp3ISbcDI1CPN9 + oS27BBO4btn8enbA6RDanBxaPqxbvATaUvFJ5IxikAUouTaIl+WYITqJ6FnH/GqLJaYXK5rRW3Zz + w3CRGp77EeYUaMHObPNBAX2SvbsfocXYLQZfZ3DdJ76WwTfQkF/llCS/Q1YheuCu9+zQUkyW49Or + GtLgWsAEc8ZEyZhFv5TI2nZpA04WiE4tBAeVDkuRAT7IPE2NzcdTuG4J3oinAmxAzzx3qATPWgxL + gkn+nGBOxuOQira9Vey0ho6Vl6hUShpCQ9HapAG3gXEZZvqwTIdkiZuM/iUHB0jiV5aEhGJsCea8 + XFJS6KPMPXUJFujMpR06DCaclXk63ZT2itBr6zAeKivSSvxgPPEngnbnXsMiSret2iIaTpSpVzGe + o+TMelSmoGAx90s+0I4PdlXDkZz6cSshrSiOEuhRAs8rKhJzAtQcu5BIiyhB73BWmicEWWXlMxVn + RfHLQYe41dyw3km83XGSJbM0DXuNI6wJ1hJvD7TtRjloZW0FcYJIqcXeEFYYWQYrvhmSRqZUZ1Qd + e8rNbL0I2qKCqVLU2Gy5etfI6Za937it2XubOtsyZENeGMgF5RK/26r9e4+O4EXOrvT+/18WTro5 + B5N5LeAGNfuEmiXBgsk3abYlMOXHaP/Y9MEGw4B+/ETQoGLpqRxYQ8BVniOIsqKYbExFW4rQewyk + qZDhCuErCvZ9BCyTwmFDAHQYAjXQcUq2LjIhu9X8XO5tZwQV8T/Ar3ITLjmgh6chrSnO4BVFyoos + eEXfXtELiYBR2Xna01G2c9H6W+ul/moyS8yDDVo4OCBubuxERdyUc/8PebWlcde894/BZtOWE7U9 + A/W9rVbfWRH7EfmqGWAC6D24yFqmMqWhrG2VBsdHyYJ9M602t/XL7igvOHBq30fCJMEObVLpi9uX + I4C/8pEf7tztqo/S9fpe5ZaCXf7Hp08KXrX/P7G3np5vrSqKfm84Pz47sle+HP0DAAD//wMA1iHm + eM0IAAA= headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8231f32a2b6602e9-GRU + - 8232453dfc6d00fe-GRU Cache-Control: - no-cache, must-revalidate Connection: @@ -176,7 +75,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 09 Nov 2023 00:30:58 GMT + - Thu, 09 Nov 2023 01:27:13 GMT Server: - cloudflare Transfer-Encoding: @@ -190,7 +89,7 @@ interactions: openai-organization: - clearbit-2 openai-processing-ms: - - '3681' + - '15994' openai-version: - '2020-10-01' strict-transport-security: @@ -202,130 +101,13 @@ interactions: x-ratelimit-remaining-requests: - '99' x-ratelimit-remaining-tokens: - - '299714' + - '299733' x-ratelimit-reset-requests: - 600ms x-ratelimit-reset-tokens: - - 57ms + - 53ms x-request-id: - - 67ed71410f2e5e671133b78b5362bd39 - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"role": "user", "content": "You are Researcher.\nYou''re - an expert researcher, specialized in technology, software engineering, AI and - startups. You work as a freelancer and is now working on doing research and - analysis for a new customer.\n\nYour personal goal is: Make the best research - and analysis on content about AI and AI agents\nTOOLS:\n------\n\nYou have access - to the following tools:\n\n\n\nTo use a tool, please use the following format:\n\n```\nThought: - Do I need to use a tool? Yes\nAction: the action to take, should be one of []\nAction - Input: the input to the action\nObservation: the result of the action\n```\n\nWhen - you have a response for your task, or if you do not need to use a tool, you - MUST use the format:\n\n```\nThought: Do I need to use a tool? No\nFinal Answer: - [your response here]\n```\n\t\tThis is the summary of your work so far:\n \n\n This - is your understanding of the current situation:\n {}\nBegin! This is - VERY important to you, your job depends on it!\n\nCurrent Task: Give me a list - of 5 interesting ideas to explore for na article, what makes them unique and - interesting.\nThought: To come up with interesting ideas for an article, I need - to understand the current trends and advancements in AI and AI agents. I will - use my tool for research and analysis to gather this information.\n\nAction: - Conduct a thorough research on the latest advancements in AI and AI agents.\nAction - Input: Keywords for the research could include \"AI advancements\", \"AI agents\", - \"latest AI research\", \"emerging AI technologies\", etc.\n\nObservation: Conduct - a thorough research on the latest advancements in AI and AI agents. is not a - valid tool, try one of [].\nThought: \n"}], "model": "gpt-4", "max_tokens": - null, "stream": false, "n": 1, "temperature": 0.7, "stop": ["\nObservation"]}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Authorization: - - Bearer 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 - Connection: - - keep-alive - Content-Length: - - '1852' - Content-Type: - - application/json - Cookie: - - __cf_bm=omt5hOnsQkeg7bY0srmDk9.plAPmA8M4A2avjnRJqnc-1699489854-0-AT3mgzRgrYaYWpOG/jTYc9vzQHoiqYltUoBg0LPYVxsbN/4GrMkFITZSN+42iHF8q9RV/7KDN7ZZEGmps+YZtus= - User-Agent: - - OpenAI/v1 PythonBindings/0.28.1 - X-OpenAI-Client-User-Agent: - - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": - "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", - "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 - PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA3xVwW7jRgy95ysIXfaSGMkmcRLfjGB36x4KFGjRQ7dYUDO0hs1oqJ2h7ASL/HvB - kRwnRdqLYYnDR773yNGPE4CGfbOCxgVU1w/x7HaTPoUv+P3n3/GXJSFfLr9cP3S3v+7z/flNc2oZ - 0v5NTg9ZCyf9EElZ0hR2mVDJUC+Wd3dXt3e313c10IunaGndoGdXZ+fLi8s5Iwg7Ks0K/jwBAPhR - f6235OmxWcH56eFNT6VgR83q5RBAkyXamwZL4aKYtDk9Bp0kpVTb3UCPngATUM6SgRP0TzBk2rGM - BTTI2AVdwAa8pA8KiciDCoyFAEFFoj056QnGAfasAdgTFthKNlTMyi6SAThMMAkBGqiHFgt5kFrw - Ick+ku+sEw/0OFBmSo6sHw0EW6boF1/T1/SZE0ZYp7KnvAJ7c7GA9cYO/kQYNTjMtILfAhdQGdgB - FxgTfx8JsAAr9JQ7KqB7AZdZ2WGEQk4ll1NQciFJlO6pdhIq5AL+oNo+PQ5RMkGQfa1ZgPshy45T - B56xS1LYQIxlT0krxoDK9t8aW/yrMU5KmYoaQEsOTVZWCFjAcyanViCyQ5ulYmKFsccEkbeTVHuK - 8awlTl1V5+MCPmmolDZvErew3vyHKq/qesJYJhdN9V4yxsmRGdRzpL7HAoOYee0TrDfGiV6YQGQq - B9tajGgutqR7onRUt4Kh31n0RahDESepsKc89V55XR48vo/c2wTdB0xd9ZlmHolK5alHjodWZrvM - wZZsdP08tC0qSKIpzfgWtdkvxfzoorQYgUsZqcAZuLm0q6UXsNEPbw30Ixkuq8ljC8aWngzRs6tH - jGaPCTt7eAtYaZMRcTSRvqqkLWWddTbvXdvmsSyVRO3I5pklGbG6crxjnSb6OODvMJgWxAWMkVI3 - A2pGz4ZmbDwhaEC1xbZmEIYxU3ya55KSJ9xJrv1fT5PxedQx0zSCsO4oafnf/Xy9aFb/qOV2QrK7 - rVQy3A/odB5vwIptS7LDXK8vLAPNcRkzRN4dEpMfi2am8o4Kr5TltJNoSQY0xjqR01LPnko6hTJg - fqiGjpmlVKVbGRX2JlS9vqbGe3yCINEvmvkufn65xLecuIRvmbBIsou5qAzTsecTgL/qR2F8c883 - Q5Z+0G8qD5TsS3G5vJnwmuP35xj9eHMxR1UU4zGwvLw9sSrPJ/8AAAD//wMA7G4kNP0GAAA= - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 8231f3430e4e02e9-GRU - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Thu, 09 Nov 2023 00:31:11 GMT - Server: - - cloudflare - Transfer-Encoding: - - chunked - access-control-allow-origin: - - '*' - alt-svc: - - h3=":443"; ma=86400 - openai-model: - - gpt-4-0613 - openai-organization: - - clearbit-2 - openai-processing-ms: - - '12053' - openai-version: - - '2020-10-01' - strict-transport-security: - - max-age=15724800; includeSubDomains - x-ratelimit-limit-requests: - - '100' - x-ratelimit-limit-tokens: - - '300000' - x-ratelimit-remaining-requests: - - '99' - x-ratelimit-remaining-tokens: - - '299571' - x-ratelimit-reset-requests: - - 600ms - x-ratelimit-reset-tokens: - - 85ms - x-request-id: - - 7e46d3e18547977d51d0295984e8d6c4 + - bd3db2e14641121a223cd515692a309e status: code: 200 message: OK @@ -341,23 +123,13 @@ interactions: is a force for good because it will help humans reach their full potential.\nEND OF EXAMPLE\n\nCurrent summary:\n\n\nNew lines of conversation:\nHuman: Give me a list of 5 interesting ideas to explore for na article, what makes them - unique and interesting.\nAI: 1. AI in Healthcare: This topic is unique as it - merges two critical sectors, technology and health. We can explore how AI is - improving diagnosis, treatment and patient care. This topic is interesting because - it has direct implications on human life and well-being.\n\n2. Ethical Implications - of AI: This topic is unique because it deals with the moral and ethical dilemmas - posed by AI. The interest lies in the balance between technological advancement - and ethical considerations.\n\n3. AI in Climate Change: The uniqueness of this - topic lies in how AI can be used to combat one of the most pressing global issues - - climate change. It''s interesting due to its potential in predicting and managing - climate change consequences.\n\n4. AI and Art: This is unique because it explores - the intersection of creativity and technology. It''s interesting as it challenges - the traditional idea that art is a purely human endeavor.\n\n5. The Future of - AI Agents: This topic is unique as it can explore the potential future roles - and impacts of AI agents on various aspects of our lives and industries. It''s - interesting because it involves speculation and prediction, sparking curiosity - about what the future may hold.\n\nNew summary:"}], "model": "gpt-4", "max_tokens": - null, "stream": false, "n": 1, "temperature": 0.7}' + unique and interesting.\nAI: Here are five unique and interesting ideas for + articles: AI and Ethics, the Role of AI in Climate Change, AI in Healthcare, + the Future of AI and Work, and AI in Space Exploration. These topics are unique + and interesting because they explore the intersections of AI with morality, + climate change, healthcare, work, and space exploration - all critical issues + in today''s world.\n\nNew summary:"}], "model": "gpt-4", "max_tokens": null, + "stream": false, "n": 1, "temperature": 0.7}' headers: Accept: - '*/*' @@ -368,11 +140,11 @@ interactions: Connection: - keep-alive Content-Length: - - '2179' + - '1351' Content-Type: - application/json Cookie: - - __cf_bm=omt5hOnsQkeg7bY0srmDk9.plAPmA8M4A2avjnRJqnc-1699489854-0-AT3mgzRgrYaYWpOG/jTYc9vzQHoiqYltUoBg0LPYVxsbN/4GrMkFITZSN+42iHF8q9RV/7KDN7ZZEGmps+YZtus= + - __cf_bm=gkc3fZTvDPQQcvL6AsOb5ZabV_BJygyXmsJKgi0mtCU-1699493210-0-AWKdSYb5U/QGRawJ4wWK6DvEWiy6+l7vXFmP3RnnSvAVR+kc3AFmDrcnMowxNcJdOH8DqFD/H8jQAb6ZfMNSE3E= User-Agent: - OpenAI/v1 PythonBindings/0.28.1 X-OpenAI-Client-User-Agent: @@ -385,22 +157,19 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA1RTXWvcMBB8v1+x+C3ghLiXpPfxdISUXgkUSkgppYQ9eW1tI0uudn1JCPnvQbIv - R18M8uzM7K5GrzOAgutiBYWxqKbr3eli629UX77HH/52OK9uf23j/befzf0tqeOiTIyw+0tGD6wz - E7rekXLwI2wioVJSra6Wy4vFcvG5ykAXanKJ1vZ6enF6flXNJ4YNbEiKFfyeAQC85m/qzdf0XKzg - vDz86UgEWypWH0UARQwu/SlQhEXRa1EeQRO8ks/t3lkCO3ToAeVRQC3BZgtNiIDgWBRCA5cweP43 - EKCvgb1SJFH2LXBNKKAB6Ll3IdLI84BR2Tg6g7tRToa2JVFZQXWSzuzhK6FTazBSCU+WjYWOYksC - Ssb64EL7ku1srkse3PUx7AlqxtYHYSlB01o78lrm2h6VySsk1TV8OoEbtWzQwbbrHRtM9yFpoM22 - hJrQpRmeOMlbgh069IZgR/pE5I+NZAms9wlNZtmLJmkTvHBNcRRfw/ww4LXjDpXg2qJvqYQmmEGS - YfDZbhAaW0nFJnQ7zCs1E81k2housl5y3EQtp0WnwqSR70LIJO8klmPGe9Zxd8dVrvP58iRfyJdB - h3gw37TkVUqQnszgxh6mDvuQQsLooBkZKVMyhqDr0agcB9hj5DAIYNIZAcfNITH1IBpfzoopgW8f - 0W3Ys9iHSCjBpziKhn4se5sB/MlPYfgv3UUfQ9frg4ZH8ul9zBeLUa84vrojWs2rCdWg6I7AZbWc - JZe32TsAAAD//wMAznk1cvMDAAA= + H4sIAAAAAAAAA3RSTW/bMAy951cQuuziBEmdNUtuW5GiBbbL1mEDhqLgZMbSIouOSK/pivz3QnbS + oIddDON98UnU8wjA+MqswFiHaps2jD/c8mJxvdt/fvoeXVd98esF7n427t/N4/yTKbKDf/8hqyfX + xHLTBlLPcaBtIlTKqbPL5XK+LC/KsicarihkW93qeD6eXs7Ko8OxtyRmBb9GAADP/Td3ixXtzQqm + xQlpSARrMqtXEYBJHDJiUMSLYlRTnEnLUSn2de8cgesajICyFVBH8PEWNpxg4/8SdNHvOgKMFfio + lEjUxxp8RSigDLRvAyfqDTkjqbeBJnA35EhX1ySapa23AhwzmtPW6ryVoh/4lQMBbzLlI1wF36AS + XDmMNRVH9IYwqLOYaPBcd9qlkysH/uC0Lfq/wfCtRUuw7vth3kQBoti3V4eaQ4ROvTD996hVl1VZ + 7tPxuH1cHm2TV28xgBfpSPJY5Qqf3gk8cgrVxBzv/PC6rI2PXtxDIhSOeQGi3A6ywwjgvl9+92af + pk3ctPqgvKWYX8RFOR/yzPmdndnF7EgqK4YzXk7fj/KQw+gFAAD//wMAExpST+QCAAA= headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8231f3906a4802e9-GRU + - 823245a39dad00fe-GRU Cache-Control: - no-cache, must-revalidate Connection: @@ -410,7 +179,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 09 Nov 2023 00:31:18 GMT + - Thu, 09 Nov 2023 01:27:16 GMT Server: - cloudflare Transfer-Encoding: @@ -424,7 +193,7 @@ interactions: openai-organization: - clearbit-2 openai-processing-ms: - - '6445' + - '2657' openai-version: - '2020-10-01' strict-transport-security: @@ -436,138 +205,13 @@ interactions: x-ratelimit-remaining-requests: - '99' x-ratelimit-remaining-tokens: - - '299478' + - '299683' x-ratelimit-reset-requests: - 600ms x-ratelimit-reset-tokens: - - 104ms + - 63ms x-request-id: - - c0fb0902571d831d249d1db13bd7e1b0 - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"role": "user", "content": "You are an AI assistant reading - the transcript of a conversation between an AI and a human. Extract all of the - proper nouns from the last line of conversation. As a guideline, a proper noun - is generally capitalized. You should definitely extract all names and places.\n\nThe - conversation history is provided just in case of a coreference (e.g. \"What - do you know about him\" where \"him\" is defined in a previous line) -- ignore - items mentioned there that are not in the last line.\n\nReturn the output as - a single comma-separated list, or NONE if there is nothing of note to return - (e.g. the user is just issuing a greeting or having a simple conversation).\n\nEXAMPLE\nConversation - history:\nPerson #1: how''s it going today?\nAI: \"It''s going great! How about - you?\"\nPerson #1: good! busy working on Langchain. lots to do.\nAI: \"That - sounds like a lot of work! What kind of things are you doing to make Langchain - better?\"\nLast line:\nPerson #1: i''m trying to improve Langchain''s interfaces, - the UX, its integrations with various products the user might want ... a lot - of stuff.\nOutput: Langchain\nEND OF EXAMPLE\n\nEXAMPLE\nConversation history:\nPerson - #1: how''s it going today?\nAI: \"It''s going great! How about you?\"\nPerson - #1: good! busy working on Langchain. lots to do.\nAI: \"That sounds like a lot - of work! What kind of things are you doing to make Langchain better?\"\nLast - line:\nPerson #1: i''m trying to improve Langchain''s interfaces, the UX, its - integrations with various products the user might want ... a lot of stuff. I''m - working with Person #2.\nOutput: Langchain, Person #2\nEND OF EXAMPLE\n\nConversation - history (for reference only):\n\nLast line of conversation (for extraction):\nHuman: - Write a 1 amazing paragraph highlight for each idea that showcases how good - an article about this topic could be. Return the list of ideas with their paragraph - and your notes.\n\nThis is the context you are working with:\n1. AI in Healthcare: - This topic is unique as it merges two critical sectors, technology and health. - We can explore how AI is improving diagnosis, treatment and patient care. This - topic is interesting because it has direct implications on human life and well-being.\n\n2. - Ethical Implications of AI: This topic is unique because it deals with the moral - and ethical dilemmas posed by AI. The interest lies in the balance between technological - advancement and ethical considerations.\n\n3. AI in Climate Change: The uniqueness - of this topic lies in how AI can be used to combat one of the most pressing - global issues - climate change. It''s interesting due to its potential in predicting - and managing climate change consequences.\n\n4. AI and Art: This is unique because - it explores the intersection of creativity and technology. It''s interesting - as it challenges the traditional idea that art is a purely human endeavor.\n\n5. - The Future of AI Agents: This topic is unique as it can explore the potential - future roles and impacts of AI agents on various aspects of our lives and industries. - It''s interesting because it involves speculation and prediction, sparking curiosity - about what the future may hold.\n\nOutput:"}], "model": "gpt-4", "max_tokens": - null, "stream": false, "n": 1, "temperature": 0.7}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Authorization: - - Bearer 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 - Connection: - - keep-alive - Content-Length: - - '3286' - Content-Type: - - application/json - Cookie: - - __cf_bm=omt5hOnsQkeg7bY0srmDk9.plAPmA8M4A2avjnRJqnc-1699489854-0-AT3mgzRgrYaYWpOG/jTYc9vzQHoiqYltUoBg0LPYVxsbN/4GrMkFITZSN+42iHF8q9RV/7KDN7ZZEGmps+YZtus= - User-Agent: - - OpenAI/v1 PythonBindings/0.28.1 - X-OpenAI-Client-User-Agent: - - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": - "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", - "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 - PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA1RQyU7DMBC95ytGPqeoSUtIcouqFnJkkRBCqDLONDZ17MieCqqq/46cdIHLHN4y - 8+YdIgCmGlYCE5KT6Ho9yWuzmn5vl/vH+6ciw61LZfq6LJK0fX7bszg47OcXCjq7boTteo2krBlp - 4ZAThq1JVhTzvMjv8oHobIM62NqeJvPJNEtmJ4e0SqBnJbxHAACHYYZspsEfVsI0PiMdes9bZOVF - BMCc1QFh3HvliRti8ZUU1hCaIW5VgzLwgFyTFNxhDEuSSnANdddrJXh4woPdQFXHMKoXWnWcEBaS - mxYHlJsGKkcxvEiE1Y52DkcPVC0a8ux0/HhJvVFGebl2yL01IYkn24+yYwTwMbSw+/cY653telqT - 3aIJ1WRZPu5j18KvbHp7IskS139cxSwKR47RLwAAAP//AwBinwsm7QEAAA== - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 8231f3ba4df202e9-GRU - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Thu, 09 Nov 2023 00:31:20 GMT - Server: - - cloudflare - Transfer-Encoding: - - chunked - access-control-allow-origin: - - '*' - alt-svc: - - h3=":443"; ma=86400 - openai-model: - - gpt-4-0613 - openai-organization: - - clearbit-2 - openai-processing-ms: - - '1913' - openai-version: - - '2020-10-01' - strict-transport-security: - - max-age=15724800; includeSubDomains - x-ratelimit-limit-requests: - - '100' - x-ratelimit-limit-tokens: - - '300000' - x-ratelimit-remaining-requests: - - '99' - x-ratelimit-remaining-tokens: - - '299208' - x-ratelimit-reset-requests: - - 600ms - x-ratelimit-reset-tokens: - - 158ms - x-request-id: - - 0d5d4ed34702a98537c5b4b74278f3f9 + - 2573ba1c1be50df244d762fa5cad21a1 status: code: 200 message: OK @@ -582,30 +226,17 @@ interactions: the input to the action\nObservation: the result of the action\n```\n\nWhen you have a response for your task, or if you do not need to use a tool, you MUST use the format:\n\n```\nThought: Do I need to use a tool? No\nFinal Answer: - [your response here]\n```\n\t\tThis is the summary of your work so far:\n \n\n This - is your understanding of the current situation:\n {''AI in Healthcare'': - '''', ''Ethical Implications of AI'': '''', ''AI in Climate Change'': '''', - ''AI and Art'': '''', ''The Future of AI Agents'': ''''}\nBegin! This is VERY - important to you, your job depends on it!\n\nCurrent Task: Write a 1 amazing - paragraph highlight for each idea that showcases how good an article about this - topic could be. Return the list of ideas with their paragraph and your notes.\n\nThis - is the context you are working with:\n1. AI in Healthcare: This topic is unique - as it merges two critical sectors, technology and health. We can explore how - AI is improving diagnosis, treatment and patient care. This topic is interesting - because it has direct implications on human life and well-being.\n\n2. Ethical - Implications of AI: This topic is unique because it deals with the moral and - ethical dilemmas posed by AI. The interest lies in the balance between technological - advancement and ethical considerations.\n\n3. AI in Climate Change: The uniqueness - of this topic lies in how AI can be used to combat one of the most pressing - global issues - climate change. It''s interesting due to its potential in predicting - and managing climate change consequences.\n\n4. AI and Art: This is unique because - it explores the intersection of creativity and technology. It''s interesting - as it challenges the traditional idea that art is a purely human endeavor.\n\n5. - The Future of AI Agents: This topic is unique as it can explore the potential - future roles and impacts of AI agents on various aspects of our lives and industries. - It''s interesting because it involves speculation and prediction, sparking curiosity - about what the future may hold.\n\n"}], "model": "gpt-4", "max_tokens": null, - "stream": false, "n": 1, "temperature": 0.7, "stop": ["\nObservation"]}' + [your response here]\n```\n\t\tThis is the summary of your work so far:\n \nBegin! + This is VERY important to you, your job depends on it!\n\nCurrent Task: Write + a 1 amazing paragraph highlight for each idea that showcases how good an article + about this topic could be. Return the list of ideas with their paragraph and + your notes.\n\nThis is the context you are working with:\nHere are five unique + and interesting ideas for articles: AI and Ethics, the Role of AI in Climate + Change, AI in Healthcare, the Future of AI and Work, and AI in Space Exploration. + These topics are unique and interesting because they explore the intersections + of AI with morality, climate change, healthcare, work, and space exploration + - all critical issues in today''s world.\n\n"}], "model": "gpt-4", "max_tokens": + null, "stream": false, "n": 1, "temperature": 0.7, "stop": ["\nObservation"]}' headers: Accept: - '*/*' @@ -616,11 +247,11 @@ interactions: Connection: - keep-alive Content-Length: - - '2703' + - '1666' Content-Type: - application/json Cookie: - - __cf_bm=omt5hOnsQkeg7bY0srmDk9.plAPmA8M4A2avjnRJqnc-1699489854-0-AT3mgzRgrYaYWpOG/jTYc9vzQHoiqYltUoBg0LPYVxsbN/4GrMkFITZSN+42iHF8q9RV/7KDN7ZZEGmps+YZtus= + - __cf_bm=gkc3fZTvDPQQcvL6AsOb5ZabV_BJygyXmsJKgi0mtCU-1699493210-0-AWKdSYb5U/QGRawJ4wWK6DvEWiy6+l7vXFmP3RnnSvAVR+kc3AFmDrcnMowxNcJdOH8DqFD/H8jQAb6ZfMNSE3E= User-Agent: - OpenAI/v1 PythonBindings/0.28.1 X-OpenAI-Client-User-Agent: @@ -633,34 +264,32 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA2RWTY/jRg69968gdJmLbcxXJt3eQ8OYj8R7CJBMdoNgexHQJVpid4kUipQ9nsH8 - 9wVLdncHe9FBxSIfH/nI+nYF0HDbrKFJPXoaxry83sqn11+73/69ffjl5r796X7z6+c///wpvf/i - /KZZxA3d3VPyy61V0mHM5KwyH6dC6BReX727uXl7fXN9/bIeDNpSjmvd6Mu3y5fvXp0dpl45kTVr - +M8VAMC3+g1s0tKXZg31fv0zkBl21KwfjQCaojn+NGjG5ijeLJ4Ok4qTVLi/9zp1va/hg8IWhKgF - V5iMAMFV8y38ondyJ59YMMNG7EhlHT9erWCzBRb4mTB7n7DQGj7wgYDFFVCAvoxZC7qWE9zrVIRO - cOypEBhnTiowELmBOXmvlnSkBUxS8ECZpYNej7ApzntOjBm24pQzdySJgA0KHTRPwTF/DXPvCfpH - LMDSTubltIJPRQcgLPkELWMnamyge8i8p6X3tTQSHlo2QiMLBkYqpoKZvwYjYTOQOIwZxRY1cwNR - h/vJPJJ95PkfwP7CYEdJh3CKNY7hgcoKtgN2LMHtUUtuz3Q4pV40a3eCVsnkxcVt9QmtJtdisJsc - aBj1SMVgRGcStwXofk/lTMAAgxaCqG/RDHqgEr+5nJkBlBaOlPNyRyzdKgr5egUfvecUFA9j5oTB - aWVos13Dv4SweF/pHbRghoGF9ky5Be/Rg4sezwkH7eA9G/jcV8ux6EEfAt7IlGgFG4PN9oVBwhF3 - nNmZDLqixwWYQqs1EJ0BtZxpGNBW8LnXKbcwYOpZyGDAB6rMghZoCb2HlhJbQL+F91ERAcydFvZ+ - gB3BjtGovYU/eoUdYYkOslHFuMI4wV4LbLbLaJxELejkkZHdwj+VBSYDNDgSCB64Q6cAagTDVB5O - cESnYgvYYUZJl3a0hJkqk48lrmlhe0BJVDsqKnJJ9++AanXeXGT2PvMQUd/3KB2t4Q92IbNZJbUd - n1pOovvZRhLDXSbAnE9zZQj23PUO2CGLOaSz11S9nrWy10IJzcPXMailEv3mVMQq3rFQy6meC/pU - aqUMLTgI8ejoPMyqJKHSneaBUm/qoPWiTebIUvGNBZPHuLsoK7qmkhilAoQOB1rOGMsKPtbBQjX1 - 2myCloLLZ0JKKNBTHqNu5hQ60COW1gBnjTyPv598KlT5flv5Dqib4mv4OOywPIAKIOzREgtW9JfZ - xipR3lnHdcrzIXppnmxJW1rNzXjp3NmI6o/gq6riFn7WY9V+BE895kzSEehUwAu2HHEwx8C5SBOL - 38IHypd5G6WdZ0rV7bIL4mPnhOXiDPBRDwYxIuMOFmfzc1n5C+WnoxEzudMCxsn6S0vvdJIWC89t - fYwBcKwDx7ilAncNFr9rKpU/rOD3nuBTJXeGBZsuhtYaPjuNT8ALYR7CwkZKU55pfd5oKpcUjnTm - /oxRY5HFetg/D4M1zKrSeuScw/YE1uP4uBg4uo1ln6e6UILqFjmfIPMhjqouDyRQqKV9VC5MJmmp - xJxvgxDdw13Dz/bSXXMLH6XDrg5CrL7q2rGkUwkNlODvDN3OSg8ya7ZUONs8VatU/z8lGKp8e83t - qjkv9O+PL4E9C1v/VyE0ldju5jrOZt+vAP5bXxbT3x4LTShy9L9cH0jiufHD6+vZX/P0iHk6ffPj - 5dTVMT8d3Lx8dxVRvl/9DwAA//8DANyyOI5CCQAA + H4sIAAAAAAAAA4xWUW/bRgx+z68g/OwYbdNmjV+GrGs3b1gHrAUGbB0K6kRLTE6kdkfZ8Yr+94En + yXaAYNiLAR/v+JEfP5L6cgGw4HqxhkVo0ULXx8vXG/3m9ufwx0933/36wwd5dc2/vD/Ud8+wS1EX + S3+h1R0Fm1+tgnZ9JGOV0RwSoZF7fX59c/Py5urF1XUxdFpT9GdNb5cvL59dP7+aXrTKgfJiDX9e + AAB8Kb8em9T0sFjDs+V80lHO2NBifbwEsEga/WSBOXM2FFssT8agYiQl3I+tDk1ra/heYQNCVIMp + DJkAwVTjt/BeP8kneceCEW4l7ymt/eD5Cm43gFLDW2s55DVsBBD2mmIN1qIBZ2DxzDNLEw9QEUsD + tXYsTgZUB7hNxlsOjBE2YhQjNySBlmAtwd8DZacQdAtUMNwl7ShBp4mAu16Tp7aCjy1nwGQcIsGe + Y4Sa4o6AxbT4Ggvy4AeUMoXZ75TC6H4J9NBHTR5mq/vysKbAmVUydFhTiXkDAcXRMRhkDUx2WMG7 + pB30iXcYDhBUAiXJMMFjCDqIYcWR7TABH117upyhZwpT9H3SHdcEibCmlGHP1gKWLBK1JJl3BIO4 + zVBqD1i3BalkghFqjtR1mKHXPHG9WXndXjhbBL9ppCkOFngTuUMjeNOiNLQ+/g/lv9M+crFlcSzO + eSivdUhg3NFTFaAH7FioMOkoGfqIB3+O0PNODSO4Sh0/aFehua0w0UStMDp6jCQNHdmlmkO5FqYA + ezSbidbeuON/3JxIaI9VJCCh1Bxc0KOozkhuuWkjN62dhShqcDdk8xgx2cxqn7SK1C2hGgwwZvVi + pKEI9/xe1ji4tArTV6uJ3R8Jo7UBE60L99shP5Zfe7wArcY6e+8llLzV1KF5rXv1hmWMTzPtqj1n + OtFuimTk4wSwhK1TyV2RmPcjYyOa3afUYD6oOhJzQklalOCXejT2wxJiiVhzz17BDgUb8hcr2NgY + T/ZAnuD0BHqWsA4WtKN8orZOvBtlUtqctj4hHN2Bp0guA3kn0yPu8iEbdYX7l6PK3w02JDpj+ndN + 92MREufZ0GKG3GO6pxoQIu8oHqCmygWmAmx57nYVuNNqoqpUcva/13T/X7UpujbtOQDLZU29tcup + RTzXSq0dlTYX2oEgas50ghPag/Y+9QZhY8owLZapv48VmOcHQoURJXhiUgNLdr1vhwgoGA9edd0+ + 0k1usR/7kKZZPifntL6aJf2hx0DwtiSHrrNJ2WVLbJOKMaW5+BUddMogEYZ2pP0ptnKvNrZkufxo + RuUCSSfIScolk6LyHXrjdj5pS16YLaloNw5ENN9ogIP5mQ559BgSbg0Ed9zME4hGT/TQo4wiKTdH + Sf3vAcJlLJ8GRggUKY0YPjfLeittdpSIz3Te+YJaLaZt/fW45n325vaz71MVX93ZtB+vfb0A+Kt8 + NgyPvgQWfdKut8+m9yT+LXH14vXob3H6QjmzXs9W8+l8MlzfXF84yteLfwEAAP//AwC/r3vCHwkA + AA== headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8231f3c83a5002e9-GRU + - 823245b5db7200fe-GRU Cache-Control: - no-cache, must-revalidate Connection: @@ -670,7 +299,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 09 Nov 2023 00:31:37 GMT + - Thu, 09 Nov 2023 01:27:30 GMT Server: - cloudflare Transfer-Encoding: @@ -684,7 +313,7 @@ interactions: openai-organization: - clearbit-2 openai-processing-ms: - - '16637' + - '14290' openai-version: - '2020-10-01' strict-transport-security: @@ -696,809 +325,13 @@ interactions: x-ratelimit-remaining-requests: - '99' x-ratelimit-remaining-tokens: - - '299358' + - '299615' x-ratelimit-reset-requests: - 600ms x-ratelimit-reset-tokens: - - 128ms + - 77ms x-request-id: - - b91432d8e848317abf8d7d068c5e44cd - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"role": "user", "content": "You are an AI assistant helping - a human keep track of facts about relevant people, places, and concepts in their - life. Update the summary of the provided entity in the \"Entity\" section based - on the last line of your conversation with the human. If you are writing the - summary for the first time, return a single sentence.\nThe update should only - include facts that are relayed in the last line of conversation about the provided - entity, and should only contain facts about the provided entity.\n\nIf there - is no new information about the provided entity or the information is not worth - noting (not an important or relevant fact to remember long-term), return the - existing summary unchanged.\n\nFull conversation history (for context):\nHuman: - Write a 1 amazing paragraph highlight for each idea that showcases how good - an article about this topic could be. Return the list of ideas with their paragraph - and your notes.\n\nThis is the context you are working with:\n1. AI in Healthcare: - This topic is unique as it merges two critical sectors, technology and health. - We can explore how AI is improving diagnosis, treatment and patient care. This - topic is interesting because it has direct implications on human life and well-being.\n\n2. - Ethical Implications of AI: This topic is unique because it deals with the moral - and ethical dilemmas posed by AI. The interest lies in the balance between technological - advancement and ethical considerations.\n\n3. AI in Climate Change: The uniqueness - of this topic lies in how AI can be used to combat one of the most pressing - global issues - climate change. It''s interesting due to its potential in predicting - and managing climate change consequences.\n\n4. AI and Art: This is unique because - it explores the intersection of creativity and technology. It''s interesting - as it challenges the traditional idea that art is a purely human endeavor.\n\n5. - The Future of AI Agents: This topic is unique as it can explore the potential - future roles and impacts of AI agents on various aspects of our lives and industries. - It''s interesting because it involves speculation and prediction, sparking curiosity - about what the future may hold.\nAI: 1. AI in Healthcare: Dive into an exploratory - journey where silicon meets stethoscope, unraveling how Artificial Intelligence - is revolutionizing the healthcare industry. From early diagnosis of life-threatening - diseases to personalized treatment plans, AI is not just an assistant; it''s - becoming a lifesaver. Imagine a world where technology doesn''t just assist - doctors but empowers patients, offering them more control over their health - and well-being.\n\n2. Ethical Implications of AI: Unearth the moral minefield - that AI has become in this thought-provoking piece. As AI''s capabilities grow, - so do the ethical dilemmas. Should machines make life or death decisions? Can - an algorithm be biased? Who bears responsibility for AI-induced outcomes? Join - us as we navigate these murky waters, balancing the scales of technological - advancement and ethical responsibility.\n\n3. AI in Climate Change: Witness - how AI is becoming an indispensable ally in the fight against climate change. - From forecasting weather patterns and predicting natural disasters to optimizing - energy use and promoting sustainable practices, AI is proving to be a game-changer. - Explore how this nascent technology can help us steer towards a more sustainable - future.\n\n4. AI and Art: Embark on a fascinating exploration of where creativity - meets code. Can a machine create a masterpiece? How does AI challenge our traditional - notions of art? Delve into the world of AI-generated art, where algorithms are - the artists and pixels are the palette, pushing the boundaries of what we consider - \"art\".\n\n5. The Future of AI Agents: Step into the realm of speculation and - prediction, where we explore the potential future of AI agents. How will they - shape industries, influence our daily lives, and even redefine our understanding - of \"intelligence\"? Engage in a lively discourse around the possibilities and - perils that the future of AI agents might hold.\n\nEntity to summarize:\nAI - in Healthcare\n\nExisting summary of AI in Healthcare:\n\n\nLast line of conversation:\nHuman: - Write a 1 amazing paragraph highlight for each idea that showcases how good - an article about this topic could be. Return the list of ideas with their paragraph - and your notes.\n\nThis is the context you are working with:\n1. AI in Healthcare: - This topic is unique as it merges two critical sectors, technology and health. - We can explore how AI is improving diagnosis, treatment and patient care. This - topic is interesting because it has direct implications on human life and well-being.\n\n2. - Ethical Implications of AI: This topic is unique because it deals with the moral - and ethical dilemmas posed by AI. The interest lies in the balance between technological - advancement and ethical considerations.\n\n3. AI in Climate Change: The uniqueness - of this topic lies in how AI can be used to combat one of the most pressing - global issues - climate change. It''s interesting due to its potential in predicting - and managing climate change consequences.\n\n4. AI and Art: This is unique because - it explores the intersection of creativity and technology. It''s interesting - as it challenges the traditional idea that art is a purely human endeavor.\n\n5. - The Future of AI Agents: This topic is unique as it can explore the potential - future roles and impacts of AI agents on various aspects of our lives and industries. - It''s interesting because it involves speculation and prediction, sparking curiosity - about what the future may hold.\nUpdated summary:"}], "model": "gpt-4", "max_tokens": - null, "stream": false, "n": 1, "temperature": 0.7}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Authorization: - - Bearer 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 - Connection: - - keep-alive - Content-Length: - - '5795' - Content-Type: - - application/json - Cookie: - - __cf_bm=omt5hOnsQkeg7bY0srmDk9.plAPmA8M4A2avjnRJqnc-1699489854-0-AT3mgzRgrYaYWpOG/jTYc9vzQHoiqYltUoBg0LPYVxsbN/4GrMkFITZSN+42iHF8q9RV/7KDN7ZZEGmps+YZtus= - User-Agent: - - OpenAI/v1 PythonBindings/0.28.1 - X-OpenAI-Client-User-Agent: - - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": - "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", - "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 - PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA1xSwW4TQQy95yusOW+qBkKb5MYFtVyKECAhhKrJrLPrMmNPx96mBfXf0UzSlnKZ - w3t+fm9s/5kBOOrdBlwYvYWU43x1yR8+yret8vLs6vv2s/pbvrj7esW8/fTbdVUh2xsM9qQ6CZJy - RCPhAx0KesPadXG2Xi9X69X6vBFJeoxVNmSbL+enZ4u3R8UoFFDdBn7MAAD+tLdm4x7v3QZOuyck - oaof0G2eiwBckVgR51VJzbO57oUMwobc4r6/BGK4QB9tDL4gkIKHiel2QjDJFMBGb5CwDKhge4FQ - yCj4CIrBpGgHhmFkiTI8gOcextatA7zPUQrxAKPsoTopUMpF7irWkx9YlKq+jichW9f02RshG9Q8 - J/BlJAWd2oBrh+yLUZiiL/EBiA0LqrWGLTGQKfRUWnXKkYKve1AQhnFKniHSDpvPHmOcb5F4qC4I - kyLIDg4jGV+NhMXgZlIDT33zkvZ12E4GPqoApix7bJ89xtcOZLc7QDZigiQFoY6+SAS5w1JhKken - /xO547oen/e8IyYdrwt6Fa67U5N8KHucAfxsdzO9OgWXi6Rs1ya/kOsxLU7PV4eG7uVGX+jz5ZE0 - MR//kS3evZlVm8fZXwAAAP//AwDWFVK3IQMAAA== - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 8231f4325a3302e9-GRU - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Thu, 09 Nov 2023 00:31:41 GMT - Server: - - cloudflare - Transfer-Encoding: - - chunked - access-control-allow-origin: - - '*' - alt-svc: - - h3=":443"; ma=86400 - openai-model: - - gpt-4-0613 - openai-organization: - - clearbit-2 - openai-processing-ms: - - '3753' - openai-version: - - '2020-10-01' - strict-transport-security: - - max-age=15724800; includeSubDomains - x-ratelimit-limit-requests: - - '100' - x-ratelimit-limit-tokens: - - '300000' - x-ratelimit-remaining-requests: - - '99' - x-ratelimit-remaining-tokens: - - '298580' - x-ratelimit-reset-requests: - - 600ms - x-ratelimit-reset-tokens: - - 284ms - x-request-id: - - 0afddcc6f73671f4c6f6c47c08283034 - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"role": "user", "content": "You are an AI assistant helping - a human keep track of facts about relevant people, places, and concepts in their - life. Update the summary of the provided entity in the \"Entity\" section based - on the last line of your conversation with the human. If you are writing the - summary for the first time, return a single sentence.\nThe update should only - include facts that are relayed in the last line of conversation about the provided - entity, and should only contain facts about the provided entity.\n\nIf there - is no new information about the provided entity or the information is not worth - noting (not an important or relevant fact to remember long-term), return the - existing summary unchanged.\n\nFull conversation history (for context):\nHuman: - Write a 1 amazing paragraph highlight for each idea that showcases how good - an article about this topic could be. Return the list of ideas with their paragraph - and your notes.\n\nThis is the context you are working with:\n1. AI in Healthcare: - This topic is unique as it merges two critical sectors, technology and health. - We can explore how AI is improving diagnosis, treatment and patient care. This - topic is interesting because it has direct implications on human life and well-being.\n\n2. - Ethical Implications of AI: This topic is unique because it deals with the moral - and ethical dilemmas posed by AI. The interest lies in the balance between technological - advancement and ethical considerations.\n\n3. AI in Climate Change: The uniqueness - of this topic lies in how AI can be used to combat one of the most pressing - global issues - climate change. It''s interesting due to its potential in predicting - and managing climate change consequences.\n\n4. AI and Art: This is unique because - it explores the intersection of creativity and technology. It''s interesting - as it challenges the traditional idea that art is a purely human endeavor.\n\n5. - The Future of AI Agents: This topic is unique as it can explore the potential - future roles and impacts of AI agents on various aspects of our lives and industries. - It''s interesting because it involves speculation and prediction, sparking curiosity - about what the future may hold.\nAI: 1. AI in Healthcare: Dive into an exploratory - journey where silicon meets stethoscope, unraveling how Artificial Intelligence - is revolutionizing the healthcare industry. From early diagnosis of life-threatening - diseases to personalized treatment plans, AI is not just an assistant; it''s - becoming a lifesaver. Imagine a world where technology doesn''t just assist - doctors but empowers patients, offering them more control over their health - and well-being.\n\n2. Ethical Implications of AI: Unearth the moral minefield - that AI has become in this thought-provoking piece. As AI''s capabilities grow, - so do the ethical dilemmas. Should machines make life or death decisions? Can - an algorithm be biased? Who bears responsibility for AI-induced outcomes? Join - us as we navigate these murky waters, balancing the scales of technological - advancement and ethical responsibility.\n\n3. AI in Climate Change: Witness - how AI is becoming an indispensable ally in the fight against climate change. - From forecasting weather patterns and predicting natural disasters to optimizing - energy use and promoting sustainable practices, AI is proving to be a game-changer. - Explore how this nascent technology can help us steer towards a more sustainable - future.\n\n4. AI and Art: Embark on a fascinating exploration of where creativity - meets code. Can a machine create a masterpiece? How does AI challenge our traditional - notions of art? Delve into the world of AI-generated art, where algorithms are - the artists and pixels are the palette, pushing the boundaries of what we consider - \"art\".\n\n5. The Future of AI Agents: Step into the realm of speculation and - prediction, where we explore the potential future of AI agents. How will they - shape industries, influence our daily lives, and even redefine our understanding - of \"intelligence\"? Engage in a lively discourse around the possibilities and - perils that the future of AI agents might hold.\n\nEntity to summarize:\nEthical - Implications of AI\n\nExisting summary of Ethical Implications of AI:\n\n\nLast - line of conversation:\nHuman: Write a 1 amazing paragraph highlight for each - idea that showcases how good an article about this topic could be. Return the - list of ideas with their paragraph and your notes.\n\nThis is the context you - are working with:\n1. AI in Healthcare: This topic is unique as it merges two - critical sectors, technology and health. We can explore how AI is improving - diagnosis, treatment and patient care. This topic is interesting because it - has direct implications on human life and well-being.\n\n2. Ethical Implications - of AI: This topic is unique because it deals with the moral and ethical dilemmas - posed by AI. The interest lies in the balance between technological advancement - and ethical considerations.\n\n3. AI in Climate Change: The uniqueness of this - topic lies in how AI can be used to combat one of the most pressing global issues - - climate change. It''s interesting due to its potential in predicting and managing - climate change consequences.\n\n4. AI and Art: This is unique because it explores - the intersection of creativity and technology. It''s interesting as it challenges - the traditional idea that art is a purely human endeavor.\n\n5. The Future of - AI Agents: This topic is unique as it can explore the potential future roles - and impacts of AI agents on various aspects of our lives and industries. It''s - interesting because it involves speculation and prediction, sparking curiosity - about what the future may hold.\nUpdated summary:"}], "model": "gpt-4", "max_tokens": - null, "stream": false, "n": 1, "temperature": 0.7}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Authorization: - - Bearer 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 - Connection: - - keep-alive - Content-Length: - - '5815' - Content-Type: - - application/json - Cookie: - - __cf_bm=omt5hOnsQkeg7bY0srmDk9.plAPmA8M4A2avjnRJqnc-1699489854-0-AT3mgzRgrYaYWpOG/jTYc9vzQHoiqYltUoBg0LPYVxsbN/4GrMkFITZSN+42iHF8q9RV/7KDN7ZZEGmps+YZtus= - User-Agent: - - OpenAI/v1 PythonBindings/0.28.1 - X-OpenAI-Client-User-Agent: - - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": - "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", - "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 - PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA1RSwY4aMQy98xVWzoBAhS1w20NXpVIrtarUQ1WtMokhLkk8jT0FtOLfq8ywC734 - YPvZz8/vZQRgyJsNGBesutTGyWqbn76sdofjstl/2/34NGNcfVx+Pbkn/mzNuCK4+Y1OX1FTx6mN - qMR5KLuCVrFOnT+s14vVej2b94XEHmOF7VudLCazh/m7KyIwORSzgZ8jAICXPlZu2ePJbGA2fs0k - FLF7NJu3JgBTONaMsSIkarOa8a3oOCvmnu73gKDckgPewQcN5GyEbWojOVv5S80/bsGjjQJH0gAa - EBIXG8FmD3jFeIqYkhVoWdBDc+77rP9rs8OEWa+DFF3IHHl/nsJWAU9t5IICfzqUYaF0LoAVOAbU - gAWSdYEyCkjgLnpI9oAQaYfApfLSAB4dSQWP+60t1/PIRmjI9hfYuOdCGpKMe9bHwNCgLQIFpeUs - 1FAkPcOOCzxuJ5R959ADd+o4oUyhCkVZsaAoUAYNJFflIqEMKYTGxnowNKhHxHw7txfpXo578Vxl - 4LEMkk/N9VWXtx/vKJOE54JWONe/iXI7tF1GAL96z3T/2cC0hVOrz8oHzNVI89lqMQw0N3/eyu+v - jjLKauMdbL5cjOqay+gfAAAA//8DAK2x0EsdAwAA - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 8231f44b8a7a02e9-GRU - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Thu, 09 Nov 2023 00:31:45 GMT - Server: - - cloudflare - Transfer-Encoding: - - chunked - access-control-allow-origin: - - '*' - alt-svc: - - h3=":443"; ma=86400 - openai-model: - - gpt-4-0613 - openai-organization: - - clearbit-2 - openai-processing-ms: - - '4141' - openai-version: - - '2020-10-01' - strict-transport-security: - - max-age=15724800; includeSubDomains - x-ratelimit-limit-requests: - - '100' - x-ratelimit-limit-tokens: - - '300000' - x-ratelimit-remaining-requests: - - '99' - x-ratelimit-remaining-tokens: - - '298575' - x-ratelimit-reset-requests: - - 600ms - x-ratelimit-reset-tokens: - - 285ms - x-request-id: - - 55285c4d562878dc4fc396a02baf7514 - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"role": "user", "content": "You are an AI assistant helping - a human keep track of facts about relevant people, places, and concepts in their - life. Update the summary of the provided entity in the \"Entity\" section based - on the last line of your conversation with the human. If you are writing the - summary for the first time, return a single sentence.\nThe update should only - include facts that are relayed in the last line of conversation about the provided - entity, and should only contain facts about the provided entity.\n\nIf there - is no new information about the provided entity or the information is not worth - noting (not an important or relevant fact to remember long-term), return the - existing summary unchanged.\n\nFull conversation history (for context):\nHuman: - Write a 1 amazing paragraph highlight for each idea that showcases how good - an article about this topic could be. Return the list of ideas with their paragraph - and your notes.\n\nThis is the context you are working with:\n1. AI in Healthcare: - This topic is unique as it merges two critical sectors, technology and health. - We can explore how AI is improving diagnosis, treatment and patient care. This - topic is interesting because it has direct implications on human life and well-being.\n\n2. - Ethical Implications of AI: This topic is unique because it deals with the moral - and ethical dilemmas posed by AI. The interest lies in the balance between technological - advancement and ethical considerations.\n\n3. AI in Climate Change: The uniqueness - of this topic lies in how AI can be used to combat one of the most pressing - global issues - climate change. It''s interesting due to its potential in predicting - and managing climate change consequences.\n\n4. AI and Art: This is unique because - it explores the intersection of creativity and technology. It''s interesting - as it challenges the traditional idea that art is a purely human endeavor.\n\n5. - The Future of AI Agents: This topic is unique as it can explore the potential - future roles and impacts of AI agents on various aspects of our lives and industries. - It''s interesting because it involves speculation and prediction, sparking curiosity - about what the future may hold.\nAI: 1. AI in Healthcare: Dive into an exploratory - journey where silicon meets stethoscope, unraveling how Artificial Intelligence - is revolutionizing the healthcare industry. From early diagnosis of life-threatening - diseases to personalized treatment plans, AI is not just an assistant; it''s - becoming a lifesaver. Imagine a world where technology doesn''t just assist - doctors but empowers patients, offering them more control over their health - and well-being.\n\n2. Ethical Implications of AI: Unearth the moral minefield - that AI has become in this thought-provoking piece. As AI''s capabilities grow, - so do the ethical dilemmas. Should machines make life or death decisions? Can - an algorithm be biased? Who bears responsibility for AI-induced outcomes? Join - us as we navigate these murky waters, balancing the scales of technological - advancement and ethical responsibility.\n\n3. AI in Climate Change: Witness - how AI is becoming an indispensable ally in the fight against climate change. - From forecasting weather patterns and predicting natural disasters to optimizing - energy use and promoting sustainable practices, AI is proving to be a game-changer. - Explore how this nascent technology can help us steer towards a more sustainable - future.\n\n4. AI and Art: Embark on a fascinating exploration of where creativity - meets code. Can a machine create a masterpiece? How does AI challenge our traditional - notions of art? Delve into the world of AI-generated art, where algorithms are - the artists and pixels are the palette, pushing the boundaries of what we consider - \"art\".\n\n5. The Future of AI Agents: Step into the realm of speculation and - prediction, where we explore the potential future of AI agents. How will they - shape industries, influence our daily lives, and even redefine our understanding - of \"intelligence\"? Engage in a lively discourse around the possibilities and - perils that the future of AI agents might hold.\n\nEntity to summarize:\nAI - in Climate Change\n\nExisting summary of AI in Climate Change:\n\n\nLast line - of conversation:\nHuman: Write a 1 amazing paragraph highlight for each idea - that showcases how good an article about this topic could be. Return the list - of ideas with their paragraph and your notes.\n\nThis is the context you are - working with:\n1. AI in Healthcare: This topic is unique as it merges two critical - sectors, technology and health. We can explore how AI is improving diagnosis, - treatment and patient care. This topic is interesting because it has direct - implications on human life and well-being.\n\n2. Ethical Implications of AI: - This topic is unique because it deals with the moral and ethical dilemmas posed - by AI. The interest lies in the balance between technological advancement and - ethical considerations.\n\n3. AI in Climate Change: The uniqueness of this topic - lies in how AI can be used to combat one of the most pressing global issues - - climate change. It''s interesting due to its potential in predicting and managing - climate change consequences.\n\n4. AI and Art: This is unique because it explores - the intersection of creativity and technology. It''s interesting as it challenges - the traditional idea that art is a purely human endeavor.\n\n5. The Future of - AI Agents: This topic is unique as it can explore the potential future roles - and impacts of AI agents on various aspects of our lives and industries. It''s - interesting because it involves speculation and prediction, sparking curiosity - about what the future may hold.\nUpdated summary:"}], "model": "gpt-4", "max_tokens": - null, "stream": false, "n": 1, "temperature": 0.7}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Authorization: - - Bearer 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 - Connection: - - keep-alive - Content-Length: - - '5803' - Content-Type: - - application/json - Cookie: - - __cf_bm=omt5hOnsQkeg7bY0srmDk9.plAPmA8M4A2avjnRJqnc-1699489854-0-AT3mgzRgrYaYWpOG/jTYc9vzQHoiqYltUoBg0LPYVxsbN/4GrMkFITZSN+42iHF8q9RV/7KDN7ZZEGmps+YZtus= - User-Agent: - - OpenAI/v1 PythonBindings/0.28.1 - X-OpenAI-Client-User-Agent: - - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": - "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", - "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 - PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA1RSy04cQQy871eU5jyg3QQIyw0hRaAkhyQoiRRFyNvjnemkx27aHgFB/HvUw4bH - paV2uWyXXfcLoIldc4ImDORhzGnv+ELef1mV718vU/fm8/mnnLbfxg/nH7P88G3TVoZufnPw/6z9 - oGNO7FHlEQ6FyblWXR2t1wfH6/XycAZG7ThVWp9972BvebR6u2MMGgNbc4KfCwC4n986m3R825xg - 2f6PjGxGPTcnT0lAUzTVSENm0ZzEm/YZDCrOMo97eoEoOEtxJGecDSQ9IxoIk8TrieGaY4AP5ODb - nLSwYdAbnF4gkGDDmIw7uCLouCFH2NUKc60WKgzdwgfGqObIhc2i9OiTbighmk1s+7gcoiFKSFPH - huiGrHXKWHOk0roYvBJJOowk1NfP63YIKsbXE0tga7HVwoFsZt0w+cAFmdy5iLUvSwr5VCihi0bm - XKyFZo9j/FtRFi79XRXazs1z0VFnnk3mFIU2iZELBa9Hq1oYUZwLm9fhvWp73GSKVZ3MO5zDQhZY - HM5hEE3a382LHThlmDMXTJV7Q6WrZxm18Ku228mnwvvN7rwPT77YRok2XBUmU6m3Ntf8mPawAH7N - PpteWaepyrJfuf5hqeZbLY93RmuePf0Mv1vvQFen9IK2OlwvapuHxT8AAAD//wMAl9xtYVEDAAA= - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 8231f46728db02e9-GRU - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Thu, 09 Nov 2023 00:31:49 GMT - Server: - - cloudflare - Transfer-Encoding: - - chunked - access-control-allow-origin: - - '*' - alt-svc: - - h3=":443"; ma=86400 - openai-model: - - gpt-4-0613 - openai-organization: - - clearbit-2 - openai-processing-ms: - - '3493' - openai-version: - - '2020-10-01' - strict-transport-security: - - max-age=15724800; includeSubDomains - x-ratelimit-limit-requests: - - '100' - x-ratelimit-limit-tokens: - - '300000' - x-ratelimit-remaining-requests: - - '99' - x-ratelimit-remaining-tokens: - - '298578' - x-ratelimit-reset-requests: - - 600ms - x-ratelimit-reset-tokens: - - 284ms - x-request-id: - - fe4876009ae0a36e3eb01138e672a9a2 - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"role": "user", "content": "You are an AI assistant helping - a human keep track of facts about relevant people, places, and concepts in their - life. Update the summary of the provided entity in the \"Entity\" section based - on the last line of your conversation with the human. If you are writing the - summary for the first time, return a single sentence.\nThe update should only - include facts that are relayed in the last line of conversation about the provided - entity, and should only contain facts about the provided entity.\n\nIf there - is no new information about the provided entity or the information is not worth - noting (not an important or relevant fact to remember long-term), return the - existing summary unchanged.\n\nFull conversation history (for context):\nHuman: - Write a 1 amazing paragraph highlight for each idea that showcases how good - an article about this topic could be. Return the list of ideas with their paragraph - and your notes.\n\nThis is the context you are working with:\n1. AI in Healthcare: - This topic is unique as it merges two critical sectors, technology and health. - We can explore how AI is improving diagnosis, treatment and patient care. This - topic is interesting because it has direct implications on human life and well-being.\n\n2. - Ethical Implications of AI: This topic is unique because it deals with the moral - and ethical dilemmas posed by AI. The interest lies in the balance between technological - advancement and ethical considerations.\n\n3. AI in Climate Change: The uniqueness - of this topic lies in how AI can be used to combat one of the most pressing - global issues - climate change. It''s interesting due to its potential in predicting - and managing climate change consequences.\n\n4. AI and Art: This is unique because - it explores the intersection of creativity and technology. It''s interesting - as it challenges the traditional idea that art is a purely human endeavor.\n\n5. - The Future of AI Agents: This topic is unique as it can explore the potential - future roles and impacts of AI agents on various aspects of our lives and industries. - It''s interesting because it involves speculation and prediction, sparking curiosity - about what the future may hold.\nAI: 1. AI in Healthcare: Dive into an exploratory - journey where silicon meets stethoscope, unraveling how Artificial Intelligence - is revolutionizing the healthcare industry. From early diagnosis of life-threatening - diseases to personalized treatment plans, AI is not just an assistant; it''s - becoming a lifesaver. Imagine a world where technology doesn''t just assist - doctors but empowers patients, offering them more control over their health - and well-being.\n\n2. Ethical Implications of AI: Unearth the moral minefield - that AI has become in this thought-provoking piece. As AI''s capabilities grow, - so do the ethical dilemmas. Should machines make life or death decisions? Can - an algorithm be biased? Who bears responsibility for AI-induced outcomes? Join - us as we navigate these murky waters, balancing the scales of technological - advancement and ethical responsibility.\n\n3. AI in Climate Change: Witness - how AI is becoming an indispensable ally in the fight against climate change. - From forecasting weather patterns and predicting natural disasters to optimizing - energy use and promoting sustainable practices, AI is proving to be a game-changer. - Explore how this nascent technology can help us steer towards a more sustainable - future.\n\n4. AI and Art: Embark on a fascinating exploration of where creativity - meets code. Can a machine create a masterpiece? How does AI challenge our traditional - notions of art? Delve into the world of AI-generated art, where algorithms are - the artists and pixels are the palette, pushing the boundaries of what we consider - \"art\".\n\n5. The Future of AI Agents: Step into the realm of speculation and - prediction, where we explore the potential future of AI agents. How will they - shape industries, influence our daily lives, and even redefine our understanding - of \"intelligence\"? Engage in a lively discourse around the possibilities and - perils that the future of AI agents might hold.\n\nEntity to summarize:\nAI - and Art\n\nExisting summary of AI and Art:\n\n\nLast line of conversation:\nHuman: - Write a 1 amazing paragraph highlight for each idea that showcases how good - an article about this topic could be. Return the list of ideas with their paragraph - and your notes.\n\nThis is the context you are working with:\n1. AI in Healthcare: - This topic is unique as it merges two critical sectors, technology and health. - We can explore how AI is improving diagnosis, treatment and patient care. This - topic is interesting because it has direct implications on human life and well-being.\n\n2. - Ethical Implications of AI: This topic is unique because it deals with the moral - and ethical dilemmas posed by AI. The interest lies in the balance between technological - advancement and ethical considerations.\n\n3. AI in Climate Change: The uniqueness - of this topic lies in how AI can be used to combat one of the most pressing - global issues - climate change. It''s interesting due to its potential in predicting - and managing climate change consequences.\n\n4. AI and Art: This is unique because - it explores the intersection of creativity and technology. It''s interesting - as it challenges the traditional idea that art is a purely human endeavor.\n\n5. - The Future of AI Agents: This topic is unique as it can explore the potential - future roles and impacts of AI agents on various aspects of our lives and industries. - It''s interesting because it involves speculation and prediction, sparking curiosity - about what the future may hold.\nUpdated summary:"}], "model": "gpt-4", "max_tokens": - null, "stream": false, "n": 1, "temperature": 0.7}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Authorization: - - Bearer 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 - Connection: - - keep-alive - Content-Length: - - '5783' - Content-Type: - - application/json - Cookie: - - __cf_bm=omt5hOnsQkeg7bY0srmDk9.plAPmA8M4A2avjnRJqnc-1699489854-0-AT3mgzRgrYaYWpOG/jTYc9vzQHoiqYltUoBg0LPYVxsbN/4GrMkFITZSN+42iHF8q9RV/7KDN7ZZEGmps+YZtus= - User-Agent: - - OpenAI/v1 PythonBindings/0.28.1 - X-OpenAI-Client-User-Agent: - - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": - "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", - "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 - PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA1RSTWsbMRC9+1cMOq/NLjau1zeXUjCEXNrm0pQwkSYrJVqNKs36g+D/XrS24/Si - g57ex8zT+wRAOaPWoLRF0X3009U2fH/od/Jj8dV82zSLX/OHu/v653Fx99oPqioMfn4lLVfWTHMf - PYnjcIZ1IhQqqs2ybRertq3bEejZkC+0Lsp0Ma2XzfzCsOw0ZbWG3xMAgPfxLNmCoYNaQ11db3rK - GTtS649HACqxLzcKc3ZZMIiqbqDmIBTGuJstYDCwSQIuA8IQ3N+BQDg6DWJRgA7Rc6IMYglcEEqZ - dBkN+AXGwdzOyXGUEdI2sOfuWIG26D2FzoVupEpC4woPPThDeFbHq3EcEvkj2KHHABQM4Y7TDLYC - hvyOcrHmUWjPyZtivtlOOwqUymqLUAV7S4kAfcfJie0zYKKRg0lcljyGjO5A/gZF9CRCFcQh22vY - Zx6CweQoF6N9Sbon0ByyM5TgUWGSRzVTl52ePsp4ccFl+5QIM4ey4Cwcz89OE4A/Y7nDf32pmLiP - 8iT8RqE03tRfVmdBdftIN3h5qV4JC/pPtGa+mhSb0+QfAAAA//8DAHnlutXGAgAA - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 8231f47e9a3c02e9-GRU - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Thu, 09 Nov 2023 00:31:53 GMT - Server: - - cloudflare - Transfer-Encoding: - - chunked - access-control-allow-origin: - - '*' - alt-svc: - - h3=":443"; ma=86400 - openai-model: - - gpt-4-0613 - openai-organization: - - clearbit-2 - openai-processing-ms: - - '3417' - openai-version: - - '2020-10-01' - strict-transport-security: - - max-age=15724800; includeSubDomains - x-ratelimit-limit-requests: - - '100' - x-ratelimit-limit-tokens: - - '300000' - x-ratelimit-remaining-requests: - - '99' - x-ratelimit-remaining-tokens: - - '298582' - x-ratelimit-reset-requests: - - 600ms - x-ratelimit-reset-tokens: - - 283ms - x-request-id: - - d0b815b8d1256928deb92416335a3f4e - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"role": "user", "content": "You are an AI assistant helping - a human keep track of facts about relevant people, places, and concepts in their - life. Update the summary of the provided entity in the \"Entity\" section based - on the last line of your conversation with the human. If you are writing the - summary for the first time, return a single sentence.\nThe update should only - include facts that are relayed in the last line of conversation about the provided - entity, and should only contain facts about the provided entity.\n\nIf there - is no new information about the provided entity or the information is not worth - noting (not an important or relevant fact to remember long-term), return the - existing summary unchanged.\n\nFull conversation history (for context):\nHuman: - Write a 1 amazing paragraph highlight for each idea that showcases how good - an article about this topic could be. Return the list of ideas with their paragraph - and your notes.\n\nThis is the context you are working with:\n1. AI in Healthcare: - This topic is unique as it merges two critical sectors, technology and health. - We can explore how AI is improving diagnosis, treatment and patient care. This - topic is interesting because it has direct implications on human life and well-being.\n\n2. - Ethical Implications of AI: This topic is unique because it deals with the moral - and ethical dilemmas posed by AI. The interest lies in the balance between technological - advancement and ethical considerations.\n\n3. AI in Climate Change: The uniqueness - of this topic lies in how AI can be used to combat one of the most pressing - global issues - climate change. It''s interesting due to its potential in predicting - and managing climate change consequences.\n\n4. AI and Art: This is unique because - it explores the intersection of creativity and technology. It''s interesting - as it challenges the traditional idea that art is a purely human endeavor.\n\n5. - The Future of AI Agents: This topic is unique as it can explore the potential - future roles and impacts of AI agents on various aspects of our lives and industries. - It''s interesting because it involves speculation and prediction, sparking curiosity - about what the future may hold.\nAI: 1. AI in Healthcare: Dive into an exploratory - journey where silicon meets stethoscope, unraveling how Artificial Intelligence - is revolutionizing the healthcare industry. From early diagnosis of life-threatening - diseases to personalized treatment plans, AI is not just an assistant; it''s - becoming a lifesaver. Imagine a world where technology doesn''t just assist - doctors but empowers patients, offering them more control over their health - and well-being.\n\n2. Ethical Implications of AI: Unearth the moral minefield - that AI has become in this thought-provoking piece. As AI''s capabilities grow, - so do the ethical dilemmas. Should machines make life or death decisions? Can - an algorithm be biased? Who bears responsibility for AI-induced outcomes? Join - us as we navigate these murky waters, balancing the scales of technological - advancement and ethical responsibility.\n\n3. AI in Climate Change: Witness - how AI is becoming an indispensable ally in the fight against climate change. - From forecasting weather patterns and predicting natural disasters to optimizing - energy use and promoting sustainable practices, AI is proving to be a game-changer. - Explore how this nascent technology can help us steer towards a more sustainable - future.\n\n4. AI and Art: Embark on a fascinating exploration of where creativity - meets code. Can a machine create a masterpiece? How does AI challenge our traditional - notions of art? Delve into the world of AI-generated art, where algorithms are - the artists and pixels are the palette, pushing the boundaries of what we consider - \"art\".\n\n5. The Future of AI Agents: Step into the realm of speculation and - prediction, where we explore the potential future of AI agents. How will they - shape industries, influence our daily lives, and even redefine our understanding - of \"intelligence\"? Engage in a lively discourse around the possibilities and - perils that the future of AI agents might hold.\n\nEntity to summarize:\nThe - Future of AI Agents\n\nExisting summary of The Future of AI Agents:\n\n\nLast - line of conversation:\nHuman: Write a 1 amazing paragraph highlight for each - idea that showcases how good an article about this topic could be. Return the - list of ideas with their paragraph and your notes.\n\nThis is the context you - are working with:\n1. AI in Healthcare: This topic is unique as it merges two - critical sectors, technology and health. We can explore how AI is improving - diagnosis, treatment and patient care. This topic is interesting because it - has direct implications on human life and well-being.\n\n2. Ethical Implications - of AI: This topic is unique because it deals with the moral and ethical dilemmas - posed by AI. The interest lies in the balance between technological advancement - and ethical considerations.\n\n3. AI in Climate Change: The uniqueness of this - topic lies in how AI can be used to combat one of the most pressing global issues - - climate change. It''s interesting due to its potential in predicting and managing - climate change consequences.\n\n4. AI and Art: This is unique because it explores - the intersection of creativity and technology. It''s interesting as it challenges - the traditional idea that art is a purely human endeavor.\n\n5. The Future of - AI Agents: This topic is unique as it can explore the potential future roles - and impacts of AI agents on various aspects of our lives and industries. It''s - interesting because it involves speculation and prediction, sparking curiosity - about what the future may hold.\nUpdated summary:"}], "model": "gpt-4", "max_tokens": - null, "stream": false, "n": 1, "temperature": 0.7}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Authorization: - - Bearer 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 - Connection: - - keep-alive - Content-Length: - - '5809' - Content-Type: - - application/json - Cookie: - - __cf_bm=omt5hOnsQkeg7bY0srmDk9.plAPmA8M4A2avjnRJqnc-1699489854-0-AT3mgzRgrYaYWpOG/jTYc9vzQHoiqYltUoBg0LPYVxsbN/4GrMkFITZSN+42iHF8q9RV/7KDN7ZZEGmps+YZtus= - User-Agent: - - OpenAI/v1 PythonBindings/0.28.1 - X-OpenAI-Client-User-Agent: - - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": - "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", - "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 - PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA1SSQW/bMAyF7/kVhM5JEDdZm+TWFSvQw4BhK3bYMBSMzMRcbFETqbRFkf8+yHGa - 7WJAenwfn0i/jQAc124NzjdovovtZPkQ7n8svuf5jexvVnfPn780H3Gz+GTyTb+6cXHI5jd5O7um - XrrYkrGEk+wToVGhVter1WK5WlXzXuikprbYdtEmi8nsupoPjkbYk7o1/BwBALz135It1PTi1jAb - n286UsUdufV7EYBL0pYbh6qshsHc+CJ6CUahj/vYENxny4lAtnD7ALc7CqbACgg58J9MYBLZgzVo - QC+xlUQK1hBEKRTGFrYnQmmqgKEG7iJ604GJJ6YEOGBiyQqokQZdcoKWD2djqLNaYtIpPDasQ3Pu - SzkYJVKDuk8FbAoFlFs0PlAPiIlq9v0xYEk1Bo2Y9hx24HNiUbZXwI1kg+fypPKSIX+Hr9BIW0/d - MKvj+5C3HFibp0SoEsrg1CSeyo4jgF/90vJ/e3AxSRftyWRPoWyymi2vTkB3+UEu8odqEE0M239s - 1Xw+Km2Oo78AAAD//wMA6XTgcp4CAAA= - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 8231f4957ff802e9-GRU - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Thu, 09 Nov 2023 00:31:55 GMT - Server: - - cloudflare - Transfer-Encoding: - - chunked - access-control-allow-origin: - - '*' - alt-svc: - - h3=":443"; ma=86400 - openai-model: - - gpt-4-0613 - openai-organization: - - clearbit-2 - openai-processing-ms: - - '2400' - openai-version: - - '2020-10-01' - strict-transport-security: - - max-age=15724800; includeSubDomains - x-ratelimit-limit-requests: - - '100' - x-ratelimit-limit-tokens: - - '300000' - x-ratelimit-remaining-requests: - - '99' - x-ratelimit-remaining-tokens: - - '298575' - x-ratelimit-reset-requests: - - 600ms - x-ratelimit-reset-tokens: - - 284ms - x-request-id: - - bab5b80f4038c3229f7d7f26750ff52e + - 7351da9765d96802700d9758acf9cf00 status: code: 200 message: OK @@ -1515,47 +348,37 @@ interactions: OF EXAMPLE\n\nCurrent summary:\n\n\nNew lines of conversation:\nHuman: Write a 1 amazing paragraph highlight for each idea that showcases how good an article about this topic could be. Return the list of ideas with their paragraph and - your notes.\n\nThis is the context you are working with:\n1. AI in Healthcare: - This topic is unique as it merges two critical sectors, technology and health. - We can explore how AI is improving diagnosis, treatment and patient care. This - topic is interesting because it has direct implications on human life and well-being.\n\n2. - Ethical Implications of AI: This topic is unique because it deals with the moral - and ethical dilemmas posed by AI. The interest lies in the balance between technological - advancement and ethical considerations.\n\n3. AI in Climate Change: The uniqueness - of this topic lies in how AI can be used to combat one of the most pressing - global issues - climate change. It''s interesting due to its potential in predicting - and managing climate change consequences.\n\n4. AI and Art: This is unique because - it explores the intersection of creativity and technology. It''s interesting - as it challenges the traditional idea that art is a purely human endeavor.\n\n5. - The Future of AI Agents: This topic is unique as it can explore the potential - future roles and impacts of AI agents on various aspects of our lives and industries. - It''s interesting because it involves speculation and prediction, sparking curiosity - about what the future may hold.\nAI: 1. AI in Healthcare: Dive into an exploratory - journey where silicon meets stethoscope, unraveling how Artificial Intelligence - is revolutionizing the healthcare industry. From early diagnosis of life-threatening - diseases to personalized treatment plans, AI is not just an assistant; it''s - becoming a lifesaver. Imagine a world where technology doesn''t just assist - doctors but empowers patients, offering them more control over their health - and well-being.\n\n2. Ethical Implications of AI: Unearth the moral minefield - that AI has become in this thought-provoking piece. As AI''s capabilities grow, - so do the ethical dilemmas. Should machines make life or death decisions? Can - an algorithm be biased? Who bears responsibility for AI-induced outcomes? Join - us as we navigate these murky waters, balancing the scales of technological - advancement and ethical responsibility.\n\n3. AI in Climate Change: Witness - how AI is becoming an indispensable ally in the fight against climate change. - From forecasting weather patterns and predicting natural disasters to optimizing - energy use and promoting sustainable practices, AI is proving to be a game-changer. - Explore how this nascent technology can help us steer towards a more sustainable - future.\n\n4. AI and Art: Embark on a fascinating exploration of where creativity - meets code. Can a machine create a masterpiece? How does AI challenge our traditional - notions of art? Delve into the world of AI-generated art, where algorithms are - the artists and pixels are the palette, pushing the boundaries of what we consider - \"art\".\n\n5. The Future of AI Agents: Step into the realm of speculation and - prediction, where we explore the potential future of AI agents. How will they - shape industries, influence our daily lives, and even redefine our understanding - of \"intelligence\"? Engage in a lively discourse around the possibilities and - perils that the future of AI agents might hold.\n\nNew summary:"}], "model": - "gpt-4", "max_tokens": null, "stream": false, "n": 1, "temperature": 0.7}' + your notes.\n\nThis is the context you are working with:\nHere are five unique + and interesting ideas for articles: AI and Ethics, the Role of AI in Climate + Change, AI in Healthcare, the Future of AI and Work, and AI in Space Exploration. + These topics are unique and interesting because they explore the intersections + of AI with morality, climate change, healthcare, work, and space exploration + - all critical issues in today''s world.\nAI: 1. AI and Ethics: In a world that + is increasingly being dominated by Artificial Intelligence, the question of + ethics is ever more important. This article will delve into the complex intersection + of AI and ethics, exploring how the decisions made by AI can impact society. + From privacy concerns to the accountability of AI decisions, this piece will + provide readers with a comprehensive understanding of the ethical dilemmas posed + by AI.\n\n2. The Role of AI in Climate Change: Climate change is the defining + issue of our time. This article will examine how AI is playing a pivotal role + in combating this global challenge. From predicting climate patterns to optimizing + renewable energy use, the piece will highlight how AI is not just a part of + the problem, but also a crucial part of the solution.\n\n3. AI in Healthcare: + The fusion of AI and healthcare holds a transformative potential. This article + will explore how AI is revolutionizing healthcare, from improving diagnosis + and treatment to enhancing patient care and hospital management. It will show + how AI is not just improving healthcare outcomes but also driving a more efficient + and patient-centered healthcare system.\n\n4. The Future of AI and Work: The + rise of AI has sparked a lively debate on its impact on jobs and the future + of work. This article will explore this topic in-depth, examining both the potential + job losses and the new opportunities created by AI. It will provide a balanced + and insightful analysis of how AI is reshaping the world of work.\n\n5. AI in + Space Exploration: The final frontier is not beyond the reach of AI. This article + will spotlight the role of AI in space exploration, from analyzing vast amounts + of astronomical data to autonomous spacecraft navigating the vast expanse of + space. The piece will highlight how AI is not just aiding but also accelerating + our quest to explore the universe.\n\nNew summary:"}], "model": "gpt-4", "max_tokens": + null, "stream": false, "n": 1, "temperature": 0.7}' headers: Accept: - '*/*' @@ -1566,11 +389,11 @@ interactions: Connection: - keep-alive Content-Length: - - '4219' + - '3356' Content-Type: - application/json Cookie: - - __cf_bm=omt5hOnsQkeg7bY0srmDk9.plAPmA8M4A2avjnRJqnc-1699489854-0-AT3mgzRgrYaYWpOG/jTYc9vzQHoiqYltUoBg0LPYVxsbN/4GrMkFITZSN+42iHF8q9RV/7KDN7ZZEGmps+YZtus= + - __cf_bm=gkc3fZTvDPQQcvL6AsOb5ZabV_BJygyXmsJKgi0mtCU-1699493210-0-AWKdSYb5U/QGRawJ4wWK6DvEWiy6+l7vXFmP3RnnSvAVR+kc3AFmDrcnMowxNcJdOH8DqFD/H8jQAb6ZfMNSE3E= User-Agent: - OpenAI/v1 PythonBindings/0.28.1 X-OpenAI-Client-User-Agent: @@ -1583,21 +406,23 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA1ySQW8TQQyF7/kV1ly4pFUDpU1yy6VSxAEJigAhVDmzzo7p7HgYe9OGqv8dzW6a - UC6rle339rP3PU0AHDduCc4HNN/leDZfpxv/Ley+fn+4334haT9syvvPnz726G/2bloVsvlF3l5U - 5166HMlY0tj2hdCous6uFovL+WIxuxoanTQUq6zNdnZ5dnE1e3dQBGFP6pbwYwIA8DQ8K1tq6NEt - 4WL6UulIFVtyy+MQgCsSa8WhKqthMjc9Nb0kozTg3gaC0HeYAPVewQLBag0m8FDYCBDqKhQjpxYy - FmwL5gBbKUDoA8gWtrwj6BP/7gm4IVTAjfQGq/UUOPnYN1W7WgMnCITRgsdCUyAL7DECdzmyx3os - rX5VN077yB0agQ+YWhqqmBrAYtPhpcJue+sLjTrAlpLpOdyOW0hvkRMpBHkYLBUK7ST29Vv8p2K9 - AnrMUQqNR3ihazhS16FCFqUGNvuBr2H1vSoprNZvFOqxB2DpNmjV93/0huKOFDiZDPacjIqSryQV - fggI79j242bkQ5Io7b7aHhfWTL6PaKQg6d/1K4AOI9xl9KavD+IOv/75mJktJ9ZwVwhVUs2BmuRx - 7HkC8HPIYP8qVi4X6bLdmdxTqsG8vn47+rlT3E/dxfzQNDGMp/r8+mJSP/I8+QsAAP//AwD/WK+3 - awMAAA== + H4sIAAAAAAAAA3xUwW7bSAy9+ysIXfbiGEmbOhvfDG+KGii2wG6BFlgUBT2iNGxGw+mQcpIt8u/F + jBy7AdpeBGkeH/nmkdS3GUDDbbOCxnk0N6Rw9udWrt69c+dpc7O+7y7dX+/Dx9D9zeI3V5tmXhiy + +0LOnlgLJ0MKZCxxgl0mNCpZL5bX15fXL1+8Oq/AIC2FQuuTnV2enS8vXh4YXtiRNiv4bwYA8K0+ + i7bY0n2zgsqvJwOpYk/N6hgE0GQJ5aRBVVbDaM38BDqJRrHKfe8J/DhghJRlzy0pdLwnGCN/HQkw + tsDRKJMaxx4wG7tAwC2hrmC9rRE35tnpHMwT/COBQLoCcYRN4AGNYOMx9jQ/nL4hDOYdZpo4r0cb + 8xOrJPwg+XZe3ybCvwkdwc19CpKx2LqAIny9LfQIPUXKaKSA4DAZ77GqTZixz5g8dJKB0HkwSewW + 8Fryz8R34kYFVpBYv6lgGKDlQMOACkmUWtg9wHp7lKBj35OaAsajPwf+78yAOw4BPPc+cO8N1ts/ + FFweHWMoyq1QnAy76S59kB0GcIccrDqSHjU8M/WoolZoWd2oCl7uaqRCpr2EsdjI/5fU/sTcPQAP + dRJiDy1jH0W5mFMGeKBoU1cSGlM0KJxJw09b+FzIYcAAYYcBo6MWMGJ40OJ3N92fh4TOin1fZKc1 + 0Z3k2wW8RbXwMHXpFzPxvJomsR+MLftQWLVivTWqZYkyTA1Gw1ot4p77yXEtBVzGzhbNYXcej0vX + cWT1nzOhSiyLpCZpCnucAXyqSzw+28smZRmSfTa5pVg2e3l+PeVrTv+LE3rx6uqAmhiGE3C1XM5K + lcfZdwAAAP//AwCcDWu7rQQAAA== headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8231f4a6ef2202e9-GRU + - 823246112af700fe-GRU Cache-Control: - no-cache, must-revalidate Connection: @@ -1607,7 +432,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 09 Nov 2023 00:32:01 GMT + - Thu, 09 Nov 2023 01:27:37 GMT Server: - cloudflare Transfer-Encoding: @@ -1621,7 +446,7 @@ interactions: openai-organization: - clearbit-2 openai-processing-ms: - - '5199' + - '6154' openai-version: - '2020-10-01' strict-transport-security: @@ -1633,13 +458,13 @@ interactions: x-ratelimit-remaining-requests: - '99' x-ratelimit-remaining-tokens: - - '298970' + - '299184' x-ratelimit-reset-requests: - 600ms x-ratelimit-reset-tokens: - - 205ms + - 163ms x-request-id: - - b7423e17a12737e42f614d46bda5aefd + - 73d455e4bb5dda535fe3363b0147fbc3 status: code: 200 message: OK diff --git a/tests/cassettes/test_crew_with_delegating_agents.yaml b/tests/cassettes/test_crew_with_delegating_agents.yaml new file mode 100644 index 000000000..3575ff6b2 --- /dev/null +++ b/tests/cassettes/test_crew_with_delegating_agents.yaml @@ -0,0 +1,579 @@ +interactions: +- request: + body: '{"messages": [{"role": "user", "content": "You are CEO.\nYou''re an long + time CEO of a content creation agency with a Senior Writer on the team. You''re + now working on a new project and want to make sure the content produced is amazing.\n\nYour + personal goal is: Make sure the writers in your company produce amazing content.\nTOOLS:\n------\n\nYou + have access to the following tools:\n\nDelegate Work to Co-Worker: Useful to + delegate a specific task to one of the \n\t\t\t\tfollowing co-workers: [CEO, + Senior Writer].\n\t\t\t\tThe input to this tool should be a pipe (|) separated + text of length\n\t\t\t\tthree, representing the role you want to delegate it + to, the task and \n\t\t\t\tinformation necessary. For example, `coworker|task|information`.\n\nAsk + Question to Co-Worker: Useful to ask a question, opinion or take from on\n\t\t\t\tof + the following co-workers: [CEO, Senior Writer]. \n\t\t\t\tThe input to this + tool should be a pipe (|) separated text of length \n\t\t\t\tthree, representing + the role you want to ask it to, the question and \n\t\t\t\tinformation necessary. + For example, `coworker|question|information`.\n\n\nTo use a tool, please use + the following format:\n\n```\nThought: Do I need to use a tool? Yes\nAction: + the action to take, should be one of [Delegate Work to Co-Worker, Ask Question + to Co-Worker]\nAction Input: the input to the action\nObservation: the result + of the action\n```\n\nWhen you have a response for your task, or if you do not + need to use a tool, you MUST use the format:\n\n```\nThought: Do I need to use + a tool? No\nFinal Answer: [your response here]\n```\n\t\tThis is the summary + of your work so far:\n \nBegin! This is VERY important to you, your job + depends on it!\n\nCurrent Task: Produce and amazing 1 paragraph draft of an + article about AI Agents.\n\n"}], "model": "gpt-4", "max_tokens": null, "stream": + false, "n": 1, "temperature": 0.7, "stop": ["\nObservation"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer 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 + Connection: + - keep-alive + Content-Length: + - '1925' + Content-Type: + - application/json + User-Agent: + - OpenAI/v1 PythonBindings/0.28.1 + X-OpenAI-Client-User-Agent: + - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": + "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", + "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 + PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA1RS22obMRB991cc9GwHO3aNvS/FaSB1aaEQlxCaEuTV7ErNrmaRZr01if+9yJfY + eRFizmVGZ/TaA5QzKoPKrZa8bqrB7NtqaKOnu5vJj9HXrvt+f/Prbvu4GZtlYVQ/KXj9l3I5qa5y + rpuKxLE/wHkgLZRcR9P5fPppOBnP90DNhqokKxsZTAbD6Wh8VFh2OUWV4XcPAF73Z5rNG/qnMgz7 + p0pNMeqSVPZOAlTgKlWUjtFF0V5U/wzm7IX8ftyV5ba0kuGWsYQnMhBGGwkawlx9xiPFJ7/I02My + 3FJFpRbCA4eXxPzCg3SlcOJg6ZtWMtyTdxzwEJxQePsZ2LR5Mh2h0UGXQTcWJuhCwAW0hw7i8oqg + 19wKFkssSvIS31bWxQtJtNxWBmsC+VKXzpd9OF9wqLW4DUF7gybwxhmCWEIgbSigc2KhsQ6OCvCG + wsZRlzp3Vl90gw4Hi85uk3y7L7i64ZAyvMKTV8cYd+/5F867aJ8D6cg+ZRqFmwNt1wP+7PfZfliR + agLXjTwLv5BPS56MJgc/df46Z3Q6O4LCoqsL1ey6l5rsev8BAAD//wMAXDMzwrcCAAA= + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 824143ad1aac0108-GRU + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Fri, 10 Nov 2023 21:07:23 GMT + Server: + - cloudflare + Set-Cookie: + - __cf_bm=BJCIwITJ38jRui6K.7wMbft5s6X08Igv1apUn36eQig-1699650443-0-AedvzmUPJryFUloxAEAX1O07DWDpjuQCqrS9A+Do71R+4EmtK2da6BZ9gQ+2H2Ktiu+zu4K9Svwd0VLOLW+vUCk=; + path=/; expires=Fri, 10-Nov-23 21:37:23 GMT; domain=.api.openai.com; HttpOnly; + Secure; SameSite=None + Transfer-Encoding: + - chunked + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400 + openai-model: + - gpt-4-0613 + openai-organization: + - clearbit-2 + openai-processing-ms: + - '3672' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '10000' + x-ratelimit-limit-tokens: + - '300000' + x-ratelimit-remaining-requests: + - '9999' + x-ratelimit-remaining-tokens: + - '299560' + x-ratelimit-reset-requests: + - 6ms + x-ratelimit-reset-tokens: + - 88ms + x-request-id: + - baabf544ff76af09054a90d10db8b702 + status: + code: 200 + message: OK +- request: + body: '{"messages": [{"role": "user", "content": "You are Senior Writer.\nYou''re + a senior writr, specialized in technology, software engineering, AI and startups. + You work as a freelancer and are now working on writing content for a new customer.\n\nYour + personal goal is: Write the best content about AI and AI agents.\nTOOLS:\n------\n\nYou + have access to the following tools:\n\n\n\nTo use a tool, please use the following + format:\n\n```\nThought: Do I need to use a tool? Yes\nAction: the action to + take, should be one of []\nAction Input: the input to the action\nObservation: + the result of the action\n```\n\nWhen you have a response for your task, or + if you do not need to use a tool, you MUST use the format:\n\n```\nThought: + Do I need to use a tool? No\nFinal Answer: [your response here]\n```\n\t\tThis + is the summary of your work so far:\n \nBegin! This is VERY important + to you, your job depends on it!\n\nCurrent Task: Produce a 1 paragraph draft + of an article about AI Agents\n\nThis is the context you are working with:\nThis + paragraph should be engaging, informative and provide the reader with a brief + overview of what AI Agents are and why they are important. \n\n\n"}], "model": + "gpt-4", "max_tokens": null, "stream": false, "n": 1, "temperature": 0.7, "stop": + ["\nObservation"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer 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 + Connection: + - keep-alive + Content-Length: + - '1298' + Content-Type: + - application/json + Cookie: + - __cf_bm=BJCIwITJ38jRui6K.7wMbft5s6X08Igv1apUn36eQig-1699650443-0-AedvzmUPJryFUloxAEAX1O07DWDpjuQCqrS9A+Do71R+4EmtK2da6BZ9gQ+2H2Ktiu+zu4K9Svwd0VLOLW+vUCk= + User-Agent: + - OpenAI/v1 PythonBindings/0.28.1 + X-OpenAI-Client-User-Agent: + - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": + "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", + "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 + PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA1SUUWscRwzH3+9TiH1qYc/YyeUa30txSUpdSiHFgUISgm5Wuyt7RtqONOdcgr97 + md1z7LwsizSSfpq/NN9WAA13zQ6aMKKHNMX16z9vzuNvx7fltn93mzfHt/907//4983rv/7r3+2b + tkbo/paCP0adBU1TJGeVxR0yoVPNerG9vNy+Ot9sXs6OpB3FGjZMvt6sz7cXL08Ro3Iga3bwYQUA + 8G3+Vjbp6Euzg/P20ZLIDAdqdt8PATRZY7U0aMbmKN60T86g4iQz7s2oZRh9B28UrkGIOnCFYgQI + rhp/hb/1o3yU31kwwpXYPeUdVMtVdu45MEa4FqcYeSAJBD9dXf8MOJC4teAjQSjuLMOauoHAKYyi + UYcj+IgObJDJRpxYhvl0xwM7RogonQWcqAXMBKa939cfEmdnsiUci6to0mLxCBPlXnMCR7uz2gaG + kelAYBOFygqDYrQzuBmpNnhinLIOGVNaWk94R9BRYGMVgz0adaBS2TgDyYGzSiLxhWtGznyo+L3m + QLCnkaUDhFSis5eOQHtgET1gnQhroc+awCj268fQgHkmniibCkb+Sh1kCpoSSbfEAQvQejblQHMX + x5lhKjbWJHst0mGul8MCB8ysxcAouGZrIbHzgFUKGEtCAcpZcwssdTyt2qmvipKEYwsoleCgsdTq + /HXGLOaaKAN9mSjXgwsHcJo0O1b9tYer69PlVnmLdJQtaKYO9sfTPeKeI/txFqnDyedqkTBLC8VG + yrUaCyAI3QNlrGmfzc79SJkgVYGFDAIKJE4cFmztnQSs5AnN2lO3/GxIz+D9TOUoXa30AzDesSxa + PGK4zjr3xUuu83j6O1E8w+J63Zgi1bIsXtj5QAsUmld9WIZ4BEuY/aw5reTD913uWdjGz1UPlbqf + 5jotxx5WAJ/mt6H8sO7NlDVN/tn1jqQ+GC9eXS75mqdn6Ml7sf3l5HV1jE+OzYvtqlZ5WP0PAAD/ + /wMAabm4aQQFAAA= + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 824143c72aed0108-GRU + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Fri, 10 Nov 2023 21:07:33 GMT + Server: + - cloudflare + Transfer-Encoding: + - chunked + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400 + openai-model: + - gpt-4-0613 + openai-organization: + - clearbit-2 + openai-processing-ms: + - '9641' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '10000' + x-ratelimit-limit-tokens: + - '300000' + x-ratelimit-remaining-requests: + - '9999' + x-ratelimit-remaining-tokens: + - '299706' + x-ratelimit-reset-requests: + - 6ms + x-ratelimit-reset-tokens: + - 58ms + x-request-id: + - 442f5966ae613d11ca8f84b7bc0515fb + status: + code: 200 + message: OK +- request: + body: '{"messages": [{"role": "user", "content": "Progressively summarize the + lines of conversation provided, adding onto the previous summary returning a + new summary.\n\nEXAMPLE\nCurrent summary:\nThe human asks what the AI thinks + of artificial intelligence. The AI thinks artificial intelligence is a force + for good.\n\nNew lines of conversation:\nHuman: Why do you think artificial + intelligence is a force for good?\nAI: Because artificial intelligence will + help humans reach their full potential.\n\nNew summary:\nThe human asks what + the AI thinks of artificial intelligence. The AI thinks artificial intelligence + is a force for good because it will help humans reach their full potential.\nEND + OF EXAMPLE\n\nCurrent summary:\n\n\nNew lines of conversation:\nHuman: Produce + a 1 paragraph draft of an article about AI Agents\n\nThis is the context you + are working with:\nThis paragraph should be engaging, informative and provide + the reader with a brief overview of what AI Agents are and why they are important. + \n\nAI: Artificial Intelligence (AI) agents, the cutting-edge technology that + is reshaping the digital landscape, are software entities that autonomously + perform tasks to achieve specific goals. These agents, programmed to make decisions + based on their environment, are the driving force behind a multitude of innovations, + from self-driving cars to personalized recommendations in e-commerce. They are + pushing boundaries in various sectors, mitigating human error, increasing efficiency, + and revolutionizing customer experience. The importance of AI agents is underscored + by their ability to adapt and learn, ushering in a new era of technology where + machines can mimic, and often surpass, human intelligence. Understanding AI + agents is akin to peering into the future, a future where technology is seamless, + intuitive, and astoundingly smart.\n\nNew summary:"}], "model": "gpt-4", "max_tokens": + null, "stream": false, "n": 1, "temperature": 0.7}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer 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 + Connection: + - keep-alive + Content-Length: + - '1955' + Content-Type: + - application/json + Cookie: + - __cf_bm=BJCIwITJ38jRui6K.7wMbft5s6X08Igv1apUn36eQig-1699650443-0-AedvzmUPJryFUloxAEAX1O07DWDpjuQCqrS9A+Do71R+4EmtK2da6BZ9gQ+2H2Ktiu+zu4K9Svwd0VLOLW+vUCk= + User-Agent: + - OpenAI/v1 PythonBindings/0.28.1 + X-OpenAI-Client-User-Agent: + - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": + "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", + "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 + PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA1RTwW7bMAy95ysIn50iRdKsza0DdugOOwzdZcNQMDJtc5FEQaTdZkX/fZCdNN3F + MPT4nh4fqdcFQMVNtYPK9WguJL+8/fq4Gtuf6XZst1++9dLzd/2xaTbPQT/3VV0Ysv9Dzs6sKych + eTKWOMMuExoV1evt3d32ZrW5WU9AkIZ8oXXJlpvlanu9PjF6YUda7eDXAgDgdfoWb7Ghl2oHq/p8 + EkgVO6p270UAVRZfTipUZTWMVtUX0Ek0ipPdx56gHwJGQD0oWE9w/wAmkLI0gyNAaDK2BtJCKcrG + zhPgXgYrlfcdRSs8NGAFih12HDvA2ADHVnJA45Gu4HFWbkhd5j3pBzIqqLT2jJmAorExnRRxMIkS + ZFB/hES56IHNTgXQ9UwjgSZy3LKDTtBrDU3msXjgGGXEMgUFzwcCJd8uz6jDrJPNRFkloue/1AAt + nYRA2RFkmn5jM0tMLRyBYxmmElDbsmOK7lhDpimrOUjKWXI9JxBSlpHADWoSKAO9JMqFNCfCuZRI + NoyOwJe+OZYhcAbcs2c7lkY9YY6TIDaYrIbAgd3hnLO0RhF0yKlMO3YnHxyNvOfu/bYSuQ5dR3qe + 2BAbymU9mkK7fwCcJ8KnwDrPIemcZQkc2sGGTPDcUyYwcn0UL92xEJQweFKtS+3AZeqnEEpiDe/9 + 8YMlu6pO+/j2vsgtR9b+qcQrsSynmqS57G0B8Ht6GMN/u16lLCHZk8mBYnkt6/WnWa+6vMELer26 + O6Emhv4CbDbbRbnlbfEPAAD//wMACzsmGwEEAAA= + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 824144053bcd0108-GRU + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Fri, 10 Nov 2023 21:07:39 GMT + Server: + - cloudflare + Transfer-Encoding: + - chunked + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400 + openai-model: + - gpt-4-0613 + openai-organization: + - clearbit-2 + openai-processing-ms: + - '5612' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '10000' + x-ratelimit-limit-tokens: + - '300000' + x-ratelimit-remaining-requests: + - '9999' + x-ratelimit-remaining-tokens: + - '299533' + x-ratelimit-reset-requests: + - 6ms + x-ratelimit-reset-tokens: + - 93ms + x-request-id: + - 07db6976c904d2b23e9d0702ba3bb933 + status: + code: 200 + message: OK +- request: + body: '{"messages": [{"role": "user", "content": "You are CEO.\nYou''re an long + time CEO of a content creation agency with a Senior Writer on the team. You''re + now working on a new project and want to make sure the content produced is amazing.\n\nYour + personal goal is: Make sure the writers in your company produce amazing content.\nTOOLS:\n------\n\nYou + have access to the following tools:\n\nDelegate Work to Co-Worker: Useful to + delegate a specific task to one of the \n\t\t\t\tfollowing co-workers: [CEO, + Senior Writer].\n\t\t\t\tThe input to this tool should be a pipe (|) separated + text of length\n\t\t\t\tthree, representing the role you want to delegate it + to, the task and \n\t\t\t\tinformation necessary. For example, `coworker|task|information`.\n\nAsk + Question to Co-Worker: Useful to ask a question, opinion or take from on\n\t\t\t\tof + the following co-workers: [CEO, Senior Writer]. \n\t\t\t\tThe input to this + tool should be a pipe (|) separated text of length \n\t\t\t\tthree, representing + the role you want to ask it to, the question and \n\t\t\t\tinformation necessary. + For example, `coworker|question|information`.\n\n\nTo use a tool, please use + the following format:\n\n```\nThought: Do I need to use a tool? Yes\nAction: + the action to take, should be one of [Delegate Work to Co-Worker, Ask Question + to Co-Worker]\nAction Input: the input to the action\nObservation: the result + of the action\n```\n\nWhen you have a response for your task, or if you do not + need to use a tool, you MUST use the format:\n\n```\nThought: Do I need to use + a tool? No\nFinal Answer: [your response here]\n```\n\t\tThis is the summary + of your work so far:\n \nBegin! This is VERY important to you, your job + depends on it!\n\nCurrent Task: Produce and amazing 1 paragraph draft of an + article about AI Agents.\nThought: Do I need to use a tool? Yes\nAction: Delegate + Work to Co-Worker\nAction Input: Senior Writer|Produce a 1 paragraph draft of + an article about AI Agents|This paragraph should be engaging, informative and + provide the reader with a brief overview of what AI Agents are and why they + are important. \n\nObservation: Artificial Intelligence (AI) agents, the cutting-edge + technology that is reshaping the digital landscape, are software entities that + autonomously perform tasks to achieve specific goals. These agents, programmed + to make decisions based on their environment, are the driving force behind a + multitude of innovations, from self-driving cars to personalized recommendations + in e-commerce. They are pushing boundaries in various sectors, mitigating human + error, increasing efficiency, and revolutionizing customer experience. The importance + of AI agents is underscored by their ability to adapt and learn, ushering in + a new era of technology where machines can mimic, and often surpass, human intelligence. + Understanding AI agents is akin to peering into the future, a future where technology + is seamless, intuitive, and astoundingly smart.\nThought: \n"}], "model": "gpt-4", + "max_tokens": null, "stream": false, "n": 1, "temperature": 0.7, "stop": ["\nObservation"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer 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 + Connection: + - keep-alive + Content-Length: + - '3091' + Content-Type: + - application/json + Cookie: + - __cf_bm=BJCIwITJ38jRui6K.7wMbft5s6X08Igv1apUn36eQig-1699650443-0-AedvzmUPJryFUloxAEAX1O07DWDpjuQCqrS9A+Do71R+4EmtK2da6BZ9gQ+2H2Ktiu+zu4K9Svwd0VLOLW+vUCk= + User-Agent: + - OpenAI/v1 PythonBindings/0.28.1 + X-OpenAI-Client-User-Agent: + - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": + "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", + "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 + PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA1SUTW/cRgyG7/4VhE4poDW8iL1Z76VwUBTYHlIUSdtDXQTcESWxniEFDmedTeD/ + Xoy0jp2LMBh+PcOX4rcLgIa7ZgdNGNFDmuJq+9un9Xq/vQ3H8D4N7z5s9x83f9xc/371F+N109YI + PfxHwZ+jLoOmKZKzymIORuhUs643t7ebm6vrm9vZkLSjWMOGyVfXq6vN+u05YlQOlJsd/HMBAPBt + /lY26ehLs4Or9vkmUc44ULP77gTQmMZ602DOnB3Fm/bFGFScZMb9RWEPQtSBK5RMgOCq8Wf4oPfy + KwtGuJP8SLaDTyPBRxJWg7+NnQwm064E6gAFMOFXlgEmNBwMpxHwoMXhbg93A4nnHdw3d+bcc2CM + sBenGHkgCQRv7vY/Ac5uLfhIEIo7y7CibiBwCqNo1OEEPqIDZzDKI061XvXueGDHCBGlywEnagGN + IGvvj/VA4uxMeQnH4iqatOR4gomsV0vgmB9y7QGGkelIkCcKlRUGxZgv6+trd86Mk+lgmNLSt4QP + BB0FzqyS4YCZOlCpbGxAcmRTSSS+cM3IxseK36sFggONLB0gpBKdvXQE2gOL6BHrFOUWetMEmWK/ + eg4NaDPxRJZVMPJX6sAoaEok3RIHLECr+coCza84zQxTyWNNctAiHVptDgsc0VhLhkzB1XILiZ0H + rFLAWBIKkJlaCyx1pHO9p74qShJOLaBUgqPGUqvzPBChZNdEBvRlIquOCwdwmtQcq/7a1zlZmlvl + LdKR5aBGHRxO5z7igSP7aRapw8nnapHQpIWSR7JajQUQhB6BDGvaV7PzOJIRpCqwUIaAAokThwVb + eyeBXGzCnNvza/nVkF7CnzOVo3S10g/A+MCyaPGM4Trr3BcvVufxfDpTvMLi2m5MkWpZFi/sfKQF + CrNXfViGeIKc0PzyvmnOP/LT9w3Qs3AeP1dFVOpfnV2nxe3pAuDfeaOUH5ZEM5mmyT+7PpDUNbN5 + u13yNS/L68W6frc5W10d44thu76+qFWeLv4HAAD//wMA4FF0ljoFAAA= + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 82414429ed5c0108-GRU + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Fri, 10 Nov 2023 21:07:47 GMT + Server: + - cloudflare + Transfer-Encoding: + - chunked + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400 + openai-model: + - gpt-4-0613 + openai-organization: + - clearbit-2 + openai-processing-ms: + - '7913' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '10000' + x-ratelimit-limit-tokens: + - '300000' + x-ratelimit-remaining-requests: + - '9999' + x-ratelimit-remaining-tokens: + - '299270' + x-ratelimit-reset-requests: + - 6ms + x-ratelimit-reset-tokens: + - 146ms + x-request-id: + - 7f268488395030d8e4ecac89842bb40b + status: + code: 200 + message: OK +- request: + body: '{"messages": [{"role": "user", "content": "Progressively summarize the + lines of conversation provided, adding onto the previous summary returning a + new summary.\n\nEXAMPLE\nCurrent summary:\nThe human asks what the AI thinks + of artificial intelligence. The AI thinks artificial intelligence is a force + for good.\n\nNew lines of conversation:\nHuman: Why do you think artificial + intelligence is a force for good?\nAI: Because artificial intelligence will + help humans reach their full potential.\n\nNew summary:\nThe human asks what + the AI thinks of artificial intelligence. The AI thinks artificial intelligence + is a force for good because it will help humans reach their full potential.\nEND + OF EXAMPLE\n\nCurrent summary:\n\n\nNew lines of conversation:\nHuman: Produce + and amazing 1 paragraph draft of an article about AI Agents.\nAI: The Senior + Writer produced an amazing paragraph about AI Agents: \"Artificial Intelligence + (AI) agents, the cutting-edge technology that is reshaping the digital landscape, + are software entities that autonomously perform tasks to achieve specific goals. + These agents, programmed to make decisions based on their environment, are the + driving force behind a multitude of innovations, from self-driving cars to personalized + recommendations in e-commerce. They are pushing boundaries in various sectors, + mitigating human error, increasing efficiency, and revolutionizing customer + experience. The importance of AI agents is underscored by their ability to adapt + and learn, ushering in a new era of technology where machines can mimic, and + often surpass, human intelligence. Understanding AI agents is akin to peering + into the future, a future where technology is seamless, intuitive, and astoundingly + smart.\"\n\nNew summary:"}], "model": "gpt-4", "max_tokens": null, "stream": + false, "n": 1, "temperature": 0.7}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer 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 + Connection: + - keep-alive + Content-Length: + - '1844' + Content-Type: + - application/json + Cookie: + - __cf_bm=BJCIwITJ38jRui6K.7wMbft5s6X08Igv1apUn36eQig-1699650443-0-AedvzmUPJryFUloxAEAX1O07DWDpjuQCqrS9A+Do71R+4EmtK2da6BZ9gQ+2H2Ktiu+zu4K9Svwd0VLOLW+vUCk= + User-Agent: + - OpenAI/v1 PythonBindings/0.28.1 + X-OpenAI-Client-User-Agent: + - '{"bindings_version": "0.28.1", "httplib": "requests", "lang": "python", "lang_version": + "3.9.7", "platform": "macOS-10.16-x86_64-i386-64bit", "publisher": "openai", + "uname": "Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 + PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64"}' + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA1RSTU8bQQy951dYe15QIiCQ3Li0pb2iqh+qkDPj3XGZtUcz3kCK+O/V7AYiLnPw + 83t+Hr+XBUDDvtlC4wKaG1I8u/l6v9r8Su4uft/9CHL97fbT55tD6tKXnxtu2srQ3V9y9sY6dzqk + SMYqM+wyoVFVXa03m/XV8nJ9PQGDeoqV1ic7uzxbrlcXR0ZQdlSaLfxeAAC8TG/1Jp6emy0s27fK + QKVgT832vQmgyRprpcFSuBiKNe0JdCpGMtm9DwRhHFAAy2MBCwS3d2AKKasfHQGCCkHCjH3GFMBn + 7Ay0g0rJxi4S4E5Hq7zbnsTKOdzPMplKUvEFntgCIHgy5Ej+JNeCp+Iy71j6ysBJALBA0c6eMBOQ + GBtT9YYGOJqKDjqWeIBEudM8gM3eFdAFpj1BSeS4Ywe9Ypz9HKCKBe5D5D4Y+Tqkrusz7+v0TrMj + 2FFg8bDHzDoWYBHdYz1kaYGl3rHUZuo6dkziDi2geMi01zjWPv5XcTcW04Ey0HOiXBtp/hUekmZD + cVT/8LQxFxjFUy5OM3nYHao3zoA7jmyHaTmPyaZpkTBLC2XMqd5X+uMJWYxi5L6OAxYoOhA4LFTO + m+P1X99j07FwCQ91I5UahWKa5rbXBcCfKYbjh2Q1KeuQ7MH0kaRm82J1Nes1p8Sf0Jv1ETQ1jKf6 + 5XK1qENeF/8BAAD//wMAJ/XGCW4DAAA= + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 8241445d6f060108-GRU + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Fri, 10 Nov 2023 21:07:52 GMT + Server: + - cloudflare + Transfer-Encoding: + - chunked + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400 + openai-model: + - gpt-4-0613 + openai-organization: + - clearbit-2 + openai-processing-ms: + - '4637' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '10000' + x-ratelimit-limit-tokens: + - '300000' + x-ratelimit-remaining-requests: + - '9999' + x-ratelimit-remaining-tokens: + - '299560' + x-ratelimit-reset-requests: + - 6ms + x-ratelimit-reset-tokens: + - 88ms + x-request-id: + - 4e3e1ec5267366325f3110cbeff4febc + status: + code: 200 + message: OK +version: 1 diff --git a/tests/crew_test.py b/tests/crew_test.py index a39228414..0fb973de3 100644 --- a/tests/crew_test.py +++ b/tests/crew_test.py @@ -8,13 +8,15 @@ def test_crew_creation(): researcher = Agent( role="Researcher", goal="Make the best research and analysis on content about AI and AI agents", - backstory="You're an expert researcher, specialized in technology, software engineering, AI and startups. You work as a freelancer and is now working on doing research and analysis for a new customer." + backstory="You're an expert researcher, specialized in technology, software engineering, AI and startups. You work as a freelancer and is now working on doing research and analysis for a new customer.", + allow_delegation=False ) writer = Agent( - role="Senior Content Officer", + role="Senior Writer", goal="Write the best content about AI and AI agents.", - backstory="You're a senior content officer, specialized in technology, software engineering, AI and startups. You work as a freelancer and are now working on writing content for a new customer." + backstory="You're a senior writer, specialized in technology, software engineering, AI and startups. You work as a freelancer and are now working on writing content for a new customer.", + allow_delegation=False ) tasks = [ @@ -34,12 +36,43 @@ def test_crew_creation(): tasks=tasks, ) - assert crew.kickoff() == """1. AI in Healthcare: Dive into an exploratory journey where silicon meets stethoscope, unraveling how Artificial Intelligence is revolutionizing the healthcare industry. From early diagnosis of life-threatening diseases to personalized treatment plans, AI is not just an assistant; it's becoming a lifesaver. Imagine a world where technology doesn't just assist doctors but empowers patients, offering them more control over their health and well-being. + assert crew.kickoff() == """1. AI and Ethics: In a world that is increasingly being dominated by Artificial Intelligence, the question of ethics is ever more important. This article will delve into the complex intersection of AI and ethics, exploring how the decisions made by AI can impact society. From privacy concerns to the accountability of AI decisions, this piece will provide readers with a comprehensive understanding of the ethical dilemmas posed by AI. -2. Ethical Implications of AI: Unearth the moral minefield that AI has become in this thought-provoking piece. As AI's capabilities grow, so do the ethical dilemmas. Should machines make life or death decisions? Can an algorithm be biased? Who bears responsibility for AI-induced outcomes? Join us as we navigate these murky waters, balancing the scales of technological advancement and ethical responsibility. +2. The Role of AI in Climate Change: Climate change is the defining issue of our time. This article will examine how AI is playing a pivotal role in combating this global challenge. From predicting climate patterns to optimizing renewable energy use, the piece will highlight how AI is not just a part of the problem, but also a crucial part of the solution. -3. AI in Climate Change: Witness how AI is becoming an indispensable ally in the fight against climate change. From forecasting weather patterns and predicting natural disasters to optimizing energy use and promoting sustainable practices, AI is proving to be a game-changer. Explore how this nascent technology can help us steer towards a more sustainable future. +3. AI in Healthcare: The fusion of AI and healthcare holds a transformative potential. This article will explore how AI is revolutionizing healthcare, from improving diagnosis and treatment to enhancing patient care and hospital management. It will show how AI is not just improving healthcare outcomes but also driving a more efficient and patient-centered healthcare system. -4. AI and Art: Embark on a fascinating exploration of where creativity meets code. Can a machine create a masterpiece? How does AI challenge our traditional notions of art? Delve into the world of AI-generated art, where algorithms are the artists and pixels are the palette, pushing the boundaries of what we consider "art". +4. The Future of AI and Work: The rise of AI has sparked a lively debate on its impact on jobs and the future of work. This article will explore this topic in-depth, examining both the potential job losses and the new opportunities created by AI. It will provide a balanced and insightful analysis of how AI is reshaping the world of work. -5. The Future of AI Agents: Step into the realm of speculation and prediction, where we explore the potential future of AI agents. How will they shape industries, influence our daily lives, and even redefine our understanding of "intelligence"? Engage in a lively discourse around the possibilities and perils that the future of AI agents might hold.""" \ No newline at end of file +5. AI in Space Exploration: The final frontier is not beyond the reach of AI. This article will spotlight the role of AI in space exploration, from analyzing vast amounts of astronomical data to autonomous spacecraft navigating the vast expanse of space. The piece will highlight how AI is not just aiding but also accelerating our quest to explore the universe.""" + +@pytest.mark.vcr() +def test_crew_with_delegating_agents(): + ceo = Agent( + role="CEO", + goal="Make sure the writers in your company produce amazing content.", + backstory="You're an long time CEO of a content creation agency with a Senior Writer on the team. You're now working on a new project and want to make sure the content produced is amazing.", + allow_delegation=True + ) + + writer = Agent( + role="Senior Writer", + goal="Write the best content about AI and AI agents.", + backstory="You're a senior writr, specialized in technology, software engineering, AI and startups. You work as a freelancer and are now working on writing content for a new customer.", + allow_delegation=False + ) + + tasks = [ + Task( + description="Produce and amazing 1 paragraph draft of an article about AI Agents.", + agent=ceo + ) + ] + + crew = Crew( + agents=[ceo, writer], + process=Process.sequential, + tasks=tasks, + ) + + assert crew.kickoff() == 'The Senior Writer produced an amazing paragraph about AI Agents: "Artificial Intelligence (AI) agents, the cutting-edge technology that is reshaping the digital landscape, are software entities that autonomously perform tasks to achieve specific goals. These agents, programmed to make decisions based on their environment, are the driving force behind a multitude of innovations, from self-driving cars to personalized recommendations in e-commerce. They are pushing boundaries in various sectors, mitigating human error, increasing efficiency, and revolutionizing customer experience. The importance of AI agents is underscored by their ability to adapt and learn, ushering in a new era of technology where machines can mimic, and often surpass, human intelligence. Understanding AI agents is akin to peering into the future, a future where technology is seamless, intuitive, and astoundingly smart."' \ No newline at end of file diff --git a/tests/task_test.py b/tests/task_test.py new file mode 100644 index 000000000..f53946d32 --- /dev/null +++ b/tests/task_test.py @@ -0,0 +1,57 @@ +"""Test Agent creation and execution basic functionality.""" + +import pytest +from ..crewai import Agent, Task + +def test_task_tool_reflect_agent_tools(): + from langchain.tools import tool + + @tool + def fake_tool() -> None: + "Fake tool" + pass + + researcher = Agent( + role="Researcher", + goal="Make the best research and analysis on content about AI and AI agents", + backstory="You're an expert researcher, specialized in technology, software engineering, AI and startups. You work as a freelancer and is now working on doing research and analysis for a new customer.", + tools=[fake_tool], + allow_delegation=False + ) + + task = Task( + description="Give me a list of 5 interesting ideas to explore for na article, what makes them unique and interesting.", + agent=researcher + ) + + assert task.tools == [fake_tool] + +def test_task_tool_takes_precedence_ove_agent_tools(): + from langchain.tools import tool + + @tool + def fake_tool() -> None: + "Fake tool" + pass + + @tool + def fake_task_tool() -> None: + "Fake tool" + pass + + researcher = Agent( + role="Researcher", + goal="Make the best research and analysis on content about AI and AI agents", + backstory="You're an expert researcher, specialized in technology, software engineering, AI and startups. You work as a freelancer and is now working on doing research and analysis for a new customer.", + tools=[fake_tool], + allow_delegation=False + ) + + task = Task( + description="Give me a list of 5 interesting ideas to explore for na article, what makes them unique and interesting.", + agent=researcher, + tools=[fake_task_tool], + allow_delegation=False + ) + + assert task.tools == [fake_task_tool] \ No newline at end of file