Back-ported to 1.2 from 1.3 (#481)
* trustgraph-base .chunks / .documents confusion in the API
* Added tests, fixed test failures in code
* Fix file dup error
* Fix contract error
* Fix incorrect tool initialisation in agent service
* Make Action: parsing more resient. If there are quotation marks, strip them off.
* Added test case for this change
* Added Anthropic support for VertexAI
* Update tests to match code
* Fixed private.json usage with Anthropic (I think).
* Fixed test
---------
Co-authored-by: Cyber MacGeddon <cybermaggedon@gmail.com>
* Implement KG extraction agent (kg-extract-agent)
* Using ReAct framework (agent-manager-react)
* ReAct manager had an issue when emitting JSON, which conflicts which ReAct manager's own JSON messages, so refactored ReAct manager to use traditional ReAct messages, non-JSON structure.
* Minor refactor to take the prompt template client out of prompt-template so it can be more readily used by other modules. kg-extract-agent uses this framework.