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

Agent.stream Overrides Prompt Driver #1490

Closed
1 task done
collindutter opened this issue Dec 26, 2024 · 0 comments · Fixed by #1495
Closed
1 task done

Agent.stream Overrides Prompt Driver #1490

collindutter opened this issue Dec 26, 2024 · 0 comments · Fixed by #1495
Assignees
Labels
type:bug Something isn't working
Milestone

Comments

@collindutter
Copy link
Member

Describe the bug
Agent.stream overrides Agent.prompt_driver.stream.

To Reproduce

from griptape.drivers import OpenAiChatPromptDriver
from griptape.structures import Agent

agent = Agent(
    stream=False,
    prompt_driver=OpenAiChatPromptDriver(model="gpt-4o", stream=True),
)

print(agent.tasks[0].prompt_driver.stream)

Expected behavior
More intelligent behavior for merging defaults.

@collindutter collindutter added the type:bug Something isn't working label Dec 26, 2024
@collindutter collindutter added this to the 1.1 milestone Dec 26, 2024
@collindutter collindutter self-assigned this Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant