27 Commits

Author SHA1 Message Date
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
devin.yf d28c808908 inline the test cases 2024-02-20 08:19:58 +08:00
devin.yf 65fc5f7773 table driven test 2024-02-19 17:57:25 +08:00
devin.yf 491ba5fa5f add test case 2024-02-18 20:01:02 +08:00
devin.yf 5ba4c9ef9c Set PrintOutput to be true only once 2024-02-18 18:31:22 +08:00
devin.yf 6d008d187c trim potential spaces and colon in the beginning 2024-02-18 17:21:56 +08:00
devin.yf b5347381b4 fix: agent_stream_callback sometimes failed to detect keyword 2024-02-18 16:54:00 +08:00
Travis Cline e128dbad46 callbacks: Fix lint issues 2024-02-03 16:18:05 -08:00
Yorick Terweijden 9dc6ea7ec1 Implement logging for text types, fixes #596 2024-02-01 17:36:35 +02:00
Eli Bendersky 8b30d4b229 all: clean up now unused types Generation and LLMResult 2024-01-17 07:07:35 -08:00
Eli Bendersky 405efead69 Add new callback for GenerateContent start and end
And invoke it in the new methods

Re #465
2024-01-16 16:26:44 -08:00
h3l 8761cce5e5 support agent finish callback (#476)
add agent finish callback

Co-authored-by: lvzhong <lvzhong@bytedance.com>
2024-01-02 23:40:28 -08:00
Travis Cline 59f2be62ed callbacks: Add other handlers to CombingHandler 2023-12-28 16:18:21 -08:00
chyroc 923373ff0c Feat: support combine multi callbacks (#446) 2023-12-28 15:26:42 -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
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
Šimun Strukan 36f399f058 callbacks: handle streaming func (#347)
* Added initial HandelStreamFunc callback handler

* added callback handler to conversational agent

* Added Agent final stdout callback

* Added callback handler to mrkl agent

* Added egress buffer for final agent streaming

* Added proper egress channel handling

* Added comments

* Added better context handling

* Fixing lint
2023-12-04 22:38:29 -08:00
Nikola Zivkovic 2c309cf279 callback-handler: Callback handler for HandleRetrieverEnd (#295)
* callback-handler-query | adding query to the output

* callback-handler-query | cp

---------

Co-authored-by: zivkovicn <x-nikola.zivkovic@transcarent.ai>
2023-09-23 10:29:51 -07:00
Travis Cline c9460de7bf openai: Fix lint issues 2023-08-25 19:22: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 9863d13b4e reduce cylop in executor 2023-08-25 19:00:43 -07:00
FluffyKebab f7e95446c0 fix lint 2023-08-25 19:00:41 -07:00
FluffyKebab b5659cf46d callbacks: improve logging formating and docs 2023-08-25 19:00:21 -07:00
FluffyKebab 442e5f1e7d add callbacks to llms 2023-08-25 19:00:21 -07:00
FluffyKebab 004c9bc52e add callbackHandler interface and log handler 2023-08-25 19:00:21 -07:00