Dmitry Ng
fbd4bc67ec
fix: open issues in the tests
2025-06-22 01:55:59 +03:00
Travis Cline
77504b877f
all: expand test coverage ( #1312 )
...
* scripts: cleanup test scripts
* lint: add test pattern and architectural linting
* internal/httprr: expand httprr testing
* test: add comprehensive unit test coverage
* docs: add comprehensive testing guide to CONTRIBUTING.md
* examples: standardize module versions and cleanup dependencies
* all: re-record several httprr recordings
2025-06-16 18:14:02 +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
takeshi.nakata
f7fac2246e
chains_test: use mutex to lock
2024-12-02 18:02:28 +09:00
Travis Cline
bf1667feaf
lint: fixup lint settings ( #1018 )
2024-09-13 04:39:28 +00:00
Pavlo Paliychuk
89195f8554
memory: Add Zep Cloud integration ( #746 )
...
* memory: Add Zep Cloud integration
2024-06-14 23:19:11 -04:00
Eli Bendersky
556a263188
schema: move Chat* types to llms ( #757 )
...
* schema: move Chat* types to llms
This prevents a circular dependency or code duplication when using Tools
2024-04-16 23:35:51 -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
Dévin.YF
ca2969cec9
tool: sql_database generate sql-query filter redundant text ( #612 )
...
* tool: sql_database generate sql-query filter redundant text
2024-03-13 15:10:15 -07:00
Abirdcfly
17002cc725
chains: fix add ignore StreamingFunc ( #639 )
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com >
2024-03-05 06:48:21 -08:00
Eli Bendersky
22864933b6
Fix llm_math_chain example ( #634 )
...
* Fix llm_math_chain example
* Better error message from Starlark eval
* Fix to a sample that actually works
2024-02-24 06:17:51 -08:00
Eli Bendersky
76fb641fdd
Update comments, bump example dependencies and clarify chain example ( #633 )
...
Update comments, bump example dependencies and clarify chain example a bit
2024-02-24 05:52:30 -08:00
Eli Bendersky
7214d8a1f5
chains: fix issue with overriding defaults in chainCallOption ( #632 )
...
Updates #626
Fixes #603
Fixes #604
Fixes #594
2024-02-23 13:45:25 -08:00
Eli Bendersky
9aa84dda2b
chains: add test with GoogleAI ( #628 )
...
Resurrect test from #625 , but add explicit settings until #626 is resolved
2024-02-22 17:48:57 -08:00
Eli Bendersky
55e1a97000
Revert "googleai: fix options need add default value" ( #627 )
...
This reverts commit 40d40ea188 .
2024-02-22 09:34:44 -08:00
Abirdcfly
40d40ea188
googleai: fix options need add default value
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com >
2024-02-21 22:09:10 +08:00
Eli Bendersky
59a4f99c25
llms: officially deprecate Call method on the interface ( #555 )
2024-01-25 17:30:09 +00:00
Eli Bendersky
cbab2c9b77
Deprecate the LLM interface
...
It's just an alias for Model now
2024-01-17 14:09:45 -08:00
Eli Bendersky
8b30d4b229
all: clean up now unused types Generation and LLMResult
2024-01-17 07:07:35 -08:00
Eli Bendersky
0e4d69e6f1
chains: dummy implementation of GenerateContent because of new interfaces
2024-01-17 06:01:45 -08:00
Eli Bendersky
05219dd263
Clean up GeneratePrompt -- unused code, and simplify caller ( #489 )
2024-01-04 06:58:39 -08:00
Eli Bendersky
b5c16493c2
Clear out GetNumTokens ( #483 )
...
It's not used and not implemented correctly for almost any model.
If this is deemed useful, it will be more correct to expose a model name
from the LLM (or cliena?) and then invoke a standalone function familiar
with non-openai models.
Re #482
2024-01-03 12:35:26 -08:00
Eli Bendersky
435467ab33
Resolve lint complaints and gofumpt
2023-12-29 09:56:26 -08:00
Eli Bendersky
ab14227446
Remove mentions of the LanguageModel interface
2023-12-29 09:44:57 -08:00
Eli Bendersky
93cea28bfe
Refactor usage of LanguageModel out
...
Replace it by LLM and adjust code and tests accordingly
re #465
2023-12-29 09:35:52 -08:00
Eli Bendersky
eb58836512
Skip tests that are currently failing ( #415 ) ( #466 )
2023-12-28 21:02:13 -08:00
chyroc
310afd2c66
promps: move prompts to embedded text files ( #451 )
2023-12-28 16:55:43 -08:00
chyroc
534f75725e
Feat: callbacks.Handler support handle error ( #457 )
...
Feat: support HandleLLMError for llms.LLM
2023-12-28 15:22:05 -08:00
h3l
284a853cc9
support callback handler to llm chain ( #461 )
...
* support callback handler to llm chain
* fix golint
---------
Co-authored-by: lvzhong <lvzhong@bytedance.com >
2023-12-28 15:17:37 -08:00
chyroc
99bb50d3c7
Feat: use chains callback as streaming func ( #447 )
2023-12-24 21:05:42 -08:00
chyroc
55f772c21a
Docs: fix comment typo ( #442 )
...
* Docs: fix comment typo
* docs: a llm -> an LLM
---------
Co-authored-by: Travis Cline <travis.cline@gmail.com >
2023-12-20 19:57:37 +00:00
Bruce Bai
eb17026117
test: fix api chain test error ( #414 ) ( #434 )
2023-12-19 13:48:48 -08:00
Aksel
543f504f47
agents: add parser error handler ( #345 )
...
* agents: add ParserErrorHandler
* chains: return result when error in chain
* agents: fix lint
2023-12-04 22:38:29 -08:00
Ismail
80f9027554
fix: golangci-lint v1.55 errors
2023-12-04 22:38:28 -08:00
Amir Karimi
225316c84e
chains: added constitutional chain. refactored few shot prompt ( #316 )
2023-12-04 22:38:28 -08:00
Edocevol
2d98503482
remove last separator ( #286 )
2023-09-22 10:17:08 -07:00
Edocevol
fd158b5de8
add chain call option: WithTopP ( #288 )
2023-09-22 10:16:45 -07:00
Travis Cline
c5b84faa54
callbacks: Include context
2023-08-25 19:14:02 -07:00
FluffyKebab
b2dee18c4b
callbacks: nolint forbidigo in logger
2023-08-25 19:00:43 -07:00
FluffyKebab
199046e5b7
callbacks: improve logging formating and docs
2023-08-25 19:00:21 -07:00
FluffyKebab
5e3175bf25
add option for callbacks when calling chain
2023-08-25 19:00:21 -07:00
Nikola Zivkovic
16e3fd2870
Merge branch 'main' into embeddings-azure-openai
2023-08-17 19:55:05 +02:00
zivkovicn
fbf9de856c
embeddings-azure-openai | lint
2023-08-17 19:50:43 +02:00
zivkovicn
508171f161
embeddings-azure-openai | fixing issues
2023-08-17 19:45:52 +02:00
edocevol
36bfa3c156
memory: add context support
2023-08-14 12:45:54 +08:00
Travis Cline
8f101609f6
Merge pull request #225 from nidzola/refactor-and-fix-openaichat
...
embeddings & llm: Creating the actual embeddings for the OpenAI chat, splitting llms for openai
2023-07-30 19:48:23 -07:00
Simun Strukan
b143f95f73
Added GoDoc for methods
2023-07-30 01:29:39 +02:00
Simun Strukan
9d3c1fe708
Testing and small var rename
2023-07-30 00:59:47 +02:00