You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a new AI communication model for tracking raw LLM requests and
responses. Tracking is automated via the language-model-service.
This model serves as the foundation for:
- Extracting communication history from Theia AI, allowing LLM testing
without running the full Theia-based application
- Replaying LLM communication without using an actual LLM, enabling
deterministic integration tests
- Removing the clunky communication recording service, making the
ai-history package optional
Resolves#15221
Contributed on behalf of STMicroelectronics
* The AiRequest interface represents a request to an AI language model, tracking all raw data exchanged
66
+
*/
67
+
exportinterfaceAiRequest{
68
+
/**
69
+
* Identifier of the request. Might have the same id as the parent semantic request, in case there is only one request or there being a root/seed request.
70
+
*/
71
+
id: string;
72
+
/**
73
+
* The actual request sent to the language model
74
+
*/
75
+
request: LanguageModelRequest;
76
+
/**
77
+
* Arbitrary metadata for the request. Might contain the agent id
78
+
*/
79
+
metadata: {
80
+
agent?: string;
81
+
timestamp?: number;
82
+
[key: string]: unknown;
83
+
}
84
+
/**
85
+
* The identifier of the language model the request was sent to
0 commit comments