diff --git a/example.py b/example.py index bff19021..67ea34f9 100644 --- a/example.py +++ b/example.py @@ -24,4 +24,4 @@ agent = Agent(llm=llm, max_loops=1, dashboard=True) # Run the workflow on a task out = agent.run("Generate a 10,000 word blog on health and wellness.") -print(out) \ No newline at end of file +print(out) diff --git a/swarms/models/gpt4_vision_api.py b/swarms/models/gpt4_vision_api.py index 27d53312..5539cc4a 100644 --- a/swarms/models/gpt4_vision_api.py +++ b/swarms/models/gpt4_vision_api.py @@ -28,6 +28,7 @@ You are an multi-modal autonomous agent. You are given a task and an image. You """ + class GPT4VisionAPI: """ GPT-4 Vision API @@ -455,9 +456,9 @@ class GPT4VisionAPI: # _type_: _description_ # """ # META_PROMPT = """ - # For any labels or markings on an image that you reference in your response, please - # enclose them in square brackets ([]) and list them explicitly. Do not use ranges; for - # example, instead of '1 - 4', list as '[1], [2], [3], [4]'. These labels could be + # For any labels or markings on an image that you reference in your response, please + # enclose them in square brackets ([]) and list them explicitly. Do not use ranges; for + # example, instead of '1 - 4', list as '[1], [2], [3], [4]'. These labels could be # numbers or letters and typically correspond to specific segments or parts of the image. # """ # return META_PROMPT diff --git a/swarms/models/openai_models.py b/swarms/models/openai_models.py index 8d74ca2e..6366b8b0 100644 --- a/swarms/models/openai_models.py +++ b/swarms/models/openai_models.py @@ -751,9 +751,9 @@ class OpenAIChat(BaseLLM): Any parameters that are valid to be passed to the openai.create call can be passed in, even if not explicitly saved on this class. - + Args: - + model_name: The model name to use. model_kwargs: Any additional kwargs to pass to the model. openai_api_key: The OpenAI API key to use. @@ -764,8 +764,8 @@ class OpenAIChat(BaseLLM): streaming: Whether to stream the results or not. allowed_special: Set of special tokens that are allowed。 disallowed_special: Set of special tokens that are not allowed。 - - + + Example: .. code-block:: python diff --git a/swarms/structs/agent.py b/swarms/structs/agent.py index 29bba651..33a37ac5 100644 --- a/swarms/structs/agent.py +++ b/swarms/structs/agent.py @@ -9,20 +9,19 @@ from typing import Any, Callable, Dict, List, Optional, Tuple from termcolor import colored -from swarms.tools.tool import BaseTool -from swarms.utils.code_interpreter import SubprocessCodeInterpreter -from swarms.utils.parse_code import extract_code_in_backticks_in_string +from swarms.prompts.agent_system_prompts import FLOW_SYSTEM_PROMPT from swarms.prompts.multi_modal_autonomous_instruction_prompt import ( MULTI_MODAL_AUTO_AGENT_SYSTEM_PROMPT_1, ) -from swarms.utils.pdf_to_text import pdf_to_text - from swarms.prompts.tools import ( DYNAMIC_STOP_PROMPT, DYNAMICAL_TOOL_USAGE, SCENARIOS, ) -from swarms.prompts.agent_system_prompts import FLOW_SYSTEM_PROMPT +from swarms.tools.tool import BaseTool +from swarms.utils.code_interpreter import SubprocessCodeInterpreter +from swarms.utils.parse_code import extract_code_in_backticks_in_string +from swarms.utils.pdf_to_text import pdf_to_text def autonomous_agent_prompt(