MAUIverse MAUIverse

DocumentDb AI Tools — Give Your LLM a Database

Want an LLM agent to answer questions about your document store data — or modify it — without custom glue code for every operation? This package generates AI tools from your registered document types with a one-time setup, complete with structured query filters, field visibility controls, and capability flags.

What you’ll learn

  • How to register document types as AI tools with AddDocumentStoreAITools() and configure per-type capabilities
  • The seven available operations: get by ID, query, count, aggregate, insert, update, and delete
  • How structured filters with boolean combinators (and, or, not) translate into LINQ expressions
  • How to control field visibility with AllowProperties and IgnoreProperties to hide sensitive data from the LLM
  • Capability flags: ReadOnly, All, or custom combinations per document type
  • AOT-safe implementation using JsonTypeInfo<T> from source-generated JSON contexts

View Source →

← Back to Community Feed

}