Skip to main content

Agno plugin for SoloHQ Context Memory — adds persistent context memory to Agno agents

Project description

solohq-agno

Agno framework integration for SoloHQ context memory.

Installation

pip install solohq-agno

Quick Start

from agno.agent import Agent
from agno.models.anthropic import Claude
from solohq_memory import SqliteVecStorage
from solohq_agno import (
    AgnoContextMemory,
    AgnoLLMAdapter,
    AgnoEmbeddingAdapter,
    MemoryToolkit,
)

# Set up storage and adapters
model = Claude(id="claude-sonnet-4-6")
storage = SqliteVecStorage("memory.db", dimensions=1536)
llm_adapter = AgnoLLMAdapter(model)
embedding_adapter = AgnoEmbeddingAdapter(model)

# Create plugin
memory = AgnoContextMemory(
    storage=storage,
    llm=llm_adapter,
    embedder=embedding_adapter,
)

# Create agent with memory
agent = Agent(
    model=model,
    plugins=[memory],
    tools=[MemoryToolkit(memory)],
)

agent.print_response("What do you remember about our project?")

Components

AgnoContextMemory (Plugin)

Attaches pre/post hooks to Agno agent:

  • pre_hook — classifies message, loads context, injects artifacts/history/blocks into system prompt
  • post_hook — records episode, updates context state, detects relationships, creates session blocks

MemoryToolkit (Tools)

10 agent-callable tools:

  • search_memory — search across all contexts
  • save_artifact — save a versioned artifact
  • list_contexts — list all contexts
  • switch_context — switch active context
  • recall_episode — recall past episodes
  • index_file — index a file (store path + summary)
  • upload_file — upload file content to memory
  • index_directory — index all files in a directory
  • read_indexed_file — read an indexed file's content
  • refresh_index — refresh stale file indexes

Adapters

  • AgnoLLMAdapter — wraps Agno model as LLMProvider
  • AgnoEmbeddingAdapter — wraps Agno model as EmbeddingProvider

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

solohq_agno-0.1.0.tar.gz (56.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solohq_agno-0.1.0-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file solohq_agno-0.1.0.tar.gz.

File metadata

  • Download URL: solohq_agno-0.1.0.tar.gz
  • Upload date:
  • Size: 56.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for solohq_agno-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aa72ff4847b0e7f3c6a829ac9fe1cc3e017eda8daa9af5b16548ea1b2e25dfd9
MD5 b44c7d420da2913ebbae00d506ec6834
BLAKE2b-256 69886102025addf9cdfc2d477c7c2667eff767dc4e404bcb2c0e5d96cd125715

See more details on using hashes here.

Provenance

The following attestation bundles were made for solohq_agno-0.1.0.tar.gz:

Publisher: publish.yml on whaleventure13/solohq-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file solohq_agno-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: solohq_agno-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for solohq_agno-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c0a5b05a4336bc0e0fa1ee2564b8bfce4526966e398a28ae511b31293af04a1
MD5 143348efaf83c7fb95550bf916db1057
BLAKE2b-256 64199c2bee3b4e5d6671fc16f8457fba80db7c5226565ff427f3d725837eda44

See more details on using hashes here.

Provenance

The following attestation bundles were made for solohq_agno-0.1.0-py3-none-any.whl:

Publisher: publish.yml on whaleventure13/solohq-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page