Back to directory

gollem

A Go framework for building agentic LLM applications, with a common interface across model providers, MCP tool support, and automatic session and memory management.

gollem

gollem is a Go library for calling large language models and building agent applications around them. It provides a common interface for generating and streaming text and for generating embeddings across Gemini, Anthropic Claude, and OpenAI, including Claude access through Google Vertex AI.

For building agents, it manages sessions automatically across calls, keeps portable conversational memory with automatic history compaction for stateless or distributed applications, and includes a middleware system for monitoring and controlling agent behavior. Tools can come from an MCP server or be defined directly in Go. It also supports multimodal input such as images and PDFs, and can constrain a model's output to a JSON schema, including a generic helper that combines schema generation, the model call, and parsing with automatic retry.

More in Agent frameworks

See all 902
  • Recurse

    recurse.run

    A serverless harness that lets a coding agent design, test, and deploy its own specialist sub-agents as tools, MCP servers, or bots, defined by a schema-validated manifest.

  • ProofForge

    shulgin.is-a.dev

    An AI-agent pipeline that decomposes a mathematics problem, proves each piece, and formalizes the result in Lean 4 and Mathlib until the Lean kernel accepts it, with six of its proofs already merged into Google DeepMind's formal-conjectures repository.

  • local-coder

    github.com

    Builds a local coding-agent team on top of Ollama and OpenCode by detecting the machine's hardware, recommending models for seven specialist roles, and testing whether each assigned model can actually use tools, edit a repository and pass verification.