Jido.AI.Skill.AgentIntegration (Jido AI v2.3.0)

Copy Markdown View Source

Builds the Agent Skills catalog, loading tool, and reserved tool context for a Jido.AI.Agent when the agent instance initializes.

Discovery is explicit because scanning a project loads instructions from its filesystem. Passing true trusts the standard project and user skill roots; passing a list trusts only those roots. Keyword options expose the discovery bounds and a custom trust predicate. Keyword options do not trust any root unless :trust is explicitly set.

Summary

Functions

Prepares Agent Skills integration data.

Types

t()

@type t() :: %{
  specs: [Jido.AI.Skill.Spec.t()],
  index: String.t(),
  tools: [module()],
  tool_context: map()
}

Functions

prepare(value \\ false)

@spec prepare(false | nil | true | [String.t()] | keyword()) ::
  {:ok, t()} | {:error, term()}

Prepares Agent Skills integration data.

Accepted values:

  • false or nil - disable Agent Skills integration
  • true - trust and discover the standard project and user roots
  • a list of paths - trust and discover only those roots
  • keyword options - accepts :paths, :trust, :max_depth, :max_directories, and :exclude_directories