Langroid

Latest version: v0.23.3

Safety actively analyzes 681844 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 54

0.21.0

feat: Gemini LLM support directly via OpenAI client instead of via LiteLLM

See [docs](https://langroid.github.io/langroid/notes/gemini)

0.20.1

fixes/improvements:
- Improve `ArangoChatAgent` handling of large schemas: initially populate shorter schema, and instruct it to query specific parts of schema as needed.
- Fix: `task.py` should populate `tool_messages` after any responder's response.

0.20.0

feat: Support for ArangoDB KnowledgeGraph via [python-arangodb](https://github.com/arangodb/python-arango)

- implementation: https://github.com/langroid/langroid/tree/main/langroid/agent/special/arangodb
- tests: [test_arangodb.py](https://github.com/langroid/langroid/blob/main/tests/main/test_arangodb.py), [test_arangodb_chat_agent.py](https://github.com/langroid/langroid/blob/main/tests/main/test_arangodb_chat_agent.py)
- example: [chat-arangodb.py](https://github.com/langroid/langroid/blob/main/examples/kg-chat/chat-arangodb.py)

0.19.5

fix: remove DoneTool and AgentDoneTool in cases where user input is required to quit

0.19.4

Update CLAUDE_3_5_SONNET to point to claude-3-5-sonnet-latest

0.19.3

fix: disable streaming when in quiet mode.

In some scenarios we want to suppress LLM streaming output -- e.g. when doing some type of processing as part of a workflow,
or when using an LLM-agent to generate code via tools, etc. We are more interested in seeing the results of the workflow,
and don't want to see streaming output in the terminal. Langroid provides a `quiet_mode` context manager that can be used
to suppress LLM output, even in streaming mode (in fact streaming is disabled in quiet mode).

E.g. we can use the `quiet_mode` context manager like this:

python
from langroid.utils.configuration import quiet_mode, settings

directly with LLM

llm = ...
with quiet_mode(True):
response = llm.chat(...)

or, using an agent

agent = ...
with quiet_mode(True):
response = agent.llm_response(...)

or, using a task

task = Task(agent, ...)
with quiet_mode(True):
result = Taks.run(...)

we can explicitly set quiet_mode, and this is globally recognized throughout langroid.

settings.quiet = True

we can also condition quiet mode on another custom cmd line option/flag, such as "silent":

with quiet_mode(silent):
...

Page 3 of 54

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.