Commit Graph

74 Commits

Author SHA1 Message Date
Markus Ecker 0a11a05772 feat(sdk-python): A2UI helpers and before_agent ID reuse fix
Add copilotkit.a2ui module with operation builders and prompt helpers,
fix SystemMessage ID reuse in before_agent to prevent LangGraph duplication,
add Pydantic model_dump serialization for app_context.
2026-04-08 12:50:28 -07:00
Ran Shem Tov a7e3e131d5 chore: loosen up langgraph dependencies on copilotkit and release 2026-04-07 13:14:00 +02:00
Ran Shem Tov aae2c5cee1 chore: use latest ag-ui langgraph version 2026-04-03 14:57:45 +02:00
Alem Tuzlak 79ce60c580 chore: migrate from eslint+prettier to oxlint+oxfmt
Replace eslint and prettier with oxlint and oxfmt for faster linting
and formatting across the monorepo. Remove all eslint and prettier
configs, dependencies, and related packages. Add .oxlintrc.json and
.oxfmtrc.json for the new tooling. Update CI workflows and lefthook
hooks accordingly. Reformat codebase with oxfmt.

https://claude.ai/code/session_01GMkSf29p78HuMR1mbXn8He
2026-04-02 16:39:05 +02:00
Tyler Slaton 368663dd08 fix(sdk-python): add missing import re in copilotkit_lg_middleware
The re module was used in _fix_messages_for_bedrock (re.compile) but
never imported, causing NameError at runtime when the middleware is
invoked. Bumps version to 0.1.83.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 16:42:56 -07:00
Tyler Slaton a33d24496b chore(sdk-python): bump version to 0.1.82
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2026-03-20 16:27:22 -07:00
Ran Shem Tov 3c98ceab9c chore: release py-sdk 0.1.81 2026-03-19 13:45:33 +01:00
Ran Shem Tov 2f2fdec7ee chore: fix python test ci process 2026-03-19 13:45:10 +01:00
Ran Shem Tov c3adbd4113 chore: release py-sdk 0.1.80 2026-03-19 13:00:14 +01:00
Ran Shem Tov 31a721cdae feat: re-export state streaming langgraph middleware 2026-03-19 12:58:55 +01:00
Ran Shem Tov 82eaf93f11 chore: release lg python sdk 0.1.79 2026-03-13 17:31:15 +01:00
Ran Shem Tov 4506570206 chore: use latest python langgraph ag-ui 2026-03-13 13:49:15 +01:00
Jordan Ritter 973b4e460e fix(sdk-python): loosen FastAPI version ceiling from ^0.115.0 to >=0.115.0,<1.0.0 (#3261)
## Problem

The Poetry caret constraint `^0.115.0` in `sdk-python/pyproject.toml`
resolves to `>=0.115.0,<0.116.0` for 0.x versions (per [PEP 440 / Poetry
docs](https://python-poetry.org/docs/dependency-specification/#caret-requirements)).
This blocks installation alongside any FastAPI release since **0.116.0
(June 2025)**.

Current stable FastAPI is **0.129.0** — 14 minor versions ahead of the
ceiling.

## Impact

- Cannot `pip install copilotkit` in any project using FastAPI >=0.116.0
- Multiple users blocked (see #2771 comments)
- Our production project has **~90 tests bypassed** with
`COPILOTKIT_AVAILABLE = False` guards because of this

## Fix

```diff
- fastapi = "^0.115.0"
+ fastapi = ">=0.115.0,<1.0.0"
```

This allows all current and future 0.x FastAPI releases while still
capping at the upcoming 1.0 major version boundary, which may introduce
breaking changes.

## Testing

- The SDK uses standard FastAPI features (routing, dependency injection,
middleware) that have been stable across all 0.11x–0.12x releases
- No FastAPI APIs used by the SDK were deprecated or removed in
0.116.0–0.129.0
- `ag-ui-langgraph` (also in deps) uses `>=0.115.0` without an upper
bound, so this change aligns the two constraints

## Note on `ag-ui-langgraph`

`ag-ui-langgraph[fastapi]` also depends on FastAPI. Its constraint is
already `>=0.115.0` (no ceiling), so this change to `copilotkit` is the
only fix needed.

Fixes #2771
2026-03-06 14:39:52 -04:00
Jordan Ritter 8bad9f30ac test: add unit tests for emit_messages/emit_tool_calls filtering
Tests the two bugs fixed in this PR:
1. Dict raw_event metadata must be read with .get(), not getattr()
2. Filtered events must return None (not ""), and run() strips them

Adds pytest as a dev dependency.
2026-03-06 08:32:06 -08:00
BreBryBro 62ba11fe1c fix(sdk-python): loosen FastAPI version ceiling from ^0.115.0 to >=0.115.0,<1.0.0
The Poetry caret constraint `^0.115.0` resolves to `>=0.115.0,<0.116.0` for
0.x versions, blocking installation alongside any FastAPI release since 0.116.0
(June 2025). This prevents adoption of the Python SDK in projects using current
FastAPI versions.

Change to `>=0.115.0,<1.0.0` to allow all 0.x releases while still capping
at the upcoming 1.0 major version boundary.

Fixes #2771
2026-02-23 16:19:04 -06:00
Ran Shemtov c07362d137 chore: release py sdk 0.1.78 (#3158) 2026-02-06 13:01:23 +01:00
Ran Shemtov b49277b605 fix: update all agui langgraph dependencies (#3115) 2026-01-28 16:22:04 +01:00
Ran Shemtov f122e424c1 chore: release python sdk 0.1.75 (#2988) 2026-01-09 17:08:45 +01:00
Ran Shemtov 5a24f28894 feat: create copilotkit langgraph middleware (#2928) 2026-01-09 16:46:40 +01:00
Ran Shemtov ab6b00de57 chore: ease up ag-ui langgraph versions and release 0.1.74 sdk py (#2882) 2025-12-22 12:40:11 +01:00
Ran Shemtov 07a346dc64 release python sdk 0.1.72 (#2715) 2025-11-13 15:44:43 +01:00
Ran Shemtov 09b3ac6d44 release python sdk version 0.1.70 (#2657) 2025-10-24 11:50:43 +02:00
Ran Shemtov 7455309ffa feat: use latest agui langgraph integration packages (#2588) 2025-10-09 18:04:09 -04:00
Ran Shemtov 223bfabee7 chore: release python sdk 0.1.66 (#2575) 2025-10-06 17:25:54 +02:00
Ran Shemtov e7303691c3 Feat/upgrade agui lg integration packages (#2476) 2025-09-22 17:31:09 +02:00
Ran Shemtov 23fe6a1586 feat: upgrade agui packages (#2467) 2025-09-19 18:28:38 +02:00
Ran Shemtov b7bc3a03e9 feat: pass copilot readable context to agui agents (#2426) 2025-09-15 12:37:55 +02:00
Ran Shemtov 363a5544a0 chore: upgrade agui versions and release v0.1.63 (#2408) 2025-09-03 13:12:53 +02:00
Ran Shemtov 30a7e80b93 chore: release python sdk 0.1.62 which uses latest agui langgraph integration (#2350) 2025-08-28 10:41:09 +02:00
Ran Shemtov f566562de1 LangGraphJS support fix bundle (#2346) 2025-08-21 14:20:52 +02:00
Ran Shemtov 83139450fc chore: upgrade dependencies of coagents-research canvas demo (#2314) 2025-08-13 13:07:53 +02:00
Ran Shemtov dc6df18e63 feat: support latest lg agui (#2262) 2025-08-07 09:07:31 -04:00
Ran Shemtov b75c01ef0d chore: release python sdk version 0.1.56 (#2218) 2025-07-23 10:24:00 +02:00
Ran Shemtov ec6969b27a Fix/serializable state py (#2177) 2025-07-23 09:56:02 +02:00
Ran Shemtov a010b323d5 chore: use url from deployment when routing to agent (#2171) 2025-07-17 18:15:58 +02:00
Ran Shemtov df25f34d30 feat: add agui fastAPI compatible langgraph agent (#2117) 2025-07-15 19:49:15 +02:00
Ran Shemtov cf90f85aad fix: reduce checkpointer calls lg events (#2063) 2025-07-08 14:39:42 +02:00
Ran Shemtov 77b0a47126 chore: release python sdk version 0.1.53 (#2079) 2025-07-01 10:42:17 +02:00
Ran Shemtov c0e799e787 Fix/support langgraph 0.5.0 (#2073) 2025-06-30 23:02:48 +02:00
Ran Shemtov e977f46724 chore: release python sdk 0.1.51 (#2041) 2025-06-23 14:25:38 +02:00
Ran Shemtov c361a16d31 fix: fix regenerate to rerun tool call on click (#2019) 2025-06-19 18:36:33 +02:00
Suhas Deshpande 91162f5624 chore: standardize Python dependencies across examples (#2016) 2025-06-19 09:35:55 -07:00
Suhas Deshpande a188b4f902 adds state update event to crew flow (#1963) 2025-06-09 21:29:27 -07:00
Suhas Deshpande 98d7c5626a bump sdk-python version (#1941) 2025-06-05 16:22:00 -07:00
Ran Shemtov 933ed0ebbd release python sdk 0.1.47 (#1905) 2025-05-30 11:11:05 +02:00
Suhas Deshpande 8028263484 bumps python sdk to 0.1.46 (#1799) 2025-05-12 12:49:25 -07:00
Suhas Deshpande d40e0027a3 udpates crewai to 0.118.0 (#1743) 2025-05-12 08:29:47 -07:00
Ran Shemtov 2fc03d88bb chore: release python sdk version 0.1.45 (#1775) 2025-05-08 12:14:36 +02:00
Ran Shemtov ee4e768076 chore: release python 0.1.44 (#1681) 2025-04-16 16:47:19 +02:00
Suhas Deshpande 5177353298 bump sdk-python version (#1660) 2025-04-10 16:17:30 -07:00