Thanks Chris, id love some help with this, have been trying for well over a dozen hours.
I have tried the following by curl commands, and python with the sdk, same results - the agent can never access the KB files. if i add them with the dashboard, it works fine. (I note that, when adding via the dash - no KnowledgeBaseID is added to the agents JSON - but instead, via the dashboard does create a "Knowledgebase" object, which contains the key "topK", and the file ids....
What i have been doing is using the API to upload files, and the using the list of fileIDs, i then use the API to create a KnowledgeBase. This gives me the KBid
Then, i patch the agent with the KBID.
This never works, then agent can never reference the files.
So, my question is: what is the dashboard doing differently from the API? I don't understand why just adding the KB_ID to the agent doesn't work, and i don't understand why, when adding via the Dash, no KB_ID is created.
Also, when patching the agent, i dont see any option to "patch" the agent directly with the files. (which makes sense, i guess we want to make a KB first).
TLDR: What is the correct process to progrmatically add files/knowledge bases to an agent? The guideline in the vapi documentation doesn't seem to actually work...