Commit graph

163 commits

Author SHA1 Message Date
cybermaggedon
d83e4e3d59
Update to enable knowledge extraction using the agent framework (#439)
* 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.
2025-07-21 14:31:57 +01:00
Cyber MacGeddon
1fe4ed5226 Update Python deps to 1.2 2025-07-17 19:26:19 +01:00
cybermaggedon
81c7c1181b
Updated CLI invocation and config model for tools and mcp (#438)
* Updated CLI invocation and config model for tools and mcp

* CLI anomalies

* Tweaked the MCP tool implementation for new model

* Update agent implementation to match the new model

* Fix agent tools, now all tested

* Fixed integration tests

* Fix MCP delete tool params
2025-07-16 23:09:32 +01:00
cybermaggedon
f37decea2b
Increase storage test coverage (#435)
* Fixing storage and adding tests

* PR pipeline only runs quick tests
2025-07-15 09:33:35 +01:00
cybermaggedon
4daa54abaf
Extending test coverage (#434)
* Contract tests

* Testing embeedings

* Agent unit tests

* Knowledge pipeline tests

* Turn on contract tests
2025-07-14 17:54:04 +01:00
cybermaggedon
9c7a070681
Feature/react call mcp (#428)
Key Features

  - MCP Tool Integration: Added core MCP tool support with ToolClientSpec and ToolClient classes
  - API Enhancement: New mcp_tool method for flow-specific tool invocation
  - CLI Tooling: New tg-invoke-mcp-tool command for testing MCP integration
  - React Agent Enhancement: Fixed and improved multi-tool invocation capabilities
  - Tool Management: Enhanced CLI for tool configuration and management

Changes

  - Added MCP tool invocation to API with flow-specific integration
  - Implemented ToolClientSpec and ToolClient for tool call handling
  - Updated agent-manager-react to invoke MCP tools with configurable types
  - Enhanced CLI with new commands and improved help text
  - Added comprehensive documentation for new CLI commands
  - Improved tool configuration management

Testing

  - Added tg-invoke-mcp-tool CLI command for isolated MCP integration testing
  - Enhanced agent capability to invoke multiple tools simultaneously
2025-07-08 16:19:19 +01:00
cybermaggedon
e56186054a
MCP client support (#427)
- MCP client service
- Tool request/response schema
- API gateway support for mcp-tool
- Message translation for tool request & response
- Make mcp-tool using configuration service for information
  about where the MCP services are.
2025-07-07 23:52:23 +01:00
Cyber MacGeddon
f0b2752abf Bump setup.py versions for 1.1 2025-07-02 16:40:13 +01:00
cybermaggedon
b1a546e4d2
Fix missing script (#418) 2025-06-24 11:32:50 +01:00
cybermaggedon
bab9ac4bd5
Fix command line args (#417) 2025-06-24 11:21:15 +01:00
cybermaggedon
f08e3c1b27
Feature/reverse gateway (#416)
* Created reverse gateway

* Dispatched invoke message translations

* Added config receiver

* Provide a script to start rev-gateway
2025-06-24 11:19:20 +01:00
cybermaggedon
a4e2f67cb1
Feature/translator classes (#414)
Pull the JSON/Pulsar message translation into a separate module, will be useful for other comms channels
2025-06-20 16:59:55 +01:00
cybermaggedon
35b0d80013
Added vLLM support, untested (#410)
* Added vLLM support
2025-06-10 15:37:37 +01:00
cybermaggedon
5364b1fad5
Concurrency implemented in more services (#409) 2025-06-04 11:45:21 +01:00
cybermaggedon
8fc8880d51
Update kg core endpoint methods (#406) 2025-06-02 13:49:29 +01:00
cybermaggedon
2e577e900a
KG core upload/download uses query params (#405) 2025-05-29 19:56:04 +01:00
cybermaggedon
6f964e478e
Core stream in/out (#404) 2025-05-29 16:33:21 +01:00
cybermaggedon
8120cfa803
Remove log cruft (#398) 2025-05-27 23:12:06 +01:00
cybermaggedon
c05ec25e39
Added support for HuggingFace TGI LLM (#396) 2025-05-27 16:44:13 +01:00
cybermaggedon
3ed9274d84
Remove much logging output in gateway (#393) 2025-05-24 12:10:05 +01:00
cybermaggedon
448819ed47
Updates to Google AI: (#394)
- Changed GoogleAIStudio LLM code to match latest documentation
- Very minor tweak to vertexai LLM code - just matching what's in SDK docs
  no actual change to implementation.
- Tweaked VertexAI container build to speed up in dev
- Comments in LLM code to mention which docs it was built from.  Google
  SDKs are confusing ATM.
2025-05-24 12:09:43 +01:00
Cyber MacGeddon
33abc1fa59 Merge branch 'fix/openai-base-url' into release/v1.0 2025-05-22 19:04:50 +01:00
Cyber MacGeddon
127079f085 Make sure text-completion-openai works with empty base URL string 2025-05-22 18:58:10 +01:00
cybermaggedon
1c4d881274
Merge pull request #383 from trustgraph-ai/feature/entity-contexts-import-export
Entity contexts import/export
2025-05-17 13:26:05 +01:00
Cyber MacGeddon
0507f10373 Entity contexts import/export 2025-05-17 13:25:09 +01:00
cybermaggedon
6dc7b4cbfc
Merge pull request #382 from trustgraph-ai/fix/import-queues-not-working
Fix/import queues not working
2025-05-17 13:02:58 +01:00
Cyber MacGeddon
410636b409 Fix missing queue initialisation 2025-05-17 13:01:52 +01:00
cybermaggedon
9f4a718dd8
Fix LLM launch bugs (#378) 2025-05-09 09:25:59 +01:00
cybermaggedon
1e861dc984
Fix LLM launch bugs (#377) 2025-05-09 09:25:56 +01:00
Cyber MacGeddon
6dadf30c66 Bump package versions 2025-05-08 22:06:58 +01:00
cybermaggedon
31b7ade44d
Feature/knowledge load (#372)
* Switch off retry in Cassandra until we can differentiate retryable errors

* Fix config getvalues

* Loading knowledge cores works
2025-05-08 00:41:45 +01:00
cybermaggedon
4461d7b289
Feature/persist config (#370)
* Cassandra tables for config

* Config is backed by Cassandra
2025-05-07 12:58:32 +01:00
cybermaggedon
f7123ac57f
tg-put-kg-core command (#369) 2025-05-07 11:13:21 +01:00
cybermaggedon
807c19fd22
knowledge service (#367)
* Write knowledge core elements to Cassandra

* Store service works, building management service

* kg-manager
2025-05-06 23:44:10 +01:00
cybermaggedon
d0da122bed
Fix/llms (#366)
* Fix LMStudio, cache documents with tg-load-sample-documents

* Fix Mistral
2025-05-06 16:17:16 +01:00
cybermaggedon
54e475fa3a
Sample docs loader (#365) 2025-05-06 13:43:17 +01:00
cybermaggedon
9e4eb634a4
Fix/chunking not enabled (#364)
* Enable chunking by default in producer

* Fix some issues including uploading large docs
2025-05-06 00:28:20 +01:00
cybermaggedon
8146f0f2ff
Librarian doc submission (#362) 2025-05-04 22:56:47 +01:00
cybermaggedon
ff28d26f4d
Feature/flow librarian (#361)
* Update librarian to new API

* Implementing new schema with document + processing objects
2025-05-04 22:26:19 +01:00
cybermaggedon
3b8b9ea866
Feature/flow api 3 (#358)
* Working mux socket

* Change API to incorporate flow

* Add Flow ID to all relevant CLIs, not completely implemented

* Change tg-processor-state to use API gateway

* Updated all CLIs

* New tg-show-flow-state command

* tg-show-flow-state shows classes too
2025-05-03 10:39:53 +01:00
cybermaggedon
a70ae9793a
Flow API - update gateway (#357)
* Altered API to incorporate Flow IDs, refactored for dynamic start/stop of flows
* Gateway: Split endpoint / dispatcher for maintainability
2025-05-02 21:11:50 +01:00
cybermaggedon
450f664b1b
Feature/flow enable api gateway (#356)
* Tweak timeouts, reduce stop time for publishers / subscribers

* More APIs working as flow endpoint
2025-04-29 23:34:41 +01:00
cybermaggedon
027b52cd7c
Fix/get multiple flows working (#355)
* Reduce log output

* Fix problems
2025-04-29 00:06:41 +01:00
cybermaggedon
9508ac6c69
Port metering to new API, not tested. (#354)
- Port metering to new API
- Moved price list to configuration
- Added tg-set-token-costs and tg-show-token-costs utils.
2025-04-28 21:26:38 +01:00
cybermaggedon
5af7909122
Update LLMs to LlmService API (#353) 2025-04-25 19:57:42 +01:00
cybermaggedon
099018e103
Update package versions (#352) 2025-04-25 19:45:02 +01:00
Cyber MacGeddon
1822ca395f Revert "Feature/configure flows (#345)"
This reverts commit a9197d11ee.
2025-04-25 19:02:08 +01:00
Cyber MacGeddon
3adb3cf59c Revert "Feature/flow management cli (#346)"
This reverts commit 3b021720c5.
2025-04-25 19:02:08 +01:00
Cyber MacGeddon
9c83aaf773 Revert "Feature/interface descriptions (#348)"
This reverts commit 342f555948.
2025-04-25 19:02:08 +01:00
cybermaggedon
342f555948
Feature/interface descriptions (#348) 2025-04-25 15:59:34 +01:00