Commit Graph

533 Commits

Author SHA1 Message Date
Ariel Frischer 89e4556e7b feat: implement trajectory model and repository for tracking agent actions
This commit introduces a new `Trajectory` model to the database, which tracks the sequence of actions taken by agents, including tool executions and their results. The addition of the `TrajectoryRepository` allows for storing and retrieving these trajectories, enabling better analysis of agent behavior and debugging of issues.

Additionally, the commit refactors existing code to utilize the new repository and model, improving the overall architecture and maintainability of the codebase. This change is essential for enhancing the capabilities of the agent system and providing a more robust framework for future development.
2025-03-10 17:05:34 -07:00
Ariel Frischer 8f2adc7f61 fix(output.py): update subtitle text from "Total Cost" to "Cost" for clarity in cost information display 2025-03-10 17:01:00 -07:00
Ariel Frischer f43c5e72b6 feat(output.py): add get_cost_subtitle function to generate cost subtitles for agent output
refactor(output.py): simplify subtitle generation in print_agent_output function by using get_cost_subtitle
2025-03-10 16:58:39 -07:00
Ariel Frischer 416689b030 feat(agent_utils.py): pass callback to print_agent_output to track costs and tokens
feat(output.py): enhance print_agent_output to display cost and token information in the output panel
2025-03-10 16:51:42 -07:00
AI Christianson 909825bf1b refactor: extract get_most_recent_id 2025-03-10 19:37:39 -04:00
AI Christianson b3010bb649 add error info to trajectory records 2025-03-10 19:12:14 -04:00
AI Christianson 78983ec20b add trajectory table 2025-03-10 18:59:42 -04:00
AI Christianson a18998be0d add project info to reasoning assist prompts 2025-03-10 18:01:56 -04:00
AI Christianson 3db7cc2ca9 improve prompt 2025-03-10 17:47:31 -04:00
AI Christianson b5e4c64042 improve prompts; make list_directory more resilient 2025-03-10 16:41:09 -04:00
AI Christianson 7d579f5557 improve prompts 2025-03-10 15:37:38 -04:00
AI Christianson e81421a95a improve prompts 2025-03-10 15:30:22 -04:00
AI Christianson c98c107ce3 use expert model for reasoning assisted mode 2025-03-10 14:58:47 -04:00
AI Christianson 51fa86b5c4 refactor: extract run_task_implementation_agent 2025-03-10 14:44:34 -04:00
AI Christianson d8dcc8ca86 refactor: extract run_planning_agent 2025-03-10 14:19:06 -04:00
AI Christianson a437a1e8c3 prompt improvements 2025-03-10 13:46:08 -04:00
AI Christianson 4f2c36b958 refactor: extract research agent 2025-03-10 13:33:00 -04:00
Ariel Frischer 2899b5f848
feat(agent_utils.py): add AnthropicCallbackHandler to track token usage and costs for Anthropic models (#118)
style(agent_utils.py): format imports and code for better readability
refactor(agent_utils.py): standardize model name and cost calculation logic for clarity and maintainability
chore(anthropic_callback_handler.py): create a new file for the AnthropicCallbackHandler implementation and related functions
2025-03-10 07:08:12 -04:00
Ariel Frischer ddd0e2ae2d feat(agent_utils.py): add AnthropicCallbackHandler to track token usage and costs for Anthropic models
style(agent_utils.py): format imports and code for better readability
refactor(agent_utils.py): standardize model name and cost calculation logic for clarity and maintainability
chore(anthropic_callback_handler.py): create a new file for the AnthropicCallbackHandler implementation and related functions
2025-03-10 01:18:44 -07:00
AI Christianson d194868cff fix binary detection 2025-03-08 22:36:06 -05:00
Ariel Frischer 053908448f
fix(env_inv.py): handle None values in sorting of installations to prevent errors (#117) 2025-03-08 21:03:06 -05:00
AI Christianson d0bf78c5f0 support reasoning assistance in research phase. 2025-03-08 19:32:05 -05:00
AI Christianson 0a143e8fff improve prompts 2025-03-08 17:08:10 -05:00
AI Christianson eaf79fbee5 fix tests; improve prompts 2025-03-08 16:29:17 -05:00
AI Christianson fd772ee369 disable reasoning assistance by default 2025-03-08 15:36:21 -05:00
AI Christianson 35f91aa128 add flags to force enable/disable reasoning assistance 2025-03-08 15:36:00 -05:00
AI Christianson ff653c7208 reasoning assistance for implementation tasks 2025-03-08 15:12:13 -05:00
AI Christianson cfb0ec148f extract thinking processing 2025-03-08 14:48:46 -05:00
AI Christianson 8f1e072e20 improve reasoning assistance 2025-03-08 14:23:35 -05:00
AI Christianson 2130334837 improve reasoning assistance prompt 2025-03-08 13:50:10 -05:00
AI Christianson d7fb269f4d improve reasoning assistance prompt 2025-03-08 13:37:38 -05:00
AI Christianson e64c4066a6 implement reasoning-guided workflows 2025-03-08 13:35:06 -05:00
AI Christianson c323098aec include environment information in prompts 2025-03-08 12:01:40 -05:00
AI Christianson f1a33fc1c0 add environment inventory 2025-03-08 10:58:23 -05:00
AI Christianson eff01b62aa improve prompts 2025-03-08 09:05:54 -05:00
AI Christianson c1b84cd645 tokens for qwq 2025-03-08 08:56:16 -05:00
AI Christianson 96dbd1c4e7 add --show-thoughts flag 2025-03-08 08:31:45 -05:00
AI Christianson 4d2b10c80c fix tests 2025-03-08 08:16:21 -05:00
AI Christianson e49cce301f support think tag on expert 2025-03-07 21:37:34 -05:00
AI Christianson cf150173aa support think tag 2025-03-07 20:29:37 -05:00
AI Christianson 66287baf0e qwq 2025-03-07 19:56:40 -05:00
AI Christianson 1643518b50 version bump 2025-03-07 18:57:19 -05:00
AI Christianson 60e4616313 fix agent context 2025-03-07 18:33:45 -05:00
AI Christianson 3607803bf5 use interrupt for tighter control of agent loop 2025-03-07 17:31:27 -05:00
AI Christianson 6e39d39b42 version bump 2025-03-07 14:14:34 -05:00
AI Christianson 089bd9b368 add --wipe-project-memory flag 2025-03-07 12:06:40 -05:00
AI Christianson 9e9c3ad3d2 should exit propagation 2025-03-07 11:25:46 -05:00
AI Christianson 77856bfa0c set agent_should_exit in gc agents 2025-03-07 10:35:02 -05:00
AI Christianson 53406f1ddf include memory in status panel 2025-03-07 09:45:38 -05:00
AI Christianson 85a461e048 fix web research 2025-03-07 09:16:39 -05:00