feat: pluggable image-to-text service with OpenAI vision backend (#1038)

Adds a full-stack image description service: schema, base class,                                                                  
OpenAI backend, gateway dispatch, client APIs (sync/async REST +
websocket), tg-describe-image CLI, IAM capability, and specs.                                                                     
                                                                                                                                    
Closes #879
This commit is contained in:
Sunny Yang 2026-07-12 05:47:04 -06:00 committed by GitHub
parent 9136526863
commit 40f01c123b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 1845 additions and 14 deletions

View file

@ -588,6 +588,13 @@ class TestDispatcherManager:
with pytest.raises(RuntimeError, match="This kind not supported by flow"):
await manager.invoke_flow_service("data", "responder", "default", "test_flow", "agent")
def test_request_response_dispatchers_include_image_to_text(self):
"""image-to-text must be registered as a request/response service"""
from trustgraph.gateway.dispatch.manager import request_response_dispatchers
from trustgraph.gateway.dispatch.image_to_text import ImageToTextRequestor
assert request_response_dispatchers["image-to-text"] is ImageToTextRequestor
@pytest.mark.asyncio
async def test_invoke_flow_service_invalid_kind(self):
"""Test invoke_flow_service with invalid kind"""