Commit Graph
7 Commits
Author SHA1 Message Date
Shivering Ocelot 161dfd507f fix: unstuck agent after tool calls, display completed streams 2026-10-09 13:36:06 -05:00
Shivering Ocelot 659b7497fb feat(backend): tool support in send agent prompt, regularize inference messages (wip) 2026-10-02 05:55:18 -05:00
Shivering d934dc0ef7 WIP Stash 2026-06-21 08:52:53 -05:00
Shivering Ocelot 9585008433 wip: add tools to agent control and improve tool class 2026-06-08 05:18:38 -05:00
Shivering Ocelot a10224d21e upgrade run ui 2026-06-06 16:36:01 -05:00
Shivering Ocelot 17d3041a60 feat: (WIP) improve openrouter tool parsing and openai tool encoding 2026-06-04 11:27:42 -05:00
Shivering Ocelot 4e15b44d39 Refactor agent execution to use AgentRun with OpenAI-compatible API
Major refactoring to support isolated run objects with streaming, events, and OpenAI-compatible endpoints.

## Backend Changes

- **Agent class**: Added `run()` method, `received_message()` wraps chat into AgentRun
- **AgentRun class**: New class for run state with event system, serialization, and user tracking
- **inference.py**: Complete refactor with `build_messages()`, `chat_completion()`, tool support for llama-cpp/ollama/replicate
- **tools.py**: New centralized tool management (ToolSpec, ToolParameter, format_tools_for_engine)
- **tools.py**: Removed legacy Toolset/Action/ToolDescription system
- **server.py**: Added OpenAI-compatible `/api/openai/v1/chat/completions` endpoint with streaming support
- **temporary.py**: Added `self.runs` dict to State class
- **expert.py**: Refactored to use new Agent.run() signature
- **scripted.py**: Updated to raise NotImplementedError

## Frontend Changes

- **backend.js**: Added `onRunEvents()` for run event subscriptions
- **Sidebar.vue**: Added runs navigation mode
- **router/index.js**: Renamed User route to RunsView
- **RunsView.vue**: New view for listing/monitoring agent runs

## Breaking Changes

- Agent `prompt()` signature changed: `(instruction, input=None, **kwargs)` instead of `(content)`
- Agent `received_message()` must use AgentRun pattern
- Tools.py removed, functionality moved to tool.py
- Deprecated tool prompt/action system removed
2026-05-25 18:05:17 -05:00