mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(core): expose consequentialHint annotation
This allows `consequentialHint` to be passed to `ModelContext.registerTool`. From Angular's perspective, this is simply a pass-through option. See: https://groups.google.com/a/chromium.org/g/chrome-ai-dev-preview/c/uHu5kfclbKw/m/dgorjfHPDgAJ
This commit is contained in:
committed by
Andrew Scott
parent
f557ead292
commit
96dbae53bb
@@ -75,6 +75,12 @@ export interface Annotations {
|
||||
* author of the tool.
|
||||
*/
|
||||
untrustedContentHint?: boolean;
|
||||
|
||||
/**
|
||||
* A hint that the tool will have consequential effects like mutating state or interacting
|
||||
* with the external world.
|
||||
*/
|
||||
consequentialHint?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -79,6 +79,7 @@ describe('declareExperimentalWebMcpTool', () => {
|
||||
annotations: {
|
||||
readOnlyHint: true,
|
||||
untrustedContentHint: true,
|
||||
consequentialHint: true,
|
||||
},
|
||||
},
|
||||
Injector.create({providers: []}),
|
||||
@@ -89,6 +90,7 @@ describe('declareExperimentalWebMcpTool', () => {
|
||||
annotations: {
|
||||
readOnlyHint: true,
|
||||
untrustedContentHint: true,
|
||||
consequentialHint: true,
|
||||
},
|
||||
}),
|
||||
jasmine.anything(),
|
||||
|
||||
Reference in New Issue
Block a user