Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
docs: correct claims left stale by the LangChain removal
trohitg8e278104b076
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex b8d693a0..3d0b8221 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -36,7 +36,7 @@ Deep dives: [DESIGN.md](docs-internal/DESIGN.md) - [TEMPORAL_ARCHITECTURE.md](do[](https://raw.githubusercontent.com/zeenie-ai/OpenCompany/main/docs/diagrams/ai-agent-routing.svg)-Direct chat completions and every new agent execution use the native SDK layer in [services/llm/](server/services/llm/) through `ChatUnifier`. The shared `run_native_agent_loop` consumes lossless native messages and provider-neutral `AgentToolSpec` definitions; Groq, Cerebras, xAI, DeepSeek, Kimi, Mistral, and the local servers ride the OpenAI-compatible client with provider-specific `base_url` values. LangChain remains only in the frozen compatibility branch for pre-cutover or explicitly legacy-pinned Temporal histories. Team leads (`orchestrator_agent`, `ai_employee`) receive an intrinsic Task Manager and may assign only agents connected to their `input-teammates` handle. Delegate descriptors stay internal. `task_manager(assign_task)` persists and returns `queued`; Temporal hands work to a detached `DelegatedTaskWorkflow`, while legacy execution reuses the same durable task record. Completion emits `taskTrigger` with owning execution context for a separate lead review. The RLM Agent uses a REPL-based recursive language model pattern. Long-running activities remain alive through activity heartbeats.+Direct chat completions and every new agent execution use the native SDK layer in [services/llm/](server/services/llm/) through `ChatUnifier`. The shared `run_native_agent_loop` consumes lossless native messages and provider-neutral `AgentToolSpec` definitions; Groq, Cerebras, xAI, DeepSeek, Kimi, Mistral, and the local servers ride the OpenAI-compatible client with provider-specific `base_url` values. LangChain has been removed; Temporal histories recorded before the native cutover are refused rather than replayed. Team leads (`orchestrator_agent`, `ai_employee`) receive an intrinsic Task Manager and may assign only agents connected to their `input-teammates` handle. Delegate descriptors stay internal. `task_manager(assign_task)` persists and returns `queued`; Temporal hands work to a detached `DelegatedTaskWorkflow`, while legacy execution reuses the same durable task record. Completion emits `taskTrigger` with owning execution context for a separate lead review. The RLM Agent uses a REPL-based recursive language model pattern. Long-running activities remain alive through activity heartbeats.Deep dives: [agent_architecture.md](docs-internal/agent_architecture.md) - [native_llm_sdk.md](docs-internal/native_llm_sdk.md) - [agent_teams.md](docs-internal/agent_teams.md) - [memory_compaction.md](docs-internal/memory_compaction.md) - [cli_agent_framework.md](docs-internal/cli_agent_framework.md)diff --git a/docs-internal/TEMPORAL_ARCHITECTURE.md b/docs-internal/TEMPORAL_ARCHITECTURE.mdindex db03a09f..b20ba4a1 100644--- a/docs-internal/TEMPORAL_ARCHITECTURE.md+++ b/docs-internal/TEMPORAL_ARCHITECTURE.md@@ -411,13 +411,12 @@ The `agent.prepare_payload.v1` result is recorded in history and thereforeacts as the deterministic engine selector. New executions default to`llm_engine="native"` with Message Wire V2 and use `ChatUnifier` plus thenative provider SDKs for every turn. Histories whose recorded prepare result-has no engine marker are pre-cutover histories and follow the frozen LangChain-path with their historical payload, activity commands, and message shape. The-temporary `AGENT_LLM_ENGINE=langchain` emergency switch can also pin a newly-prepared execution to that compatibility path. Those emergency executions are-marker-bearing histories whose recorded `llm_engine` is `langchain`; they-continue replaying the compatibility branch just like markerless pre-cutover-histories. Changing the environment cannot change an execution after it starts,+has no engine marker are pre-cutover histories: their messages are in a retired+wire format the native reader cannot interpret, so `agent.execute_llm_step.v1`+refuses them with a non-retryable+`ApplicationError(type="InvalidAgentLLMEngine")` rather than misreading them.+The operator fix is to Reset the deployment, which starts a fresh generation.+Changing the environment cannot change an execution after it starts,and a native run never falls back after a provider request starts.`emit_phase(phase, status?)` is a thin helper that schedules `agent.broadcast_progress.v1`. The activity emits `WorkflowEvent.agent_progress` (CloudEvents v1.0, `type="com.opencompany.agent.progress"`) for FE consumers; when `status` is supplied it also drives a raw-dict `update_node_status` for the canvas-glow color (executing / success / error). Same dual-channel pattern F4.A's `_node_activity` uses. When this workflow is itself a delegated child (`context["parent_node_id"]` set), every `emit_phase` call ALSO schedules a second broadcast against the parent's `node_id` with `phase="delegating"` — the parent's canvas badge then advances in real time while the child loops, instead of freezing at "executing" glow until the child completes.@@ -633,7 +632,6 @@ through `Settings`:| Env var | `.env.template` default | Purpose ||---|---|---|-| `AGENT_LLM_ENGINE` | `native` | `agent.prepare_payload.v1` reads this with `os.getenv` and records `native` or `langchain` in each new execution's prepare result. It affects only executions prepared after the environment changes; recorded histories keep their selected engine. `langchain` is the emergency compatibility setting and is removed with the legacy replay branch in Stage 2. |## Debuggingdiff --git a/docs-internal/agent_architecture.md b/docs-internal/agent_architecture.mdindex f0b3fcc6..3582f800 100644--- a/docs-internal/agent_architecture.md+++ b/docs-internal/agent_architecture.md@@ -513,10 +513,10 @@ Both flags default to `true` in `.env.template`.New `AgentWorkflow` executions record `llm_engine="native"` and`message_wire_version=2` in the `agent.prepare_payload.v1` result by default.-Recorded histories whose prepare result predates those markers replay the-frozen LangChain / `StructuredTool` branch. The temporary-`AGENT_LLM_ENGINE=langchain` emergency setting can also create a marker-bearing-prepare result explicitly pinned to that compatibility branch. Marker-bearing+Recorded histories whose prepare result predates those markers cannot run:+`agent.execute_llm_step.v1` refuses them with a non-retryable+`InvalidAgentLLMEngine`, because their messages are in a retired wire format.+Marker-bearingnative executions never fall back after a provider request starts, and changingthe environment does not alter an execution whose prepare result is already inhistory.diff --git a/docs-internal/memory_lifecycle.md b/docs-internal/memory_lifecycle.mdindex 72e39edb..37658a07 100644--- a/docs-internal/memory_lifecycle.md+++ b/docs-internal/memory_lifecycle.md@@ -251,8 +251,8 @@ Temporal activities.`prepare_payload.v1` records `llm_engine` and the message wire version;new executions use native Message Wire V2, preserving Gemini thoughtsignatures, Anthropic signed/redacted thinking, and OpenAI continuation-metadata. Histories recorded before cutover lack that engine field and-deterministically use the temporary LangChain compatibility branch.+metadata. Histories recorded before cutover lack that engine field; their+messages are in a retired wire format and the LLM step refuses them.`persist_turn.v1` appends per turn, so a mid-loop failure does not loseprogress.diff --git a/docs-internal/node-logic-flows/ai_agents/chatAgent.md b/docs-internal/node-logic-flows/ai_agents/chatAgent.mdindex f68e05f4..ca773172 100644--- a/docs-internal/node-logic-flows/ai_agents/chatAgent.md+++ b/docs-internal/node-logic-flows/ai_agents/chatAgent.md@@ -82,8 +82,8 @@ flowchart TDchild-agent tool discovery).- **Native agent loop**: current executions call the shared`run_native_agent_loop` / `run_native_llm_step` service through- `ChatUnifier`. The LangChain tool-binding loop is retained only for- replaying eligible pre-cutover or emergency-pinned Temporal histories.+ `ChatUnifier`. It is the only loop; pre-cutover Temporal histories are+ refused rather than replayed.- **Task context injection** mirrors `aiAgent`: `format_task_context` wrapsthe task result as a plain-English instruction that the LLM must "reportnaturally", then all tools are stripped if the task has already completeddiff --git a/docs-internal/tool_building_pipeline.md b/docs-internal/tool_building_pipeline.mdindex 9d8a24d0..976a3a62 100644--- a/docs-internal/tool_building_pipeline.md+++ b/docs-internal/tool_building_pipeline.md@@ -241,10 +241,10 @@ When `TEMPORAL_PER_TYPE_DISPATCH=true` and the run is happening inside a TemporaThis means tool calls inside an agent loop get Temporal's retry / timeout / heartbeat semantics independently of the parent agent's. A `code-exec` task burns its own retries; a `browser` task survives past the parent's `start_to_close_timeout` via its own heartbeat. See [TEMPORAL_ARCHITECTURE.md](./TEMPORAL_ARCHITECTURE.md).-Histories recorded before the engine marker existed deterministically replay-the frozen LangChain branch, which rebuilds the historical `StructuredTool`-surface. That compatibility branch is selected only by the missing-`llm_engine` marker; it is not the path for new executions.+Histories recorded before the engine marker existed cannot replay: their tool+and message shapes belong to a retired wire format, so `execute_llm_step`+refuses them with a non-retryable `InvalidAgentLLMEngine` instead of+reconstructing them.## 10. Auto-skill edges