[AbstractLLM]

pull/243/head
Kye 1 year ago
parent b726f04b02
commit 061db3632b

@ -26,7 +26,7 @@ agent = Agent(
max_loops="auto", max_loops="auto",
autosave=True, autosave=True,
dashboard=True, dashboard=True,
multi_modal=True multi_modal=True,
) )
# Run the workflow on a task # Run the workflow on a task

@ -17,7 +17,9 @@ from swarms.models.wizard_storytelling import (
from swarms.models.mpt import MPT7B # noqa: E402 from swarms.models.mpt import MPT7B # noqa: E402
# MultiModal Models # 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.idefics import Idefics # noqa: E402
from swarms.models.vilt import Vilt # noqa: E402 from swarms.models.vilt import Vilt # noqa: E402
from swarms.models.nougat import Nougat # noqa: E402 from swarms.models.nougat import Nougat # noqa: E402

@ -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. 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 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

Loading…
Cancel
Save