Agent with custom prompt #2728
ryanshrott
started this conversation in
General
Replies: 1 comment 1 reply
-
If you're using a chat LLM, this is similar to what I did. from langchain.agents import ConversationalChatAgent, AgentExecutor
agent = ConversationalChatAgent.from_llm_and_tools(
llm=chat_llm,
tools=tools,
system_message="this is the prompt/prefix/system message",
human_message="this is the suffix/human message",
verbose=True,
memory=memory,
# ...
)
agent_chain = AgentExecutor.from_agent_and_tools(
agent=agent,
tools=tools,
memory=memory,
verbose=True,
# ...
) If you look at the reference for the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building my own agent with some custom tools. How can I initially prompt the agent with its main goal and task is? For example, you are a realtor connecting clients with agents etc.
Beta Was this translation helpful? Give feedback.
All reactions