LlmCore.Agent.ToolDispatch.Components.ResolveStrategy (llm_core v0.3.0)

Copy Markdown View Source

Determines the dispatch strategy for a tool call.

Checks if a recipe exists for the tool. If yes, strategy is :recipe and the event flows to the recipe branch. If no, strategy is :passthrough and the event goes to DirectResolve.

This is a static structure with dynamic routing — the Switch after this stage uses the strategy field to route. The recipe branch exists whether or not any given call uses it.

Summary

Functions

Sets the dispatch strategy based on recipe presence.

Functions

call(event, opts)

Sets the dispatch strategy based on recipe presence.

Parameters

  • event%Event{} with optional recipe field
  • opts — ALF stage options (unused)

Returns

Updated %Event{} with strategy set to :passthrough or :recipe.