Llama
Meta Llama API examples for runs, images, knowledge, memory, metrics, storage, structured output, and tools.
| Example | Description |
|---|---|
| Async Knowledge | Load knowledge into PgVector and answer asynchronously. |
| Meta Basic | Run sync, async, and streaming requests. |
| Db | Store sessions in Postgres and include previous turns. |
| Meta Image Input Bytes | Send local JPEG bytes as image input. |
| Meta Image Input File | Send a local JPEG file as image input. |
| Knowledge | Retrieve answers from PDF knowledge stored in PgVector. |
| Memory | Persist user memories and conversation summaries. |
| Meta Metrics | Inspect message and run metrics. |
| Meta Structured Output | Request a JSON schema and validate a movie script. |
| Tool Use | Look up stock prices with YFinance tools. |