Code
cookbook/11_models/cerebras/basic_stream.py
from agno.agent import Agent # noqa
from agno.models.cerebras import Cerebras
agent = Agent(
model=Cerebras(id="llama-4-scout-17b-16e-instruct"),
markdown=True,
)
# Print the response in the terminal
agent.print_response("write a two sentence horror story", stream=True)
Was this page helpful?