Commit Graph

50 Commits

Author SHA1 Message Date
Dmitry Ng 064f09155c chore(deps): bump Go toolchain to 1.26.5 and fix vulnerable dependencies
- Raised the `go` directive from 1.24.1 to 1.26.5 to satisfy pgx/v5 and ollama's minimum Go version requirements and to pick up 15 patched standard library CVEs.
- Updated `pgx/v5`, `otel`/`otel/sdk`/`otlptracehttp`, `x/net`, and the AWS `eventstream` protocol package to their latest requested versions.
- Remediated govulncheck-flagged CVEs in `grpc`, `x/text`, `x/crypto`, `antchfx/xpath`, AWS SDK `bedrock*`/`s3` services, `etcd/server`, and `mongo-driver` v1/v2.
- Fixed ollama's `MainGPU` API type change (`int` -> `*int`) in `llms/ollama/options.go` without breaking the public `WithRunnerMainGPU` signature.
2026-08-04 13:57:26 +03:00
Dmitry Ng 1fc129969f feat(llms): add provider-neutral structured output via WithStructuredOutput
Add a single WithStructuredOutput(StructuredOutputConfig) call option
carrying a raw JSON Schema (Draft 2020-12), so one contract yields the
same guarantee — a normal-final response is a single JSON value matching
the schema — on OpenAI, Anthropic, Bedrock (Converse and legacy), Google
AI, Vertex, and Ollama. Each provider maps it to its native mechanism;
the result is validated locally against the original schema in the new
llms/structuredoutput package. Also fixes a latent Converse gap where the
response stop reason was never surfaced on ContentChoice.StopReason.
2026-07-17 04:39:05 +03:00
Dmitry Ng c150dc39fe chore: update dependencies for ollama to latest versions
- Upgraded `github.com/ollama/ollama` from v0.14.3 to v0.16.3 across multiple modules to ensure compatibility with the latest features and fixes.
- Updated `github.com/klauspost/compress` from v1.18.0 to v1.18.3 in various modules to incorporate performance improvements and bug fixes.
- Adjusted go.mod and go.sum files in relevant examples to reflect these changes, ensuring all examples are using the latest dependency versions.
2026-02-22 17:40:06 +03:00
Dmitry Ng aa2dd71269 Merge branch 'main' into release/v0.1.14-update.1 2026-01-24 02:07:00 +03:00
Travis Cline 57a517b279 examples: update to use v0.1.14-pre.0 (#1353) 2025-08-08 22:27:43 +02:00
Dmitry Ng 4886b2bb10 fix: update Ollama dependency to v0.9.6 across multiple examples and remove deprecated cloud.google.com/go/ai dependency 2025-07-12 15:22:17 +03:00
Dmitry Ng 019056baba feat: setup repository for fork 2025-06-22 02:27:21 +03: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
Travis Cline fce56ba86e examples: Update to v0.1.13-pre.1 (#1140) 2025-02-09 04:15:07 -08:00
Travis Cline 179400979a Update examples to v0.1.13-pre.0 (#1021)
* examples: Point examples to v0.1.13-pre.0

* examples: fix typo in o1
2024-09-12 22:05:12 -07:00
Eli Bendersky b508f9b08f examples: update go.mod to point to latest release (#937) 2024-06-27 07:12:54 -07:00
Travis Cline e6e3d8d08a examples: point to 0.1.12-pre.0 (#922) 2024-06-21 04:59:53 +00:00
Travis Cline 766bd18a2e examples: Update to v0.1.11 (#897) 2024-06-17 11:41:27 +00:00
Travis Cline d9e644e511 examples: Update to v0.1.10 (#833) 2024-05-11 23:14:23 +00:00
Travis Cline 292be53214 examples: update langchaingo to v0.1.9 (#800)
examples: update langchaingo version
2024-04-21 07:41:30 +00:00
Travis Cline a47ef5033a examples: Update examples to v0.1.8 (#736) 2024-03-31 23:49:43 +00:00
Travis Cline dc3e6f6686 examples: Update to v0.1.7 (#694) 2024-03-19 23:01:51 +00:00
Travis Cline 014070ce46 examples: Update examples to v0.1.6 (#688) 2024-03-19 01:38:51 +00:00
Travis Cline 325d5343f8 examples: Point to v0.1.6-alpha.1 (#687) 2024-03-19 01:25:34 +00:00
Travis Cline 6cc64f8110 examples: Point to v0.1.5 2024-03-07 17:45:24 -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 85475d91ee bump examples dependency to v0.1.4-alpha.0 (#575) 2024-01-27 18:53:09 +00:00
Travis Cline 1bea996677 examples: Update to v0.1.3 2024-01-03 20:40:43 -08:00
Travis Cline a39989164e examples: update to v0.1.2 2023-12-28 16:24:36 -08:00
Travis Cline d8b25bd69e examples: Update to pre-release tag 2023-12-28 16:20:04 -08:00
Travis Cline 213b9dca74 examples: Update langchaingo to v0.1.1 (#445) 2023-12-20 21:40:03 +00:00
Travis Cline 1c8e491300 examples: Use v0.1.0 2023-12-12 20:42:59 -08:00
Travis Cline b0c827511c examples: Update langchaingo version in examples 2023-12-12 20:12:21 -08:00
Eli Bendersky 4bb28402cf embeddings: use NewEmbedder for Ernie embeddings (#392)
For #379

Updates examples go.mod because it's used in an example
2023-12-04 22:38:29 -08:00
Eli Bendersky 7dd3fd2a1c embeddings: new NewEmbedder for Ollama embeddings
The only use of Ollama embeddings is an example - update it too and
go.mod versions
2023-12-04 22:38:29 -08:00
Eli Bendersky fc033c3471 embeddings: use NewEmbedder for OpenAI embeddings (#385)
This is the first use of the refactoring made in #374 -- removing the
embeddings/openai directory entirely, since it can be now implemented
with NewEmbedder without duplicating code. The test was moved one
dir down and works with the new setup.

This is a model that can be used to similarly refactor the other
embeddings/* subdirs.

This is a large PR because it also updates example go.mods

For #379
2023-12-04 22:38:29 -08:00
Travis Cline cda53c9ed7 examples: fix milvus example to not ask to run ollama (#381) 2023-12-04 22:38:29 -08:00
Travis Cline fa74369a81 examples: update examples (#380) 2023-12-04 22:38:29 -08:00
Travis Cline d933d99f91 example: Sync 2023-12-04 22:38:28 -08:00
Travis Cline 2cafc2708d example: Sync 2023-12-04 22:38:28 -08:00
Travis Cline 8d9bb2c9e6 examples: Sync and update deps 2023-12-04 22:38:28 -08:00
Travis Cline bfa040eb1a examples: sync to main 2023-12-04 22:38:28 -08:00
Travis Cline dd671f1d64 examples: Sync langchaingo version 2023-09-24 15:35:38 -07:00
Travis Cline 4dac573d3b examples: Sync langchaingo version 2023-09-24 15:34:41 -07:00
Travis Cline c85d3967da examples: add streaming fn example, sync (#272)
* examples: add openai streaming function call example

* examples: Sync to latest
2023-08-29 03:27:28 +00:00
Travis Cline c5b84faa54 callbacks: Include context 2023-08-25 19:14:02 -07:00
Travis Cline acdd75c474 examples: Add anthropic example, sync examples 2023-07-29 16:24:26 -07:00
Travis Cline 3234c9d952 examples: Sync 2023-07-25 18:44:25 -07:00
Travis Cline eb43ec34db examples: Sync to latest 2023-07-24 10:52:07 -07:00
Travis Cline 501ecee66e examples: Update to function-calling refactor 2023-07-23 15:31:45 -07:00
Travis Cline 890d4ce19b examples: Sync to latest 2023-07-23 11:42:45 -07:00
Travis Cline 7cf8e130d7 examples: Sync to latest 2023-07-23 11:20:54 -07:00
Travis Cline 1319cd99b0 examples: sync 2023-07-09 17:30:20 -07:00
Murilo Santana a1cbf30dc6 docs: fix readme example and update sql example dependencies 2023-06-27 19:33:57 -03:00
lu.bai f6ec1bb2a9 chains: sql chain 2023-06-26 17:35:51 +08:00