feat(controller): add agent tool catalogue - #776
Draft
elikoga wants to merge 8 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
run_device_command, which queues a root command on a connected device through the existing relay/task infrastructurepatch_configuration_fieldusing RFC 6901 JSON Pointer mutations; it preserves unrelated configuration fields and shares the normal connected-device type safety gatedisplay-manager.service, and run explicitly requested graphical commands asthymiskioskLocal assistant setup
The controller runs normally without an LLM. To enable the assistant locally:
.env.examplesetsTHYMIS_AGENT_MODEL=openrouter:openai/gpt-4.1-mini. Use a model that supports tool calls and image input. The provider key intentionally remains a shell environment variable rather than a repository or.envsecret. Sign in athttp://localhost:8000, then open Thymis Assistant in the bottom-right corner.Verification
uv run --python python3.13 pytest tests/test_agent_tools.py tests/routes/test_state_device_type_gate.py tests/routes/test_switch_config_api.pyuv run --python python3.13 pytest tests/test_agent_tools.py tests/test_agent_runtime.py tests/routes/test_agent_chat_api.py— 16 passeduv run --python python3.13 pytest tests/test_agent_tools.py tests/test_agent_runtime.py— 17 passeduv run --python python3.13 pytest tests/test_agent_runtime.py— 8 passeduvx ruff check --target-version py312 thymis_controller/agent_runtime.py thymis_controller/agent_tools/arguments.py thymis_controller/agent_tools/toolbox.py tests/test_agent_runtime.py tests/test_agent_tools.pynix develop .#forNpmTesting -c env THYMIS_DEV_SHELL=true UVICORN_PORT=8002 npx playwright test tests/agent-chat.spec.ts --workers=1 --retries=0— 6 passednpm run buildnpm run check, format, lint in ./frontend