So I'm having trouble trying to display anything from the datastore.
After I have built the agent, here are the instructions I've given it:
- Greet the users, then ask how you can help them today.
- Summarize the user's request and ask them to confirm that you understood correctly.
- If necessary, seek clarifying details.
- Use ${TOOL: datastore} to look through the source code and file names. It is a datastore.
Then I tick the datastore to be used.
The datastore tool specifically is referencing the datastore I've built. The information i've imported into the datastore is a collection of filenames and their source code, here's an example:
{"id": "document393", "name": "BruteForceCounter.java", "content": "package com.thing.common.storefront.security;\npublic interface BruteForceAttackCounter\n{\nvoid registerLoginFailure(final String userUid);\nboolean isAttack(final String userUid);\nvoid resetUserCounter(final String userUid);\nint getUserFailedLogins(final String userUid);\n}", "metadata": {"file-name": "./thing/bin/ext-thing/thingcommon/thingcommonweb/commonweb/src/com/thing/common/storefront/security/BruteForceCounter.java"}}
The above seems to have been imported correctly into the datastore as it's mentioned it was successful.
However when I try and ask the agent "list entries in the datastore" or really anything, I get responses like "I cannot do that" etc... looking at what the agent did specifically, it looks like it's sending a query, but the return is always an empty 200?
Anyone got any ideas? Why it's not working? Is the datastore just empty? If it's empty though, why won't it work with entries like "is it empty" either?
Is there a way to just manually check if there is any values in the datastore?