Skip to content

Commit 7fc01f3

Browse files
authored
Merge branch 'master' into pprados/02-pymupdf
2 parents 5910f99 + 44b41b6 commit 7fc01f3

File tree

4 files changed

+68
-11
lines changed

4 files changed

+68
-11
lines changed

.github/scripts/prep_api_docs_build.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,23 @@ def main():
6464
try:
6565
# Load packages configuration
6666
package_yaml = load_packages_yaml()
67-
packages = [
67+
68+
# Clean target directories
69+
clean_target_directories([
6870
p
6971
for p in package_yaml["packages"]
70-
if not p.get("disabled", False)
71-
and p["repo"].startswith("langchain-ai/")
72+
if p["repo"].startswith("langchain-ai/")
7273
and p["repo"] != "langchain-ai/langchain"
73-
]
74-
75-
# Clean target directories
76-
clean_target_directories(packages)
74+
])
7775

7876
# Move libraries to their new locations
79-
move_libraries(packages)
77+
move_libraries([
78+
p
79+
for p in package_yaml["packages"]
80+
if not p.get("disabled", False)
81+
and p["repo"].startswith("langchain-ai/")
82+
and p["repo"] != "langchain-ai/langchain"
83+
])
8084

8185
print("Library sync completed successfully!")
8286

docs/docs/integrations/providers/falkordb.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,11 @@ See a [usage example](/docs/integrations/graphs/falkordb).
2424
```python
2525
from langchain_community.chains.graph_qa.falkordb import FalkorDBQAChain
2626
```
27+
28+
## Memory
29+
30+
See a [usage example](/docs/integrations/memory/falkordb_chat_message_history).
31+
32+
```python
33+
from langchain_falkordb import FalkorDBChatMessageHistory
34+
```

libs/langchain/langchain/agents/openai_assistant/base.py

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,12 @@ def invoke(
293293
instructions: Additional run instructions.
294294
model: Override Assistant model for this run.
295295
tools: Override Assistant tools for this run.
296+
parallel_tool_calls: Allow Assistant to set parallel_tool_calls
297+
for this run.
298+
top_p: Override Assistant top_p for this run.
299+
temperature: Override Assistant temperature for this run.
300+
max_completion_tokens: Allow setting max_completion_tokens for this run.
301+
max_prompt_tokens: Allow setting max_prompt_tokens for this run.
296302
run_metadata: Metadata to associate with new run.
297303
config: Runnable config. Defaults to None.
298304
@@ -412,6 +418,12 @@ async def ainvoke(
412418
additional_instructions: Appends additional instructions.
413419
model: Override Assistant model for this run.
414420
tools: Override Assistant tools for this run.
421+
parallel_tool_calls: Allow Assistant to set parallel_tool_calls
422+
for this run.
423+
top_p: Override Assistant top_p for this run.
424+
temperature: Override Assistant temperature for this run.
425+
max_completion_tokens: Allow setting max_completion_tokens for this run.
426+
max_prompt_tokens: Allow setting max_prompt_tokens for this run.
415427
run_metadata: Metadata to associate with new run.
416428
config: Runnable config. Defaults to None.
417429
kwargs: Additional arguments.
@@ -514,6 +526,11 @@ def _create_run(self, input: dict) -> Any:
514526
"model",
515527
"tools",
516528
"additional_instructions",
529+
"parallel_tool_calls",
530+
"top_p",
531+
"temperature",
532+
"max_completion_tokens",
533+
"max_prompt_tokens",
517534
"run_metadata",
518535
)
519536
}
@@ -527,7 +544,18 @@ def _create_thread_and_run(self, input: dict, thread: dict) -> Any:
527544
params = {
528545
k: v
529546
for k, v in input.items()
530-
if k in ("instructions", "model", "tools", "run_metadata")
547+
if k
548+
in (
549+
"instructions",
550+
"model",
551+
"tools",
552+
"parallel_tool_calls",
553+
"top_p",
554+
"temperature",
555+
"max_completion_tokens",
556+
"max_prompt_tokens",
557+
"run_metadata",
558+
)
531559
}
532560
run = self.client.beta.threads.create_and_run(
533561
assistant_id=self.assistant_id,
@@ -651,6 +679,11 @@ async def _acreate_run(self, input: dict) -> Any:
651679
"model",
652680
"tools",
653681
"additional_instructions",
682+
"parallel_tool_calls",
683+
"top_p",
684+
"temperature",
685+
"max_completion_tokens",
686+
"max_prompt_tokens",
654687
"run_metadata",
655688
)
656689
}
@@ -664,7 +697,18 @@ async def _acreate_thread_and_run(self, input: dict, thread: dict) -> Any:
664697
params = {
665698
k: v
666699
for k, v in input.items()
667-
if k in ("instructions", "model", "tools", "run_metadata")
700+
if k
701+
in (
702+
"instructions",
703+
"model",
704+
"tools",
705+
"parallel_tool_calls",
706+
"top_p",
707+
"temperature",
708+
"max_completion_tokens",
709+
"max_prompt_tokens",
710+
"run_metadata",
711+
)
668712
}
669713
run = await self.async_client.beta.threads.create_and_run(
670714
assistant_id=self.assistant_id,

libs/packages.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,13 @@ packages:
9494
downloads: 232463
9595
downloads_updated_at: '2024-12-23T20:10:11.816059+00:00'
9696
- name: langchain-mongodb
97-
path: libs/mongodb
97+
path: libs/langchain-mongodb
9898
repo: langchain-ai/langchain-mongodb
9999
provider_page: mongodb_atlas
100100
js: '@langchain/mongodb'
101101
downloads: 113328
102102
downloads_updated_at: '2024-12-23T20:10:11.816059+00:00'
103+
disabled: true
103104
- name: langchain-nomic
104105
path: libs/partners/nomic
105106
repo: langchain-ai/langchain

0 commit comments

Comments
 (0)