Repository navigation
Fixed
Tool.injectno longer grows memory per call (#9). Each call used to emit a non-collectible dynamic type and add a never-removed entry to a static dep store. Injected values now live on theToolDefand are garbage-collected with it, soTool.injectis safe to call per request / per tenant. No moreReflection.Emit.- XML
<param>descriptions now reach the model (#10). Descriptions extracted byTool.createWithDocswere being dropped; they are now included in the tool's JSON schema.
Added
Tool.injectfails immediately, with a clear message, if the value's type doesn't match the parameter.Tool.injectcan be applied repeatedly, binding parameters left to right.- Injected values are never printed: a logged
ToolDefshows only which positions are bound (<injected: 0>).
Breaking
ToolDefhas a newBindings: ToolBindingsfield (only affects code constructing the record by hand — useToolBindings.Empty).Tool.injectno longer rewritesToolDef.MethodInfo; it remains the original method, including the injected parameter.ToolDef.Parametersstill lists only what the model sees.Tool.GetDep(internal plumbing) was removed.
Packages: AgentNet 0.2.0, AgentNet.InProcess.Polly 0.2.0