langroid 0.59.2__tar.gz → 0.59.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {langroid-0.59.2 → langroid-0.59.3}/PKG-INFO +1 -1
- {langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/model_info.py +9 -6
- {langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/openai_gpt.py +1 -1
- {langroid-0.59.2 → langroid-0.59.3}/pyproject.toml +1 -1
- {langroid-0.59.2 → langroid-0.59.3}/.gitignore +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/LICENSE +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/README.md +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/base.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/batch.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/callbacks/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/callbacks/chainlit.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/chat_agent.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/chat_document.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/done_sequence_parser.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/openai_assistant.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/arangodb/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/arangodb/arangodb_agent.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/arangodb/system_messages.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/arangodb/tools.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/arangodb/utils.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/doc_chat_agent.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/doc_chat_task.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/lance_doc_chat_agent.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/lance_rag/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/lance_rag/critic_agent.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/lance_rag/lance_rag_task.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/lance_rag/query_planner_agent.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/lance_tools.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/neo4j/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/neo4j/csv_kg_chat.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/neo4j/neo4j_chat_agent.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/neo4j/system_messages.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/neo4j/tools.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/relevance_extractor_agent.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/retriever_agent.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/sql/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/sql/sql_chat_agent.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/sql/utils/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/sql/utils/description_extractors.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/sql/utils/populate_metadata.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/sql/utils/system_message.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/sql/utils/tools.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/table_chat_agent.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/task.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tool_message.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/duckduckgo_search_tool.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/exa_search_tool.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/file_tools.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/google_search_tool.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/mcp/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/mcp/decorators.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/mcp/fastmcp_client.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/metaphor_search_tool.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/orchestration.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/recipient_tool.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/retrieval_tool.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/rewind_tool.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/segment_extract_tool.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/task_tool.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/tools/tavily_search_tool.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/agent/xml_tool_message.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/cachedb/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/cachedb/base.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/cachedb/redis_cachedb.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/embedding_models/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/embedding_models/base.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/embedding_models/models.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/embedding_models/protoc/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/embedding_models/protoc/embeddings.proto +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/embedding_models/protoc/embeddings_pb2.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/embedding_models/protoc/embeddings_pb2.pyi +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/embedding_models/protoc/embeddings_pb2_grpc.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/embedding_models/remote_embeds.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/exceptions.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/azure_openai.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/base.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/client_cache.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/config.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/mock_lm.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/prompt_formatter/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/prompt_formatter/base.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/prompt_formatter/hf_formatter.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/prompt_formatter/llama2_formatter.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/provider_params.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/utils.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/mcp/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/mcp/server/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/mytypes.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/agent_chats.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/code_parser.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/document_parser.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/file_attachment.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/md_parser.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/para_sentence_split.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/parse_json.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/parser.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/pdf_utils.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/repo_loader.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/routing.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/search.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/spider.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/table_loader.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/url_loader.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/urls.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/utils.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/parsing/web_search.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/prompts/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/prompts/dialog.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/prompts/prompts_config.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/prompts/templates.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/py.typed +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/pydantic_v1/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/pydantic_v1/main.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/algorithms/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/algorithms/graph.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/configuration.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/constants.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/git_utils.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/globals.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/html_logger.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/logging.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/object_registry.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/output/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/output/citations.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/output/printing.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/output/status.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/pandas_utils.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/pydantic_utils.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/system.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/utils/types.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/vector_store/__init__.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/vector_store/base.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/vector_store/chromadb.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/vector_store/lancedb.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/vector_store/meilisearch.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/vector_store/pineconedb.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/vector_store/postgres.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/vector_store/qdrantdb.py +0 -0
- {langroid-0.59.2 → langroid-0.59.3}/langroid/vector_store/weaviatedb.py +0 -0
@@ -74,10 +74,10 @@ class GeminiModel(ModelName):
|
|
74
74
|
GEMINI_1_5_PRO = "gemini-1.5-pro"
|
75
75
|
GEMINI_2_5_PRO = "gemini-2.5-pro"
|
76
76
|
GEMINI_2_5_FLASH = "gemini-2.5-flash"
|
77
|
-
|
77
|
+
GEMINI_2_5_FLASH_LITE = "gemini-2.5-flash-lite"
|
78
78
|
GEMINI_2_PRO = "gemini-2.0-pro-exp-02-05"
|
79
79
|
GEMINI_2_FLASH = "gemini-2.0-flash"
|
80
|
-
GEMINI_2_FLASH_LITE = "gemini-2.0-flash-lite
|
80
|
+
GEMINI_2_FLASH_LITE = "gemini-2.0-flash-lite"
|
81
81
|
GEMINI_2_FLASH_THINKING = "gemini-2.0-flash-thinking-exp"
|
82
82
|
|
83
83
|
|
@@ -90,6 +90,9 @@ class OpenAI_API_ParamInfo(BaseModel):
|
|
90
90
|
params: Dict[str, List[str]] = dict(
|
91
91
|
reasoning_effort=[
|
92
92
|
OpenAIChatModel.O3_MINI.value,
|
93
|
+
GeminiModel.GEMINI_2_5_PRO.value,
|
94
|
+
GeminiModel.GEMINI_2_5_FLASH.value,
|
95
|
+
GeminiModel.GEMINI_2_5_FLASH_LITE.value,
|
93
96
|
],
|
94
97
|
)
|
95
98
|
# model-specific params in extra_body
|
@@ -438,7 +441,7 @@ MODEL_INFO: Dict[str, ModelInfo] = {
|
|
438
441
|
input_cost_per_million=0.075,
|
439
442
|
output_cost_per_million=0.30,
|
440
443
|
rename_params={"max_tokens": "max_completion_tokens"},
|
441
|
-
description="Gemini 2.0 Flash Lite
|
444
|
+
description="Gemini 2.0 Flash Lite",
|
442
445
|
),
|
443
446
|
GeminiModel.GEMINI_1_5_FLASH.value: ModelInfo(
|
444
447
|
name=GeminiModel.GEMINI_1_5_FLASH.value,
|
@@ -503,8 +506,8 @@ MODEL_INFO: Dict[str, ModelInfo] = {
|
|
503
506
|
rename_params={"max_tokens": "max_completion_tokens"},
|
504
507
|
description="Gemini 2.5 Flash",
|
505
508
|
),
|
506
|
-
GeminiModel.
|
507
|
-
name=GeminiModel.
|
509
|
+
GeminiModel.GEMINI_2_5_FLASH_LITE.value: ModelInfo(
|
510
|
+
name=GeminiModel.GEMINI_2_5_FLASH_LITE.value,
|
508
511
|
provider=ModelProvider.GOOGLE,
|
509
512
|
context_length=65_536,
|
510
513
|
max_output_tokens=65_536,
|
@@ -512,7 +515,7 @@ MODEL_INFO: Dict[str, ModelInfo] = {
|
|
512
515
|
cached_cost_per_million=0.025,
|
513
516
|
output_cost_per_million=0.40,
|
514
517
|
rename_params={"max_tokens": "max_completion_tokens"},
|
515
|
-
description="Gemini 2.5 Flash Lite
|
518
|
+
description="Gemini 2.5 Flash Lite",
|
516
519
|
),
|
517
520
|
}
|
518
521
|
|
@@ -215,7 +215,7 @@ class OpenAICallParams(BaseModel):
|
|
215
215
|
top_p: float | None = None
|
216
216
|
reasoning_effort: str | None = None # or "low" or "high" or "medium"
|
217
217
|
top_logprobs: int | None = None # if int, requires logprobs=True
|
218
|
-
n: int =
|
218
|
+
n: int | None = None # how many completions to generate (n > 1 is NOT handled now)
|
219
219
|
stop: str | List[str] | None = None # (list of) stop sequence(s)
|
220
220
|
seed: int | None = None
|
221
221
|
user: str | None = None # user id for tracking
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{langroid-0.59.2 → langroid-0.59.3}/langroid/agent/special/sql/utils/description_extractors.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/prompt_formatter/hf_formatter.py
RENAMED
File without changes
|
{langroid-0.59.2 → langroid-0.59.3}/langroid/language_models/prompt_formatter/llama2_formatter.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|