High-level interface for LLM interactions with protocol-specific methods for chat, vision, tools, and embeddings.
go get github.com/tailored-agentic-units/agentThe agent package wraps the client layer with convenient methods for common LLM operations. Agents are created via explicit dependency injection, receiving a provider and format instance from the caller.
p, _ := provider.Create(cfg.Provider)
f, _ := format.Create(cfg.Format)
a := agent.New(cfg, p, f)
resp, err := a.Chat(ctx, messages)| Package | Description |
|---|---|
agent |
Agent interface and constructor |
client |
HTTP client with retry logic and health tracking |
request |
Protocol request types (chat, vision, tools, embeddings) |
registry |
Named agent configuration with lazy instantiation |
mock |
Test doubles for agent, client, provider, and format |
See repository root.