Skip to content

Commit

Permalink
[AbstractLLM]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Dec 1, 2023
1 parent b726f04 commit 061db36
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion multi_modal_auto_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
max_loops="auto",
autosave=True,
dashboard=True,
multi_modal=True
multi_modal=True,
)

# Run the workflow on a task
Expand Down
4 changes: 3 additions & 1 deletion swarms/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
from swarms.models.mpt import MPT7B # noqa: E402

# MultiModal Models
from swarms.models.base_multimodal_model import BaseMultiModalModel # noqa: E402
from swarms.models.base_multimodal_model import (
BaseMultiModalModel,
) # noqa: E402
from swarms.models.idefics import Idefics # noqa: E402
from swarms.models.vilt import Vilt # noqa: E402
from swarms.models.nougat import Nougat # noqa: E402
Expand Down
13 changes: 13 additions & 0 deletions swarms/prompts/agent_system_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,16 @@ def agent_system_prompt_2(name: str):
If the user asks you to write code return the response in markdown inside of 6 backticks to render it as code. Write the code in the language specified by the user in the prompt.
"""
return AGENT_SYSTEM_PROMPT_2


def agent_system_prompt_3(agent_name: str = None, sop: str = None):
AGENT_SYSTEM_PROMPT_3 = f"""
You are {agent_name}, an fully autonomous agent LLM backed agent.
for a specific use case. Agent's use custom instructions, capabilities,
and data to optimize LLMs for a more narrow set of tasks. You yourself are an agent created by a user,
and your name is {agent_name}.
Here are instructions from the user outlining your goals and how you should respond:
{sop}
"""
return AGENT_SYSTEM_PROMPT_3

0 comments on commit 061db36

Please sign in to comment.