Overview
Data Foundry Knowledge connects an agent to collections held in data-foundry. The agent can search for passages, ask for a cited answer, or quote the exact text of a passage. budprompt proxies data-foundry’s MCP surface ({DATA_FOUNDRY_BASE_URL}/v1alpha/mcp) to the model, so retrieval itself is not implemented in Bud.
The tool is off by default. Each deployment must turn it on. See Deployment.
What the Agent Sees
The model sees the tools with adf_ prefix, so they cannot clash with another toolset’s search:
Only these four tools can be exposed. data-foundry’s other MCP tools, which manage threads, notebooks, rebuilds and generations, are never shown to the agent, whatever its configuration says.
Configuration
These fields are not in the configuration on purpose:
- No endpoint or credential. The data-foundry URL and credential are deployment-wide budprompt settings, because a prompt configuration is stored unencrypted.
- No scopes. budprompt removes
scopesfrom every call.
Collections
Each entry names a collection by its identifiers:NAME entries (a match on a display name), because a display-name match cannot be turned into a hodor scope.
Set them with the native-tools endpoint:
collections, budapp keeps the collections that are already stored. Thus a save from the configuration form does not delete them. To clear them, send an empty list.
Confinement
- budprompt forces the configured collections as
namedCollectionson everydf_search,df_answeranddf_snip-by-query call, and replaces anything the model sent. Named collections can only narrow what the credential can see. They cannot widen it. - A
df_snipby locator cannot carrynamedCollections. budprompt checks the locator’s sync and collection against the configured collections, and refuses a locator outside them before it calls data-foundry. df_list_collectionsis not confined.namedCollectionscannot narrow it, so it shows the model every collection that the deployment’s data-foundry credential can read, not only this agent’s. This is why it is off by default.
Stateless Answers
budprompt calls data-foundry as a service principal that all users of an agent share. A stored conversation thread would thus be readable by all of them. For this reasondf_answer never stores a thread: budprompt forces temporary to true, and removes thread, store, searchResultsRef and requestId from every call and from the schema that the model sees. Each answer stands alone.
Deployment
Two flags must be on, one for each service:
budprompt also needs
DATA_FOUNDRY_BASE_URL and a credential. DATA_FOUNDRY_AUTH_MODE selects the credential:
hodorexchangesDATA_FOUNDRY_HODOR_KEYatHODOR_URLfor a short-lived assertion for tenantDATA_FOUNDRY_HODOR_TENANT, before each call.staticsendsDATA_FOUNDRY_API_KEYas the bearer. Use it only for development.
hodor when HODOR_URL is set, and static if not. Keep the keys in the environment’s SOPS-encrypted secrets file. If a setting is missing, budprompt loads the agent without the tool and logs why. It does not fail the run.