Skip to content

Commit d016aec

Browse files
committed
chore: bump version to 0.1.192
1 parent cf2cb00 commit d016aec

25 files changed

Lines changed: 221 additions & 134 deletions

dist/api/agent.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,26 @@ export interface AgentOptions extends BaseAgentConfig {
5555
onFallback?: (error: Error, fallbackProvider: string) => void;
5656
/** Model router for intelligent provider selection per-call. */
5757
router?: IModelRouter;
58+
/**
59+
* Routing hints passed to the model router's `selectModel()` call.
60+
*
61+
* Useful for declaring capability requirements up-front so the router
62+
* can pick a model that actually supports what the agent needs:
63+
*
64+
* ```ts
65+
* agent({
66+
* name: 'World Architect',
67+
* router: policyAwareRouter,
68+
* routerParams: { requiredCapabilities: ['json_mode'] },
69+
* output: WorldIdentitySchema,
70+
* });
71+
* ```
72+
*
73+
* When omitted, the router receives a minimal default params object
74+
* (taskHint only, plus `function_calling` in requiredCapabilities when
75+
* tools are declared).
76+
*/
77+
routerParams?: Partial<import('../core/llm/routing/IModelRouter.js').ModelRouteParams>;
5878
/**
5979
* Optional Zod schema for validating the LLM's structured output.
6080
*

dist/api/agent.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/api/agent.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/api/agent.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core/llm/routing/PolicyAwareRouter.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ export declare class PolicyAwareRouter implements IModelRouter {
4747
* - mature / private-adult: check overrides, then catalog, return OpenRouter result.
4848
*/
4949
selectModel(params: ModelRouteParams, availableModels?: ModelInfo[]): Promise<ModelRouteResult | null>;
50+
/**
51+
* Map a policy tier + optional content intent to the content permission
52+
* tags the catalog filter requires. Used when filtering for capabilities.
53+
*/
54+
private permissionsForTier;
55+
/** Numeric quality ranking for `sort()`. Higher is better. */
56+
private qualityRank;
5057
/**
5158
* Build a minimal {@link ModelRouteResult} with a stub provider.
5259
* The provider stub satisfies the interface contract while signalling to

dist/core/llm/routing/PolicyAwareRouter.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core/llm/routing/PolicyAwareRouter.js

Lines changed: 40 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core/llm/routing/PolicyAwareRouter.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/memory/CognitiveMemoryManager.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,18 @@ export declare class CognitiveMemoryManager implements ICognitiveMemoryManager {
207207
getGraph(): IMemoryGraph | null;
208208
getObserver(): MemoryObserver | null;
209209
getProspective(): ProspectiveMemoryManager | null;
210+
/**
211+
* Export the full brain state as a JSON string.
212+
* Delegates to JsonExporter through the MemoryStore's brain.
213+
* Throws if no brain is attached.
214+
*/
215+
exportToString(options?: import('./io/facade/types.js').ExportOptions): Promise<string>;
216+
/**
217+
* Import a JSON brain payload into the attached brain.
218+
* Delegates to JsonImporter through the MemoryStore's brain.
219+
* Throws if no brain is attached.
220+
*/
221+
importFromString(json: string, options?: Pick<import('./io/facade/types.js').ImportOptions, 'dedup'>): Promise<import('./io/facade/types.js').ImportResult>;
210222
/**
211223
* Attach a HyDE retriever to enable hypothesis-driven memory recall.
212224
*

0 commit comments

Comments
 (0)