@actuarial-ts/agents 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -1
- package/dist/advisor.d.ts +1 -0
- package/dist/advisor.d.ts.map +1 -1
- package/dist/advisor.js +2 -0
- package/dist/advisor.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +18 -0
- package/dist/errors.js.map +1 -1
- package/dist/evals.d.ts +1 -1
- package/dist/evals.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/judgment.d.ts +1 -1
- package/dist/judgment.js +1 -1
- package/dist/review.d.ts +729 -0
- package/dist/review.d.ts.map +1 -0
- package/dist/review.js +674 -0
- package/dist/review.js.map +1 -0
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +1 -1
- package/package.json +6 -6
- package/src/advisor.ts +4 -0
- package/src/errors.ts +18 -0
- package/src/evals.ts +1 -1
- package/src/index.ts +1 -0
- package/src/judgment.ts +1 -1
- package/src/remote.ts +1 -1
- package/src/review.ts +1116 -0
- package/src/tools.ts +2 -2
package/src/tools.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* server-side request context, never from the model. tenantOf reads it;
|
|
7
7
|
* defineActuarialTool REJECTS, at definition time, any input schema that
|
|
8
8
|
* declares a tenant-id key - the model must not even be able to express
|
|
9
|
-
* one. (Verified against @mastra/core 1.
|
|
9
|
+
* one. (Verified against the installed @mastra/core 1.67.0: tools execute as
|
|
10
10
|
* (inputData, context) with context.requestContext.get(key).)
|
|
11
11
|
*
|
|
12
12
|
* 2. ERROR CONTRACT. Tools never throw into the model. Anything the host's
|
|
@@ -107,7 +107,7 @@ export function envelopeFailure(
|
|
|
107
107
|
/**
|
|
108
108
|
* The structural slice of Mastra's ToolExecutionContext that the tenant seam
|
|
109
109
|
* needs. Typed structurally (not as the concrete Mastra type) so tests can
|
|
110
|
-
* pass a minimal object and hosts
|
|
110
|
+
* pass a minimal object and supported hosts are structurally assignable.
|
|
111
111
|
*/
|
|
112
112
|
export interface TenantToolContext {
|
|
113
113
|
requestContext?: { get(key: string): unknown };
|