MingaAgent.ToolRouter.Context (Minga v0.1.0)

Copy Markdown View Source

Routing context captured by agent tool callbacks.

project_view is the first routing layer. fork_store and changeset remain available during migration so existing no-ProjectView behavior can keep working unchanged.

Summary

Types

Changeset reference, nil when changeset routing is disabled.

Fork store reference, nil when fork routing is disabled.

t()

Functions

Clears the captured ProjectView so routing can fall back to forks or changesets.

Types

changeset()

@type changeset() :: pid() | nil

Changeset reference, nil when changeset routing is disabled.

fork_store()

@type fork_store() :: pid() | nil

Fork store reference, nil when fork routing is disabled.

t()

@type t() :: %MingaAgent.ToolRouter.Context{
  changeset: changeset(),
  fork_store: fork_store(),
  project_view: MingaAgent.ProjectView.t() | nil
}

Functions

clear_project_view(context)

@spec clear_project_view(t()) :: t()

Clears the captured ProjectView so routing can fall back to forks or changesets.