Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QUESTION: static system_prompt non deterministic? (or bug) #770

Open
DavidLGoldberg opened this issue Jan 25, 2025 · 2 comments
Open

QUESTION: static system_prompt non deterministic? (or bug) #770

DavidLGoldberg opened this issue Jan 25, 2025 · 2 comments

Comments

@DavidLGoldberg
Copy link

I have a hard-coded "static' system_prompt being set in my Agent constructor (just a string).

When I run my script, logfire shows that ~25% (intermittent issue) do NOT include this system_prompt. When they're not included there's a generic agent that gets what is usually added to a "user" agent.

When it works, there is both a system (the static one of course) and a user agent.

I don't think this is a logfire issue because without the system prompt (it's very necessary in this case) the script fails very reliably via the validation. When they are included the script returns successfully.

I couldn't find anything about this in the docs. Is there a force_system_prompt="true" or something?

@DavidLGoldberg
Copy link
Author

Reading some of the issues, I wonder if there is some message history sticking around from previous runs? I don't see any on logfire, and hope there aren't, since I'm not trying to do anything like that for this :)

@DavidLGoldberg
Copy link
Author

Also, I should add that I'm using ollama and llama3.1:8b and the OpenAIModel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant