The agent implements Laravel AI SDK's Agent + Conversational contracts: - instructions() renders the existing Blade system prompt with workspace brand context (name, description, website, tone, voice notes, locale) - messages() reads directly from the AiMessage model scoped to the post, so our existing conversation persistence stays the single source of truth — no duplicate SDK-managed storage. - Assistant messages with attachments are enriched inline with a summary like [This assistant message attached: 2 image] so the model tracks progress through carousel-style multi-image generations. - provider() maps the trypost.ai.text_provider config to Lab::Gemini or Lab::OpenAI, preserving the existing provider-switching behavior. |
||
|---|---|---|
| .. | ||
| Feature | ||
| Unit | ||
| CreatesApplication.php | ||
| Pest.php | ||
| TestCase.php | ||