Commit Graph

15 Commits

Author SHA1 Message Date
QuantumGhost 5cb24625c3 ci(python): Add CI Pipeline for Python SDK (#72)
* chore(python): temporarily disable `UP007` rule in Ruff

Disable the `UP007` rule temporarily due to numerous existing
violations in the current codebase.

* ci(python): add lint and test for Python SDK

* ci: Add mega-linter

* chore(python): Add final newline to markdown files

* fix(python): Fix linter issues by using ruff's auto fix

* fix(python): Fix TRY400 linter violations

Ruff suggests using `logger.exception` to log when
logging an exception, instead of using `logging.error`.

The former logs the exception and the traceback
automatically.

ref: https://docs.astral.sh/ruff/rules/error-instead-of-exception/

* fix(python): fix ruff linter violations

* test(python): Add Test cases for LLM entities

Test the initialization of `LLMResult` and `LLMResultChunk`.

* test(python): Add test for `AgentModelConfig`

Ensures that the `history_prompt_messages` attribute is
not shared between instances of `AgentModelConfig`.

* chore(python): output diffs in Ruff's format check

* style(python): format code with Ruff

* chore(python): Add a bash script for fix and format python code

* chore: add `persist-credentials: false` to checkout action

Enhances security by preventing subsequent
steps from accessing GitHub credentials, reducing
potential attack surfaces.

Ref: https://github.com/actions/checkout#checkout-v4
2025-04-14 20:25:19 +08:00
Novice Lee 92558f5c07 feat: add agent strategy support 2025-01-08 07:48:27 +08:00
Yeuoly d450c94888 fix: using absolute importing 2024-12-17 18:24:31 +08:00
Yeuoly 55097006c7 feat: release first agent version 2024-12-13 15:05:47 +08:00
-LAN- 5858fe715e chore: Apply formet and auto fix
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-12-02 21:10:36 +08:00
Yeuoly 3507f55e46 feat: openai compat 2024-11-29 16:46:37 +08:00
Yeuoly 364c8af027 enhance: add file to global 2024-11-14 20:29:11 +08:00
Yeuoly 7c0510624b feat: add openai compat helper 2024-09-29 17:45:14 +08:00
takatost f611636766 remove unused files 2024-09-04 19:51:15 +08:00
takatost a6d55f604d refactor: move runtime request into separate modules 2024-08-30 03:28:09 +08:00
Yeuoly 55443ac092 refactor: move entities to core 2024-08-27 17:09:38 +08:00
Yeuoly 8a471941dc refactor 2024-08-27 12:45:00 +08:00
Yeuoly 2ff7635ae6 refactor: plugin stream reader 2024-08-26 10:33:19 +08:00
Yeuoly 150294fc0c feat: openai 2024-07-15 15:34:30 +08:00
Yeuoly eb4b0f2a3b init 2024-07-10 17:56:01 +08:00