Cerebras

Cerebras examples: basic runs, storage, knowledge, structured output, retries, and tool use.

Browse Cerebras examples for runs, storage, knowledge, structured output, retries, and tool use.

ExampleDescription
Cerebras BasicCompare synchronous, asynchronous, and streaming calls with the Cerebras model client.
DBStore Cerebras agent sessions in Postgres so follow-up questions keep context.
KnowledgeAnswer questions from a PDF knowledge base in PgVector with a Cerebras agent.
Cerebras OSS GPTRun gpt-oss-120b on Cerebras with web search via WebSearchTools.
RetryReview retry settings and why invalid model IDs cannot reliably exercise the retry path.
Cerebras Structured OutputCompare strict and guided structured output on Cerebras with a MovieScript schema.
Cerebras Tool UseCall WebSearchTools from a Cerebras agent in synchronous and asynchronous modes.