LLM Integration Guide for IntentKit
This guide provides comprehensive information for Large Language Models (LLMs) working with the IntentKit autonomous agent framework.
Project Overview
IntentKit is an autonomous agent framework that enables creation and management of AI agents with capabilities.
Architecture Understanding
IntentKit Package (intentkit/)
- The intentkit/ folder is published as a pip package.
- The intentkit/core/ folder contains the agent system, driven by LangGraph.
- The intentkit/models/ folder houses the entity models, most of it both have padantic models for memory use and sqlalchemy models for storage.
- The intentkit/config/ folder contains the system level config, like database config, LLM provider api keys and skill provider api keys.
- The intentkit/skills/ folder contains the skills system, driven by LangChain's BaseTool. LLM can call skills to fetch data, perform actions, or interact with the environment.
- The intentkit/utils/ folder contains the utility functions, like logging, formatting, etc.
- The intentkit/abstracts/ folder contains interfaces, for core/ and skills/ use.
IntentKit App (app/)
- The app/ folder contains local API server, autonomous runner, and background scheduler.
- User can use intentkit package in their own project for customization, or just start the intentkit local API and frontend for local development or single-user use(no-auth).
Operation or Temporary Scripts (scripts/)
- Agent management scripts
- Manual scripts for potential use
- Migration scripts
Integration Tests (tests/)
- Core package testing in
tests/core/
- API server testing in
tests/api/
- Skill integration testing in
tests/skills/
Frontend (frontend/)
- The frontend/ folder contains the Next.js application for managing agents.
- See
frontend/AGENTS.md for detailed architecture and development guidelines.
Technology Stack
- Package manager: uv
- Virtual environment: .venv, please use
source .venv/bin/activate at least once to active virtual environment before running any command.
- Lint: ruff, run
ruff format & ruff check --fix after your final edit.
- Language Server: BasedPyright, please make sure the changed files have no
basedpyright errors.
- API framework: fastapi, Doc in https://fastapi.tiangolo.com/
- DB ORM: SQLAlchemy 2.0, please check the 2.0 api for use, do not use the legacy way. Doc in https://docs.sqlalchemy.org/en/20/
- Model: Pydantic V2, Also be careful not to use the obsolete V1 interface. Doc in https://docs.pydantic.dev/latest/
- Testing Framework: pytest, run
pytest after your final edit.
Rules
- Always use the latest version of the new package.
- Always use English for code comments.
- Always use English to search.
- Unless I specifically ask you to do so, do not git commit after coding.
- Always place imports at the beginning of the file in your new code.
- After implementing the functionality, there is no need to write dedicated documentation or example scripts.
Dev Guide
IntentKit Source Code
- To avoid circular dependencies, we'll establish an order for packages in the intentkit/ folder, where packages on the left can never import packages on the right: utils, config, models, abstracts, clients, skills, core
Skills Development
When you need to develop or modify skills, read the detailed guide: agent_docs/skill_development.md
Ops Guide
When you need to perform Git commits, pull requests, or releases, read the detailed guide: agent_docs/ops_guide.md
1---2name: 528-llm-a94e1db93description: LLM Integration Guide for IntentKit4---5# LLM Integration Guide for IntentKit67This guide provides comprehensive information for Large Language Models (LLMs) working with the IntentKit autonomous agent framework.89## Project Overview1011IntentKit is an autonomous agent framework that enables creation and management of AI agents with capabilities.1213## Architecture Understanding14151. **IntentKit Package** (`intentkit/`)16 - The intentkit/ folder is published as a pip package.17 - The intentkit/core/ folder contains the agent system, driven by LangGraph.18 - The intentkit/models/ folder houses the entity models, most of it both have padantic models for memory use and sqlalchemy models for storage.19 - The intentkit/config/ folder contains the system level config, like database config, LLM provider api keys and skill provider api keys.20 - The intentkit/skills/ folder contains the skills system, driven by LangChain's BaseTool. LLM can call skills to fetch data, perform actions, or interact with the environment.21 - The intentkit/utils/ folder contains the utility functions, like logging, formatting, etc.22 - The intentkit/abstracts/ folder contains interfaces, for core/ and skills/ use.23242. **IntentKit App** (`app/`)25 - The app/ folder contains local API server, autonomous runner, and background scheduler.26 - User can use intentkit package in their own project for customization, or just start the intentkit local API and frontend for local development or single-user use(no-auth).27283. **Operation or Temporary Scripts** (`scripts/`)29 - Agent management scripts30 - Manual scripts for potential use31 - Migration scripts32334. **Integration Tests** (`tests/`)34 - Core package testing in `tests/core/`35 - API server testing in `tests/api/`36 - Skill integration testing in `tests/skills/`37385. **Frontend** (`frontend/`)39 - The frontend/ folder contains the Next.js application for managing agents.40 - See `frontend/AGENTS.md` for detailed architecture and development guidelines.4142## Technology Stack43- Package manager: uv44- Virtual environment: .venv, please use `source .venv/bin/activate` at least once to active virtual environment before running any command.45- Lint: ruff, run `ruff format & ruff check --fix` after your final edit.46- Language Server: BasedPyright, please make sure the changed files have no `basedpyright` errors.47- API framework: fastapi, Doc in https://fastapi.tiangolo.com/48- DB ORM: SQLAlchemy 2.0, please check the 2.0 api for use, do not use the legacy way. Doc in https://docs.sqlalchemy.org/en/20/49- Model: Pydantic V2, Also be careful not to use the obsolete V1 interface. Doc in https://docs.pydantic.dev/latest/50- Testing Framework: pytest, run `pytest` after your final edit.5152## Rules53541. Always use the latest version of the new package.552. Always use English for code comments.563. Always use English to search.574. Unless I specifically ask you to do so, do not git commit after coding.585. Always place imports at the beginning of the file in your new code.596. After implementing the functionality, there is no need to write dedicated documentation or example scripts.6061## Dev Guide6263### IntentKit Source Code64651. To avoid circular dependencies, we'll establish an order for packages in the intentkit/ folder, where packages on the left can never import packages on the right: utils, config, models, abstracts, clients, skills, core6667### Skills Development6869**When you need to develop or modify skills**, read the detailed guide: `agent_docs/skill_development.md`7071## Ops Guide7273**When you need to perform Git commits, pull requests, or releases**, read the detailed guide: `agent_docs/ops_guide.md`