Update

Introduce jsonschema based tools (#12)

Jaana Dogan
2 months ago

Commit: e8870dc

Date: June 23, 2025 at 3:48 PM

This changes replaces the Tool interface with a concrete tool type, that is represented with jsonschema. Callers provide a name, a description and a handler with custom argument and return types.

In the agentic loop, name, description and the input schema are used to supply tool schema to the model. The model can determine the arguments from the context. Model can request to execute the tool. Upon execution, events will be yielded from Tool.Run for the caller to handle.