diff options
Diffstat (limited to 'libpanto/src/root.zig')
| -rw-r--r-- | libpanto/src/root.zig | 19 |
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); } |
