feat(clients): llm vendor foundation: api client, SSE, errors, neutral chat types, ai.mk, example stubs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 06:06:06 +02:00
co-authored by Claude Sonnet 5.5
parent 6f73535b82
commit 4c78017742
26 changed files with 1269 additions and 5 deletions
+40
View File
@@ -0,0 +1,40 @@
#include "../AiDemos.hpp"
#include "../../fw/Router.hpp"
namespace molo::example::app {
void register_ai_demos(std::shared_ptr<fw::Application> app, Services& services) {
{
fw::Router r;
register_ai_xai_demo(r, services);
app->include_router("", r);
}
{
fw::Router r;
register_ai_xaiplatform_demo(r, services);
app->include_router("", r);
}
{
fw::Router r;
register_ai_anthropic_demo(r, services);
app->include_router("", r);
}
{
fw::Router r;
register_ai_anthropicadmin_demo(r, services);
app->include_router("", r);
}
{
fw::Router r;
register_ai_meta_demo(r, services);
app->include_router("", r);
}
{
fw::Router r;
register_ai_deepseek_demo(r, services);
app->include_router("", r);
}
}
} // namespace molo::example::app
+13
View File
@@ -0,0 +1,13 @@
#include "../AiDemos.hpp"
#include "../../fw/Router.hpp"
namespace molo::example::app {
// Anthropic Claude: admin API (orgs, workspaces, keys, usage, cost) and managed agents. Stub: the module agent fills this in.
void register_ai_anthropicadmin_demo(fw::Router& router, Services& services) {
(void)router;
(void)services;
}
} // namespace molo::example::app
+13
View File
@@ -0,0 +1,13 @@
#include "../AiDemos.hpp"
#include "../../fw/Router.hpp"
namespace molo::example::app {
// Anthropic Claude: messages, streaming, tools, batches, tokens, models, files, skills. Stub: the module agent fills this in.
void register_ai_anthropic_demo(fw::Router& router, Services& services) {
(void)router;
(void)services;
}
} // namespace molo::example::app
+13
View File
@@ -0,0 +1,13 @@
#include "../AiDemos.hpp"
#include "../../fw/Router.hpp"
namespace molo::example::app {
// DeepSeek API. Stub: the module agent fills this in.
void register_ai_deepseek_demo(fw::Router& router, Services& services) {
(void)router;
(void)services;
}
} // namespace molo::example::app
+13
View File
@@ -0,0 +1,13 @@
#include "../AiDemos.hpp"
#include "../../fw/Router.hpp"
namespace molo::example::app {
// Meta Llama API. Stub: the module agent fills this in.
void register_ai_meta_demo(fw::Router& router, Services& services) {
(void)router;
(void)services;
}
} // namespace molo::example::app
+13
View File
@@ -0,0 +1,13 @@
#include "../AiDemos.hpp"
#include "../../fw/Router.hpp"
namespace molo::example::app {
// xAI Grok: chat, responses, tools, media, batch, models. Stub: the module agent fills this in.
void register_ai_xai_demo(fw::Router& router, Services& services) {
(void)router;
(void)services;
}
} // namespace molo::example::app
+13
View File
@@ -0,0 +1,13 @@
#include "../AiDemos.hpp"
#include "../../fw/Router.hpp"
namespace molo::example::app {
// xAI Grok: voice/realtime, collections, files, management API. Stub: the module agent fills this in.
void register_ai_xaiplatform_demo(fw::Router& router, Services& services) {
(void)router;
(void)services;
}
} // namespace molo::example::app