The two modes
Every chat request in FIM One starts with a question: is an Agent selected? The answer determines how resources — Connectors, Knowledge Bases, Skills, and MCP servers — are discovered and assembled into the tool set the LLM can use. Agent-Constrained Mode activates when the user picks a specific Agent. The system loads only the resources that Agent has been explicitly configured with:- Connectors: only the Agent’s bound
connector_idsare loaded as tools. - Knowledge Bases: only the Agent’s bound
kb_idsare injected as retrieval tools. - Skills: globally available when the Skills module is enabled (it is off by default) — all active Skills visible to the user are injected, because Skills are organizational SOPs, not Agent-specific knowledge. (See Skills as Global SOPs below.)
- MCP Servers: only the Agent’s bound
mcp_server_idsare loaded; an Agent with none bound gets no MCP tools. - Instructions: the Agent’s
instructionsfield defines the persona and behavioral guidelines injected into the system prompt.
- Connectors: all Connectors visible to the user (own + subscribed from an organization or the Market) are loaded.
- Knowledge Bases: the user’s own KBs are available for retrieval via
kb_retrieve(knowledge bases cannot be shared). - Skills: all active Skills visible to the user are injected as SOP stubs.
- MCP Servers: all active servers visible to the user.
- Instructions: a generic assistant persona is used.
_resolve_tools(), which is called on every chat request:
The practical effect: users can start chatting immediately without configuring an Agent. The system discovers available resources and exposes them as tools. Selecting an Agent narrows the scope — it does not unlock new capabilities, it focuses existing ones.
What each mode discovers
The two modes differ in scope, not in kind. Both produce aToolRegistry — they just fill it differently.
Auto-Discovery Mode (no Agent selected):
Agent-Constrained Mode (Agent selected):
The key asymmetry: Connectors, Knowledge Bases and MCP Servers are scoped by the Agent, but Skills remain global in both modes.
CallAgentTool (agent delegation) is only available in Auto-Discovery mode — it is not registered when a specific Agent is selected. This is a security measure: a marketplace agent could otherwise use call_agent to invoke other agents and access their private prompts. Skills are organizational rules (everyone follows the same SOPs), while Connectors and KBs are capability bindings (different agents connect to different systems).
Tout est un outil
Au niveau du LLM, tous les types de ressources convergent en une liste plate d’outils appelables. Le LLM n’a aucune conscience structurelle de s’il appelle un Connecteur, un serveur MCP, ou une Base de Connaissances. Il voit unToolRegistry — un ensemble de fonctions avec des noms, des descriptions et des schémas de paramètres.
L’insight clé : un Agent n’est pas un outil — c’est l’entité qui utilise les outils. L’Agent contribue ses instructions au prompt système et détermine quels outils sont disponibles. Mais du point de vue du LLM, il n’y a aucun concept « d’agent » — seulement un prompt système et un ensemble de fonctions appelables.
Cette uniformité est ce qui rend le système extensible. Ajouter un nouveau type de ressource signifie implémenter le protocole
Tool (name, description, parameters_schema, run()). Les moteurs d’exécution, la gestion du contexte et la couche d’interaction avec le LLM restent inchangés.
Compétences en tant que procédures opérationnelles standard mondiales
Les compétences occupent une couche au-dessus des agents. Ce sont des politiques et des procédures organisationnelles que chaque agent doit suivre, quel que soit l’agent sélectionné.Pourquoi les compétences ne sont pas liées aux agents
Une compétence comme « Customer Complaint Handling SOP » s’applique à chaque agent qui interagit avec les clients. Lier les compétences aux agents crée un problème de propriété bidirectionnelle : si une compétence orchestre les agents, et les agents possèdent les compétences, qui contrôle qui ? Les compétences sont globales par conception — ce sont des règles d’entreprise, pas des connaissances spécifiques aux agents. La fonction_resolve_tools() charge toutes les compétences actives visibles pour l’utilisateur indépendamment de la sélection d’agent, en utilisant le même filtre resolve_visibility() utilisé pour les autres ressources.
Deux modes d’injection
Les compétences supportent deux modes d’injection — progressif (par défaut) et inline — contrôlés parSKILL_TOOL_MODE ou la model_config_json.skill_tool_mode de l’agent. En mode progressif, seuls des stubs compacts apparaissent dans le prompt système ; le LLM appelle read_skill(name) à la demande pour charger le contenu complet. Cela fait partie de l’architecture Progressive Disclosure plus large de FIM One qui minimise la consommation de contexte sur tous les types de ressources.
Agent as persona, not container
FIM One’s architecture reflects a deliberate shift from an Agent-centric model to a Resource-centric model. Previous model: the Agent was a container that gated access to all resources. No Agent selected meant no Connectors, no Skills, no specialized KB. The Agent was the mandatory entry point for any capability. Current model: the Agent is a persona — a set of instructions and behavioral guidelines — combined with an optional resource constraint. Resources exist independently of Agents. Selecting an Agent narrows the scope; not selecting one opens it fully. This means:- Users can start chatting immediately without configuring an Agent.
- The system auto-discovers available resources and exposes them as tools.
- Agents become lightweight personas that can be created quickly — just write instructions and optionally bind specific Connectors and KBs.
- Resource management is decoupled from Agent management. Publishing a Connector to an organization makes it available to every member who subscribes to it — in auto-discovery mode, in Agent binding dropdowns, and in agent delegation resolution.
Délégation d’agent
FIM One prend en charge la délégation de tâches à des agents spécialisés viaCallAgentTool — mais uniquement en mode Auto (aucun agent sélectionné). Lorsqu’un utilisateur sélectionne un agent spécifique, la délégation est désactivée et l’agent se concentre exclusivement sur ses propres outils.
Two modes: Auto vs Agent-selected
Why delegation is disabled in Agent-selected mode: Security. A marketplace agent could use
call_agent to invoke other agents and read their private system prompts. By restricting delegation to Auto mode — where the system LLM (not any individual agent’s prompt) controls the flow — private agent prompts are never exposed to untrusted agent configurations.
Mode Auto comme couche d’orchestration
Le mode Auto est un concept de première classe dans l’interface utilisateur. Le sélecteur d’agent affiche « Auto » comme option par défaut. Lorsque le mode Auto est actif, le LLM système agit comme un orchestrateur : il voit le catalogue complet des agents visibles et peut déléguer les tâches au spécialiste le mieux adapté à chaque itération. Cela élimine le besoin d’un « agent parent » dédié — le système lui-même est l’orchestrateur.Catalogue d’agents
À l’exécution, tous les agents actifs et non-builder visibles par l’utilisateur sont assemblés dans un catalogue. Le nom et la description de chaque agent sont listés dans le schéma de paramètres de l’outilcall_agent, permettant au LLM de choisir le bon spécialiste sémantiquement — sans routage codé en dur.
Full tool inheritance
When a delegated agent is invoked viacall_agent(agent_id, task), it is assembled the way a chat with that agent is: a complete ToolRegistry built from its own configuration — its bound Connectors, Knowledge Bases and MCP servers (connected for the duration of the call) and its built-in tool categories — together with its own approval gate. Delegated agents are full execution units, not text-only advisors. An agent that has been switched off or is no longer visible to the user when it is called is reported as unavailable instead of being run.
Délégation à un seul niveau
Pour éviter la récursion infinie, les agents délégués ne reçoivent pas l’outilcall_agent. La délégation est toujours à un seul niveau : le mode Auto appelle un spécialiste, le spécialiste exécute et retourne un résultat. Le système synthétise les résultats de plusieurs agents délégués.
Exécution parallèle
En mode d’appel de fonction natif, le LLM peut invoquer plusieurs appelscall_agent en un seul tour. Ceux-ci s’exécutent simultanément via asyncio.gather, permettant des modèles comme « rechercher trois sources simultanément ».
Visibility model
All resource discovery — in both modes — is governed by a unified visibility model with two tiers:
The
resolve_visibility() function in web/visibility.py builds a SQL filter that covers both tiers in a single query:
- Auto-discovering Connectors in no-agent mode
- Building the Agent catalog for
CallAgentTool - Loading visible Skills for system prompt injection
- MCP server resolution
- Agent configuration lookup (ensuring a user can only select Agents visible to them)
Relationship map
FIM One has two parallel execution paradigms — Chat (Agent-driven) and Workflow (DAG-driven) — that share the same underlying resources but orchestrate them differently. Key takeaways from the diagram:- Agent and Workflow are parallel paradigms. Both can use Connectors, Knowledge Bases, and MCP Servers — but through different mechanisms. Agents use them as tools in a
ToolRegistry; Workflows use them as typed DAG nodes. - Workflow can orchestrate Agents via the
AGENTnode — a Workflow step can invoke a full Agent with its own ReAct/DAG loop. The reverse also works: an Agent can run a Workflow through therun_workflowtool when the Workflows module is enabled, except workflows that contain a Human Intervention step. - Skills are injected into Agents only. Skills are system prompt text — they guide Agent behavior. Workflows don’t consume Skills because Workflow nodes execute deterministic logic, not LLM-guided reasoning.
- Shared resources, different access patterns. A Connector can be called by an Agent (via
ConnectorToolAdapter), by a Workflow (viaCONNECTORnode), or by both in the same business process — e.g., a Workflow triggers an Agent that queries the same Connector the Workflow also uses in a later step.
Workflow Engine — the other execution paradigm
While this document focuses on Agent-driven chat execution, FIM One includes a full Workflow Engine — a visual DAG editor with 9 node types for fixed-process automation. It is an optional module, off by default.
The two paradigms are complementary. Use Agents when the task is open-ended (“analyze this quarter’s sales data and recommend actions”). Use Workflows when the process is known (“every Monday, pull new invoices from ERP, run compliance checks, and route exceptions to a human reviewer”). A Workflow can invoke an Agent for any step that needs flexible reasoning within an otherwise fixed pipeline.
For details on Agent execution modes and Workflow node types, see Execution Modes.