增加环绕侦察场景适配
This commit is contained in:
@@ -49,7 +49,7 @@ from chromadb.execution.expression.plan import Search
|
||||
import chromadb_rust_bindings
|
||||
|
||||
|
||||
from typing import Optional, Sequence, List, Dict, Any
|
||||
from typing import Optional, Sequence, List, Dict, Any, Tuple
|
||||
from overrides import override
|
||||
from uuid import UUID
|
||||
import json
|
||||
@@ -613,6 +613,20 @@ class RustBindingsAPI(ServerAPI):
|
||||
params: Optional[Dict[str, Any]] = None,
|
||||
tenant: str = DEFAULT_TENANT,
|
||||
database: str = DEFAULT_DATABASE,
|
||||
) -> Tuple["AttachedFunction", bool]:
|
||||
"""Attached functions are not supported in the Rust bindings (local embedded mode)."""
|
||||
raise NotImplementedError(
|
||||
"Attached functions are only supported when connecting to a Chroma server via HttpClient. "
|
||||
"The Rust bindings (embedded mode) do not support attached function operations."
|
||||
)
|
||||
|
||||
@override
|
||||
def get_attached_function(
|
||||
self,
|
||||
name: str,
|
||||
input_collection_id: UUID,
|
||||
tenant: str = DEFAULT_TENANT,
|
||||
database: str = DEFAULT_DATABASE,
|
||||
) -> "AttachedFunction":
|
||||
"""Attached functions are not supported in the Rust bindings (local embedded mode)."""
|
||||
raise NotImplementedError(
|
||||
@@ -623,7 +637,8 @@ class RustBindingsAPI(ServerAPI):
|
||||
@override
|
||||
def detach_function(
|
||||
self,
|
||||
attached_function_id: UUID,
|
||||
name: str,
|
||||
input_collection_id: UUID,
|
||||
delete_output: bool = False,
|
||||
tenant: str = DEFAULT_TENANT,
|
||||
database: str = DEFAULT_DATABASE,
|
||||
|
||||
Reference in New Issue
Block a user