Commit Graph

49 Commits

Author SHA1 Message Date
Dmitry Ng 91d97068d0 chore: update golangci-lint configuration and version
- Added exclusions for gosec linters G703 and G704 to reduce false positives in library code.
- Bumped golangci-lint version from v2.8.0 to v2.12.2 for improved linting capabilities.
- Refactored string formatting in multiple files for consistency and performance improvements.
2026-08-04 14:29:17 +03:00
Dmitry Ng 14a80dca5b chore: update pnpm version and restructure package manager settings
- Set pnpm version to 10.34.5 in the GitHub Actions workflow for publishing documentation.
- Removed pnpm overrides from package.json and added package manager specification.
- Created a new pnpm-workspace.yaml file to manage package overrides for webpack-dev-server.
- Updated search-index.json to refine keyword entries for improved searchability.
2026-07-25 02:01:26 +03:00
Dmitry Ng a17a86c171 chore: update golangci-lint version and refactor test cases
- Upgraded golangci-lint from version v2.1.6 to v2.8.0 in the CI workflow for improved linting capabilities.
- Refactored test cases in conversational_test.go to streamline error handling and improve readability.
- Enhanced predictOptions initialization in conversational.go and mrkl.go for better performance and clarity.
- Updated various agent files to optimize memory allocation and improve overall code efficiency.
- Added deferred response body closure in transport_test.go to ensure proper resource management.
2026-02-22 21:31:38 +03:00
Dmitry Ng fed202eccd fix: update Node.js version in publish-docs workflow
- Changed the Node.js version from 18 to 25 in the GitHub Actions workflow for publishing documentation, ensuring compatibility with the latest features and improvements.
2026-02-22 18:44:34 +03:00
Dmitry Ng a87f33d1a8 fix: lint and test issues, freeze docker images versions 2025-07-12 15:05:38 +03:00
Dmitry Ng 18cfd8cb62 feat: migrate from deprecated for Google AI SDK to modern google.golang.org/genai
- Removed deprecated dependency on github.com/google/generative-ai-go and replaced it with google.golang.org/genai.
- Adjusted test cases to reflect the new environment variable name.
- Enhanced embedding and content generation functions to utilize the new genai package.
- Added new test data for improved coverage of Google AI functionalities.
2025-07-12 01:38:49 +03:00
Dmitry Ng d91e1a9fb2 chore: add ANTHROPIC_API_KEY to CI environment variables for testing 2025-06-23 19:10:11 +03:00
Dmitry Ng eee90d9059 fix: multiple linter issues and logic in tests 2025-06-23 13:43:06 +03:00
Dmitry Ng 019056baba feat: setup repository for fork 2025-06-22 02:27:21 +03:00
Travis Cline 9715b95102 docs: follow-on and fix search indexing (#1313) 2025-06-18 12:10:26 +02:00
Travis Cline ebd931b432 docs: refactor documentation site content, structure (#1311)
* docs: restructure documentation with concepts, how-to guides and tutorials

- Add comprehensive architecture documentation
- Add how-to guides section with LLM provider configuration
- Add tutorials section with basic chat app example
- Update module documentation organization
- Switch from npm to pnpm for package management
- Update theme and search components

Co-authored-by: jacobcode91 <34037588+jacobcode91@users.noreply.github.com>
2025-06-16 18:14:26 +02:00
Travis Cline c544fb77bd all: add broad httprr coverage, update dependencies, organize go.mod file, bump to 1.23 (#1299)
* all: add broad httprr coverage, update dependencies, organize go.mod file, bump to 1.23

update go version to 1.23
add lots of test coverage via httprr recordings
update dependencies and organize go.mod
add testutil/testctr which helps work around a testcontainers-go+colima bug
expand the huggingface implementation and tests
expand capabilities of the ollama package
2025-06-04 11:41:45 -07:00
Travis Cline 6c81282073 examples: Fix examples and complete linting upgrade (#1288)
* examples: update examples, clean up module declarations

- Fix and relax lint rules (for now)
- Clean up and fix module declarations
- Add .gitattributes to mark go.sum as binary

* ci: separate and enhance CI workflows

- Split example builds into dedicated workflow
- Add comprehensive test coverage reporting
- Improve CI structure with matrix testing
- Add race condition testing
- Add automated PR coverage comments

* test: improve test reliability and agent message handling

- Simplify MRKL agent test to use basic math calculation
- Update OpenAI functions agent to use ToolChatMessage
- Add proper environment checks for Zep integration tests

* agents: fix issue in tool call handling for openai function agent
2025-06-03 07:52:03 -07:00
Manuel de la Peña 8d4c17fc73 ci: migrate linting golangci-lint to v2.0.2 (#1217)
* chore: use slices and maps packages

* chore: skip embedded type

* chore: use fmt.Fprint instead

* chore: use switch

* chore: reorder imports

* chore: add white lines

* chore: use t.Setenv

* chore: excplicitly omit non used param

* chore: use t.TempDir

* chore: use maps package

* chore: migrate golangci-lint config file

Run: "golangci-lint migrate -c .golangci.yaml --skip-validation"

* chore: bump golangci-lint action to v7
2025-04-12 01:54:50 -07:00
Travis Cline d750d4cf88 ci: enhance docs publishing workflow (#1139) 2025-02-09 04:04:51 -08:00
Aksel eba9ee5d52 fix docs publishing, use v3 of upload artifact 2025-02-02 13:15:22 +05:30
Aksel 92d4b1476c fix docs publishing 2025-02-02 12:52:26 +05:30
takeshi.nakata a551e3d524 ci: add -race flat go test in CI 2024-12-02 17:32:12 +09:00
Travis Cline bf1667feaf lint: fixup lint settings (#1018) 2024-09-13 04:39:28 +00:00
Peter 8a2ad95b90 ci: upgrade golangci lint version (#928) 2024-09-12 17:13:23 -07:00
Eli Bendersky 73710c51b6 GH actions: update lint workflow to newer version of Go (#745) 2024-04-01 10:09:29 -07:00
Travis Cline b6ba6693d3 tooling: Update minimum go version to 1.22, update golangci-lint (#722)
* go: Update to go 1.22, update golangci-lint config

* lint: Address various lint issues

* chains: fix lint complaint in TestApplyWithCanceledContext

* lint: Address addtional lint issues

* lint: Address addtional lint issues

* tools: update golangci-lint to 1.57
2024-03-26 20:31:20 +00:00
Travis Cline b82fbbfbf0 Create FUNDING.yml (#669) 2024-03-13 22:04:19 +00:00
Abirdcfly 9986fd3519 vectorstores: fix pgvector issues and add more test (#617)
1. add pgvector into test
2. add OPENAI_API_KEY and GENAI_API_KEY into test
3. deprecate pgvector table name Sanitize function
4. reset pgvector Search sql and make TestDeduplicater rerun
5. add test TestWithAllOptions for test all option
6. because of StuffDocuments.joinDocuments ignore document's metadata, update some tests

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2024-03-07 17:57:03 -08:00
Eli Bendersky af36340149 workflow: run CI on pushes to main branch, not other branches (#399)
* workflow: fix publish-docs workflow error (#398)

Fix errors like https://github.com/tmc/langchaingo/actions/runs/7094309081

* workflow: run CI on pushes to main branch, not other branches

Right now, each PR runs CI twice - once because it's a PR, and another
time because it comes from a push to a branch that created the PR.
See for example https://github.com/tmc/langchaingo/pull/398, causing:

- https://github.com/tmc/langchaingo/actions/runs/7094374726
- https://github.com/tmc/langchaingo/actions/runs/7094367361

This change makes it so we only run CI once per PR, because there's no
need to run it on a branch push.

Now CI runs on either a PR or a push to `main`
2023-12-04 22:41:23 -08:00
Eli Bendersky 0217b032f0 workflow: fix publish-docs workflow error (#398)
Fix errors like https://github.com/tmc/langchaingo/actions/runs/7094309081
2023-12-04 22:38:29 -08:00
Travis Cline db9fe9ee62 github: Run docs only on main 2023-12-04 22:38:29 -08:00
Ismail e1be2fd3ab ci: Pin golangci-lint to 1.55 2023-12-04 22:38:28 -08:00
Travis Cline be4db38357 docs: Add docs publishing, include Ollama quickstart guide. (#342)
* docs: Mark unfinished parts as draft

* github: Add docs publish workflow

* github: Simplify pages deploy

* docs: set baseUrl

* docs: mark more as draft for now
2023-12-04 22:38:28 -08:00
Travis Cline 86697ede72 ci: Pin golangci-lint to 1.54 (#340) 2023-12-04 22:38:28 -08:00
Matt Plachter c27d44f4dd increase timeout for lint 2023-07-12 10:22:01 -04:00
Travis Cline ab9a10ff6a Update ci.yaml 2023-06-30 00:50:57 -07:00
Travis Cline 71b9e17d92 Update ci.yaml 2023-06-29 23:41:28 -07:00
Murilo Santana c05a7dc5d5 ci: add ci step and makefile entry to ensure examples are healthy 2023-06-26 11:11:55 -03:00
Travis Cline baeba9a635 Update PULL_REQUEST_TEMPLATE.md 2023-06-24 01:34:20 -07:00
Travis Cline 676ee34f9e github: update build-test action 2023-06-24 00:18:14 -07:00
Travis Cline 2e4c00dbde github: update lint action 2023-06-23 23:58:17 -07:00
Travis Cline fa527281e7 Update ci.yaml 2023-06-05 04:37:59 -07:00
Travis Cline 4ae3d393f3 github: restore linting cache 2023-05-21 13:09:35 -07:00
Travis Cline 12deb295dd github: Skip cache 2023-05-13 18:16:22 -07:00
Travis Cline 7d17d66be8 github: Rename workflow 2023-05-13 18:01:10 -07:00
Ayaka Neko 9b2796ce09 ci: trigger lint-build-test GitHub Actions within PRs 2023-04-25 03:07:50 +08:00
Ayaka Neko c57e4ed43d ci: trigger lint-build-test GitHub Actions within PRs 2023-04-25 03:03:35 +08:00
Travis Cline adf4c33fe3 github: exclude exp 2023-04-21 18:30:51 -07:00
Travis Cline cc66079d5f github: Update PR template 2023-04-21 18:21:06 -07:00
Fraser Isbester 40e11b9e4d exp: fix linting errors 2023-04-20 21:46:41 -07:00
Fraser Isbester a667e35874 ci: only new issues 2023-04-20 21:32:44 -07:00
Fraser Isbester 46850436b2 ci: add lint, test, and build CI 2023-04-20 21:30:38 -07:00
Fraser Isbester 2b472ca17b *: fix space in .github folder 2023-04-20 20:56:42 -07:00