v2.5

February 17, 2026

Define tools, knowledge, and team members as callable factories for runtime flexibility

Tools, knowledge sources, and team members can now be defined as callable factories that are resolved at runtime. Each factory receives full RunContext access and supports caching, allowing dynamic configuration based on the current user, session, or environment.

This removes the need to pre-instantiate every component at startup and enables more flexible, multi-tenant, and context-aware agent configurations without custom wiring.

Details

  • Define tools, knowledge, and team members as functions that return the configured instance
  • Factories are invoked at runtime with access to RunContext (user, session, environment)
  • Built-in caching prevents redundant initialization across runs
  • Supports multi-tenant and dynamic configuration patterns out of the box

Learn more in the Callable Factories docs