autogen/notebook
giorgossideris 11a43421e3
Min tokens in token limiter (#2400)
* Add minimum token threshold in MessageHistoryLimiter

* Update transforms tests for the threshold

* Move min_threshold_tokens from Message to Token Limiter

* Optimize _check_tokens_threshold

Co-authored-by: Wael Karkoub <wael.karkoub96@gmail.com>

* Apply requested changes (renaming, phrasing, validations)

* Fix format

* Fix _check_tokens_threshold logic

* Update docs and notebook

* Improve phrasing

* Add min_tokens example in notebook

* Add min_tokens example in website docs

* Add min_tokens example in notebook

* Update website docs to be in sync with get_logs change

---------

Co-authored-by: Wael Karkoub <wael.karkoub96@gmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-29 02:11:16 +00:00
..
Async_human_input.ipynb nbqa adedd to pre-commit, added black and ruff for notebooks (#1171) 2024-01-08 03:47:01 +00:00
agent_library_example.json [AutoBuild] Supporting build agents from library; supporting generating agent descriptions (#1039) 2024-01-06 17:23:23 +00:00
agentchat_MathChat.ipynb Supporting callable message (#1852) 2024-03-09 20:27:46 +00:00
agentchat_RetrieveChat.ipynb 2447 fix pgvector tests and notebook (#2455) 2024-04-28 13:43:02 +00:00
agentchat_agentoptimizer.ipynb Update the auto_feedback_from_code_execution notebook to use code executor (#2366) 2024-04-18 07:53:19 +00:00
agentchat_auto_feedback_from_code_execution.ipynb Use config list in notebook (#2537) 2024-04-28 19:47:27 +00:00
agentchat_capability_long_context_handling.ipynb bump version to 0.2.22 (#2256) 2024-04-05 13:41:14 +00:00
agentchat_compression.ipynb bump version to 0.2.22 (#2256) 2024-04-05 13:41:14 +00:00
agentchat_cost_token_tracking.ipynb speed up notebook in CI and fix CI failures (#2427) 2024-04-18 16:43:34 +00:00
agentchat_custom_model.ipynb Add isort (#2265) 2024-04-05 02:26:06 +00:00
agentchat_dalle_and_gpt4v.ipynb Add isort (#2265) 2024-04-05 02:26:06 +00:00
agentchat_function_call.ipynb speed up notebook in CI and fix CI failures (#2427) 2024-04-18 16:43:34 +00:00
agentchat_function_call_async.ipynb tags for config (#2539) 2024-04-29 01:35:12 +00:00
agentchat_function_call_code_writing.ipynb 2447 fix pgvector tests and notebook (#2455) 2024-04-28 13:43:02 +00:00
agentchat_function_call_currency_calculator.ipynb speed up notebook in CI and fix CI failures (#2427) 2024-04-18 16:43:34 +00:00
agentchat_groupchat.ipynb Create topics dir and move llm config (#1853) 2024-03-04 18:02:26 +00:00
agentchat_groupchat_RAG.ipynb Support setting vector_db as a param (#2313) 2024-04-17 08:30:05 +00:00
agentchat_groupchat_customized.ipynb Add isort (#2265) 2024-04-05 02:26:06 +00:00
agentchat_groupchat_finite_state_machine.ipynb speed up notebook in CI and fix CI failures (#2427) 2024-04-18 16:43:34 +00:00
agentchat_groupchat_research.ipynb Update more notebooks to be available on the website (#1890) 2024-03-10 02:14:45 +00:00
agentchat_groupchat_stateflow.ipynb tags for config (#2539) 2024-04-29 01:35:12 +00:00
agentchat_groupchat_vis.ipynb Add another batch of notebooks to the website (#1969) 2024-03-15 14:30:34 +00:00
agentchat_guidance.ipynb set use_docker to default to True (#1147) 2024-01-18 17:03:49 +00:00
agentchat_human_feedback.ipynb Create topics dir and move llm config (#1853) 2024-03-04 18:02:26 +00:00
agentchat_image_generation_capability.ipynb Made the cost info easier to read (#2356) 2024-04-15 01:18:50 +00:00
agentchat_inception_function.ipynb nbqa adedd to pre-commit, added black and ruff for notebooks (#1171) 2024-01-08 03:47:01 +00:00
agentchat_langchain.ipynb Create topics dir and move llm config (#1853) 2024-03-04 18:02:26 +00:00
agentchat_lmm_gpt-4v.ipynb Add isort (#2265) 2024-04-05 02:26:06 +00:00
agentchat_lmm_llava.ipynb set use_docker to default to True (#1147) 2024-01-18 17:03:49 +00:00
agentchat_logging.ipynb Add isort (#2265) 2024-04-05 02:26:06 +00:00
agentchat_microsoft_fabric.ipynb Update Azure OpenAI API to 2024-02-15-preview (#1692) 2024-02-15 18:57:17 +00:00
agentchat_multi_task_async_chats.ipynb bump version to 0.2.22 (#2256) 2024-04-05 13:41:14 +00:00
agentchat_multi_task_chats.ipynb bump version to 0.2.22 (#2256) 2024-04-05 13:41:14 +00:00
agentchat_nested_chats_chess.ipynb bump version to 0.2.22 (#2256) 2024-04-05 13:41:14 +00:00
agentchat_nested_sequential_chats.ipynb bump version to 0.2.22 (#2256) 2024-04-05 13:41:14 +00:00
agentchat_nestedchat.ipynb bump version to 0.2.22 (#2256) 2024-04-05 13:41:14 +00:00
agentchat_nestedchat_optiguide.ipynb bump version to 0.2.22 (#2256) 2024-04-05 13:41:14 +00:00
agentchat_oai_assistant_function_call.ipynb Separate openai assistant related config items from llm_config (#2037) 2024-03-16 17:21:59 +00:00
agentchat_oai_assistant_groupchat.ipynb Create topics dir and move llm config (#1853) 2024-03-04 18:02:26 +00:00
agentchat_oai_assistant_retrieval.ipynb Separate openai assistant related config items from llm_config (#2037) 2024-03-16 17:21:59 +00:00
agentchat_oai_assistant_twoagents_basic.ipynb Separate openai assistant related config items from llm_config (#2037) 2024-03-16 17:21:59 +00:00
agentchat_oai_code_interpreter.ipynb Separate openai assistant related config items from llm_config (#2037) 2024-03-16 17:21:59 +00:00
agentchat_pgvector_RetrieveChat.ipynb 2447 fix pgvector tests and notebook (#2455) 2024-04-28 13:43:02 +00:00
agentchat_planning.ipynb Update Azure OpenAI API to 2024-02-15-preview (#1692) 2024-02-15 18:57:17 +00:00
agentchat_qdrant_RetrieveChat.ipynb [Re-Opened] Support for PGVector Database in Autogen (#2439) 2024-04-18 20:00:03 +00:00
agentchat_society_of_mind.ipynb bump version to 0.2.22 (#2256) 2024-04-05 13:41:14 +00:00
agentchat_sql_spider.ipynb Add isort (#2265) 2024-04-05 02:26:06 +00:00
agentchat_stream.ipynb Create topics dir and move llm config (#1853) 2024-03-04 18:02:26 +00:00
agentchat_surfer.ipynb Improve readability of notebooks (#2200) 2024-04-09 15:07:44 +00:00
agentchat_teachability.ipynb Update more notebooks to be available on the website (#1890) 2024-03-10 02:14:45 +00:00
agentchat_teachable_oai_assistants.ipynb Update Azure OpenAI API to 2024-02-15-preview (#1692) 2024-02-15 18:57:17 +00:00
agentchat_teaching.ipynb Update more notebooks to be available on the website (#1890) 2024-03-10 02:14:45 +00:00
agentchat_transform_messages.ipynb Min tokens in token limiter (#2400) 2024-04-29 02:11:16 +00:00
agentchat_two_users.ipynb Create topics dir and move llm config (#1853) 2024-03-04 18:02:26 +00:00
agentchat_video_transcript_translate_with_whisper.ipynb Add isort (#2265) 2024-04-05 02:26:06 +00:00
agentchat_web_info.ipynb Update Azure OpenAI API to 2024-02-15-preview (#1692) 2024-02-15 18:57:17 +00:00
agentchat_webscraping_with_apify.ipynb Add isort (#2265) 2024-04-05 02:26:06 +00:00
agentchat_websockets.ipynb Fix typo in websockets notebook (#2287) 2024-04-05 15:49:23 +00:00
agentchats_sequential_chats.ipynb bump version to 0.2.22 (#2256) 2024-04-05 13:41:14 +00:00
agenteval_cq_math.ipynb Add isort (#2265) 2024-04-05 02:26:06 +00:00
autobuild_agent_library.ipynb nbqa adedd to pre-commit, added black and ruff for notebooks (#1171) 2024-01-08 03:47:01 +00:00
autobuild_basic.ipynb nbqa adedd to pre-commit, added black and ruff for notebooks (#1171) 2024-01-08 03:47:01 +00:00
config_loader_utility_functions.ipynb Create topics dir and move llm config (#1853) 2024-03-04 18:02:26 +00:00
contributing.md Create topics dir and move llm config (#1853) 2024-03-04 18:02:26 +00:00
nested-chats-chess.png added PNG and JPEG files to LFS automatically (#2226) 2024-04-02 05:20:47 +00:00
nested_chat_1.png added PNG and JPEG files to LFS automatically (#2226) 2024-04-02 05:20:47 +00:00
nested_chat_2.png added PNG and JPEG files to LFS automatically (#2226) 2024-04-02 05:20:47 +00:00
oai_chatgpt_gpt4.ipynb Update Azure OpenAI API to 2024-02-15-preview (#1692) 2024-02-15 18:57:17 +00:00
oai_completion.ipynb Update Azure OpenAI API to 2024-02-15-preview (#1692) 2024-02-15 18:57:17 +00:00
optiGuide_new_design.png added PNG and JPEG files to LFS automatically (#2226) 2024-04-02 05:20:47 +00:00
viz_gc.png added PNG and JPEG files to LFS automatically (#2226) 2024-04-02 05:20:47 +00:00