System prompts #44
-
|
How do you implement a system prompt, for providers that support one? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Check this example out - this shows a System Prompt: https://github.com/agentjido/jido_ai/blob/main/lib/examples/01_basic_agent.ex |
Beta Was this translation helpful? Give feedback.
-
|
Jido AI uses the Prompt module to encase an entire conversation - the list of messages - https://github.com/agentjido/jido_ai/blob/main/lib/jido_ai/prompt.ex The first message in this list of messages can be a system prompt. The prompt module brings a lot of extra functionality and works across all providers (or should - if not it's a bug) Here's the docs: https://hexdocs.pm/jido_ai/prompt.html |
Beta Was this translation helpful? Give feedback.
Jido AI uses the Prompt module to encase an entire conversation - the list of messages - https://github.com/agentjido/jido_ai/blob/main/lib/jido_ai/prompt.ex
The first message in this list of messages can be a system prompt. The prompt module brings a lot of extra functionality and works across all providers (or should - if not it's a bug)
Here's the docs: https://hexdocs.pm/jido_ai/prompt.html