Skip to content

AgentNet 0.2.0

Latest

Choose a tag to compare

@JordanMarr JordanMarr released this 21 Sep 04:02

Fixed

  • Tool.inject no 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 the ToolDef and are garbage-collected with it, so Tool.inject is safe to call per request / per tenant. No more Reflection.Emit.
  • XML <param> descriptions now reach the model (#10). Descriptions extracted by Tool.createWithDocs were being dropped; they are now included in the tool's JSON schema.

Added

  • Tool.inject fails immediately, with a clear message, if the value's type doesn't match the parameter.
  • Tool.inject can be applied repeatedly, binding parameters left to right.
  • Injected values are never printed: a logged ToolDef shows only which positions are bound (<injected: 0>).

Breaking

  • ToolDef has a new Bindings: ToolBindings field (only affects code constructing the record by hand — use ToolBindings.Empty).
  • Tool.inject no longer rewrites ToolDef.MethodInfo; it remains the original method, including the injected parameter. ToolDef.Parameters still lists only what the model sees.
  • Tool.GetDep (internal plumbing) was removed.

Packages: AgentNet 0.2.0, AgentNet.InProcess.Polly 0.2.0