summaryrefslogtreecommitdiff
path: root/libpanto/src/root.zig
diff options
context:
space:
mode:
authorT <t@tjp.lol>2026-05-25 21:50:43 -0600
committerT <t@tjp.lol>2026-05-25 22:19:44 -0600
commitf026bb81ae68f516910d0eb4f23c9344dd36b62b (patch)
treee091d1a870cc75dc92e6cee785ee78ff4d6f088f /libpanto/src/root.zig
parentdf2edee86eec2a8deb0ad57b5d20552199c12b65 (diff)
phase 2 done
Diffstat (limited to 'libpanto/src/root.zig')
-rw-r--r--libpanto/src/root.zig19
1 files changed, 14 insertions, 5 deletions
diff --git a/libpanto/src/root.zig b/libpanto/src/root.zig
index 9eb6d0e..a5cf8b5 100644
--- a/libpanto/src/root.zig
+++ b/libpanto/src/root.zig
@@ -4,11 +4,20 @@ pub const agent = @import("agent.zig");
pub const config = @import("config.zig");
pub const sse = @import("sse.zig");
-// Internal modules — exposed so their tests run with the library test suite,
-// but not part of the stable public API.
-pub const openai_chat_json = @import("openai_chat_json.zig");
-pub const provider_openai_chat = @import("provider_openai_chat.zig");
+// Internal modules. Not part of the public API — callers construct providers
+// via `provider.Provider.init(allocator, io, config)`, which picks the right
+// concrete implementation based on the config's API style. These are exposed
+// here only so `refAllDecls` picks up their tests.
+const openai_chat_json = @import("openai_chat_json.zig");
+const provider_openai_chat = @import("provider_openai_chat.zig");
+const anthropic_messages_json = @import("anthropic_messages_json.zig");
+const provider_anthropic_messages = @import("provider_anthropic_messages.zig");
test {
- @import("std").testing.refAllDecls(@This());
+ const std = @import("std");
+ std.testing.refAllDecls(@This());
+ std.testing.refAllDecls(openai_chat_json);
+ std.testing.refAllDecls(provider_openai_chat);
+ std.testing.refAllDecls(anthropic_messages_json);
+ std.testing.refAllDecls(provider_anthropic_messages);
}