mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
regenerate from cloud 529be4ccb9
This commit is contained in:
+2
-2
@@ -673,6 +673,7 @@ pkg/hanzoai/cloud/models/framework_row.py
|
||||
pkg/hanzoai/cloud/models/function_detail.py
|
||||
pkg/hanzoai/cloud/models/function_view.py
|
||||
pkg/hanzoai/cloud/models/funnel.py
|
||||
pkg/hanzoai/cloud/models/fusion.py
|
||||
pkg/hanzoai/cloud/models/gc_out.py
|
||||
pkg/hanzoai/cloud/models/generate_input.py
|
||||
pkg/hanzoai/cloud/models/generate_request.py
|
||||
@@ -976,7 +977,6 @@ pkg/hanzoai/cloud/models/machine_view.py
|
||||
pkg/hanzoai/cloud/models/make_in.py
|
||||
pkg/hanzoai/cloud/models/market_catalog.py
|
||||
pkg/hanzoai/cloud/models/market_item.py
|
||||
pkg/hanzoai/cloud/models/match.py
|
||||
pkg/hanzoai/cloud/models/mcp_catalog.py
|
||||
pkg/hanzoai/cloud/models/mcp_catalog_sync.py
|
||||
pkg/hanzoai/cloud/models/mcp_error.py
|
||||
@@ -1954,6 +1954,7 @@ pkg/hanzoai/cloud/models/prompt_list.py
|
||||
pkg/hanzoai/cloud/models/prompt_meta.py
|
||||
pkg/hanzoai/cloud/models/prompt_req.py
|
||||
pkg/hanzoai/cloud/models/prop_spec.py
|
||||
pkg/hanzoai/cloud/models/provenance.py
|
||||
pkg/hanzoai/cloud/models/provider_breakdown.py
|
||||
pkg/hanzoai/cloud/models/provider_info.py
|
||||
pkg/hanzoai/cloud/models/provider_row.py
|
||||
@@ -2059,7 +2060,6 @@ pkg/hanzoai/cloud/models/request.py
|
||||
pkg/hanzoai/cloud/models/resolve_reference_in.py
|
||||
pkg/hanzoai/cloud/models/resolve_reference_out.py
|
||||
pkg/hanzoai/cloud/models/resource_usage.py
|
||||
pkg/hanzoai/cloud/models/response.py
|
||||
pkg/hanzoai/cloud/models/responsible.py
|
||||
pkg/hanzoai/cloud/models/restart_ref.py
|
||||
pkg/hanzoai/cloud/models/restarted.py
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
ref=92604dd76f731c0ef713f50d067334628c173811
|
||||
sha256=553af63847ae7c60ece8a184e09e57ae7bc9d60560b44f749a0146c5b1a19a84
|
||||
ref=529be4ccb9a6cf1cf225477ea31b1d16260ecdb5
|
||||
sha256=48d08c06514c6093af98af3974feade95fa622d8897dcdc5a30a4156a483b43f
|
||||
repo=hanzo-inc/cloud
|
||||
path=openapi.yaml
|
||||
|
||||
@@ -695,6 +695,7 @@ __all__ = [
|
||||
"FunctionDetail",
|
||||
"FunctionView",
|
||||
"Funnel",
|
||||
"Fusion",
|
||||
"GLRow",
|
||||
"GPU",
|
||||
"GcOut",
|
||||
@@ -1005,7 +1006,6 @@ __all__ = [
|
||||
"MakeIn",
|
||||
"MarketCatalog",
|
||||
"MarketItem",
|
||||
"Match",
|
||||
"McpCatalog",
|
||||
"McpCatalogSync",
|
||||
"McpServerList",
|
||||
@@ -1976,6 +1976,7 @@ __all__ = [
|
||||
"PromptMeta",
|
||||
"PromptReq",
|
||||
"PropSpec",
|
||||
"Provenance",
|
||||
"ProviderBreakdown",
|
||||
"ProviderInfo",
|
||||
"ProviderRow",
|
||||
@@ -2081,7 +2082,6 @@ __all__ = [
|
||||
"ResolveReferenceIn",
|
||||
"ResolveReferenceOut",
|
||||
"ResourceUsage",
|
||||
"Response",
|
||||
"Responsible",
|
||||
"RestartRef",
|
||||
"Restarted",
|
||||
@@ -3159,6 +3159,7 @@ from hanzoai.cloud.models.framework_row import FrameworkRow as FrameworkRow
|
||||
from hanzoai.cloud.models.function_detail import FunctionDetail as FunctionDetail
|
||||
from hanzoai.cloud.models.function_view import FunctionView as FunctionView
|
||||
from hanzoai.cloud.models.funnel import Funnel as Funnel
|
||||
from hanzoai.cloud.models.fusion import Fusion as Fusion
|
||||
from hanzoai.cloud.models.gl_row import GLRow as GLRow
|
||||
from hanzoai.cloud.models.gpu import GPU as GPU
|
||||
from hanzoai.cloud.models.gc_out import GcOut as GcOut
|
||||
@@ -3469,7 +3470,6 @@ from hanzoai.cloud.models.machine_view import MachineView as MachineView
|
||||
from hanzoai.cloud.models.make_in import MakeIn as MakeIn
|
||||
from hanzoai.cloud.models.market_catalog import MarketCatalog as MarketCatalog
|
||||
from hanzoai.cloud.models.market_item import MarketItem as MarketItem
|
||||
from hanzoai.cloud.models.match import Match as Match
|
||||
from hanzoai.cloud.models.mcp_catalog import McpCatalog as McpCatalog
|
||||
from hanzoai.cloud.models.mcp_catalog_sync import McpCatalogSync as McpCatalogSync
|
||||
from hanzoai.cloud.models.mcp_server_list import McpServerList as McpServerList
|
||||
@@ -4440,6 +4440,7 @@ from hanzoai.cloud.models.prompt_list import PromptList as PromptList
|
||||
from hanzoai.cloud.models.prompt_meta import PromptMeta as PromptMeta
|
||||
from hanzoai.cloud.models.prompt_req import PromptReq as PromptReq
|
||||
from hanzoai.cloud.models.prop_spec import PropSpec as PropSpec
|
||||
from hanzoai.cloud.models.provenance import Provenance as Provenance
|
||||
from hanzoai.cloud.models.provider_breakdown import ProviderBreakdown as ProviderBreakdown
|
||||
from hanzoai.cloud.models.provider_info import ProviderInfo as ProviderInfo
|
||||
from hanzoai.cloud.models.provider_row import ProviderRow as ProviderRow
|
||||
@@ -4545,7 +4546,6 @@ from hanzoai.cloud.models.request import Request as Request
|
||||
from hanzoai.cloud.models.resolve_reference_in import ResolveReferenceIn as ResolveReferenceIn
|
||||
from hanzoai.cloud.models.resolve_reference_out import ResolveReferenceOut as ResolveReferenceOut
|
||||
from hanzoai.cloud.models.resource_usage import ResourceUsage as ResourceUsage
|
||||
from hanzoai.cloud.models.response import Response as Response
|
||||
from hanzoai.cloud.models.responsible import Responsible as Responsible
|
||||
from hanzoai.cloud.models.restart_ref import RestartRef as RestartRef
|
||||
from hanzoai.cloud.models.restarted import Restarted as Restarted
|
||||
|
||||
@@ -16,8 +16,8 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
||||
from typing import Any, Dict, List, Optional, Tuple, Union
|
||||
from typing_extensions import Annotated
|
||||
|
||||
from hanzoai.cloud.models.fusion import Fusion
|
||||
from hanzoai.cloud.models.request import Request
|
||||
from hanzoai.cloud.models.response import Response
|
||||
|
||||
from hanzoai.cloud.api_client import ApiClient, RequestSerialized
|
||||
from hanzoai.cloud.api_response import ApiResponse
|
||||
@@ -53,7 +53,7 @@ class SearchApi:
|
||||
_content_type: Optional[StrictStr] = None,
|
||||
_headers: Optional[Dict[StrictStr, Any]] = None,
|
||||
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
||||
) -> Response:
|
||||
) -> Fusion:
|
||||
"""Hybrid search over the org's own corpora
|
||||
|
||||
Is the typed op behind POST /v1/search. It does exactly two things the in-process entry point must not do: resolve the tenant from the validated principal, and refuse when there is none. Everything else is ForOrg.
|
||||
@@ -91,7 +91,7 @@ class SearchApi:
|
||||
)
|
||||
|
||||
_response_types_map: Dict[str, Optional[str]] = {
|
||||
'200': "Response",
|
||||
'200': "Fusion",
|
||||
}
|
||||
response_data = self.api_client.call_api(
|
||||
*_param,
|
||||
@@ -120,7 +120,7 @@ class SearchApi:
|
||||
_content_type: Optional[StrictStr] = None,
|
||||
_headers: Optional[Dict[StrictStr, Any]] = None,
|
||||
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
||||
) -> ApiResponse[Response]:
|
||||
) -> ApiResponse[Fusion]:
|
||||
"""Hybrid search over the org's own corpora
|
||||
|
||||
Is the typed op behind POST /v1/search. It does exactly two things the in-process entry point must not do: resolve the tenant from the validated principal, and refuse when there is none. Everything else is ForOrg.
|
||||
@@ -158,7 +158,7 @@ class SearchApi:
|
||||
)
|
||||
|
||||
_response_types_map: Dict[str, Optional[str]] = {
|
||||
'200': "Response",
|
||||
'200': "Fusion",
|
||||
}
|
||||
response_data = self.api_client.call_api(
|
||||
*_param,
|
||||
@@ -225,7 +225,7 @@ class SearchApi:
|
||||
)
|
||||
|
||||
_response_types_map: Dict[str, Optional[str]] = {
|
||||
'200': "Response",
|
||||
'200': "Fusion",
|
||||
}
|
||||
response_data = self.api_client.call_api(
|
||||
*_param,
|
||||
|
||||
@@ -564,6 +564,7 @@ from hanzoai.cloud.models.framework_row import FrameworkRow
|
||||
from hanzoai.cloud.models.function_detail import FunctionDetail
|
||||
from hanzoai.cloud.models.function_view import FunctionView
|
||||
from hanzoai.cloud.models.funnel import Funnel
|
||||
from hanzoai.cloud.models.fusion import Fusion
|
||||
from hanzoai.cloud.models.gl_row import GLRow
|
||||
from hanzoai.cloud.models.gpu import GPU
|
||||
from hanzoai.cloud.models.gc_out import GcOut
|
||||
@@ -874,7 +875,6 @@ from hanzoai.cloud.models.machine_view import MachineView
|
||||
from hanzoai.cloud.models.make_in import MakeIn
|
||||
from hanzoai.cloud.models.market_catalog import MarketCatalog
|
||||
from hanzoai.cloud.models.market_item import MarketItem
|
||||
from hanzoai.cloud.models.match import Match
|
||||
from hanzoai.cloud.models.mcp_catalog import McpCatalog
|
||||
from hanzoai.cloud.models.mcp_catalog_sync import McpCatalogSync
|
||||
from hanzoai.cloud.models.mcp_server_list import McpServerList
|
||||
@@ -1845,6 +1845,7 @@ from hanzoai.cloud.models.prompt_list import PromptList
|
||||
from hanzoai.cloud.models.prompt_meta import PromptMeta
|
||||
from hanzoai.cloud.models.prompt_req import PromptReq
|
||||
from hanzoai.cloud.models.prop_spec import PropSpec
|
||||
from hanzoai.cloud.models.provenance import Provenance
|
||||
from hanzoai.cloud.models.provider_breakdown import ProviderBreakdown
|
||||
from hanzoai.cloud.models.provider_info import ProviderInfo
|
||||
from hanzoai.cloud.models.provider_row import ProviderRow
|
||||
@@ -1950,7 +1951,6 @@ from hanzoai.cloud.models.request import Request
|
||||
from hanzoai.cloud.models.resolve_reference_in import ResolveReferenceIn
|
||||
from hanzoai.cloud.models.resolve_reference_out import ResolveReferenceOut
|
||||
from hanzoai.cloud.models.resource_usage import ResourceUsage
|
||||
from hanzoai.cloud.models.response import Response
|
||||
from hanzoai.cloud.models.responsible import Responsible
|
||||
from hanzoai.cloud.models.restart_ref import RestartRef
|
||||
from hanzoai.cloud.models.restarted import Restarted
|
||||
|
||||
@@ -27,7 +27,7 @@ class BackendStatus(BaseModel):
|
||||
BackendStatus
|
||||
""" # noqa: E501
|
||||
error: Optional[StrictStr] = Field(default=None, description="Error is the failure text from a leg whose status is degraded — the reason a configured backend could not answer. Absent otherwise.")
|
||||
hits: Optional[StrictInt] = Field(default=None, description="Hits is how many results this leg returned, counted BEFORE fusion, so it is not the number that survived into Response.Hits — fusion merges what both legs found and the caller's limit and offset then page it. 0 for a leg that did not run.")
|
||||
hits: Optional[StrictInt] = Field(default=None, description="Hits is how many results this leg returned, counted BEFORE fusion, so it is not the number that survived into Fusion.Hits — fusion merges what both legs found and the caller's limit and offset then page it. 0 for a leg that did not run.")
|
||||
name: Optional[StrictStr] = Field(default=None, description="Name is which leg this reports: \"index\", the lexical store, \"vector\", the semantic one, or \"code\", the org's own repositories. Match.Backend uses the same three names.")
|
||||
status: Optional[StrictStr] = Field(default=None, description="Status is one of ok, degraded, disabled, skipped — four distinct operational facts that are never collapsed. It ran and answered; it is configured and FAILED (Error says how, and only this one is a fault); this deployment never provisioned it; or the request's mode excluded it.")
|
||||
took_ms: Optional[StrictInt] = Field(default=None, description="TookMS is how long this leg took, in milliseconds, timed around its own call and excluding fusion. 0 for a leg that was skipped or is disabled, since nothing was called.")
|
||||
|
||||
@@ -24,9 +24,9 @@ from hanzoai.cloud.models.hit import Hit
|
||||
from typing import Optional, Set
|
||||
from typing_extensions import Self
|
||||
|
||||
class Response(BaseModel):
|
||||
class Fusion(BaseModel):
|
||||
"""
|
||||
Response
|
||||
Fusion
|
||||
""" # noqa: E501
|
||||
backends: Optional[List[BackendStatus]] = Field(default=None, description="Backends is the per-leg report. Always populated.")
|
||||
hits: Optional[List[Hit]] = Field(default=None, description="Hits is the fused, ranked result set.")
|
||||
@@ -53,7 +53,7 @@ class Response(BaseModel):
|
||||
|
||||
@classmethod
|
||||
def from_json(cls, json_str: str) -> Optional[Self]:
|
||||
"""Create an instance of Response from a JSON string"""
|
||||
"""Create an instance of Fusion from a JSON string"""
|
||||
return cls.from_dict(json.loads(json_str))
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
@@ -92,7 +92,7 @@ class Response(BaseModel):
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
||||
"""Create an instance of Response from a dict"""
|
||||
"""Create an instance of Fusion from a dict"""
|
||||
if obj is None:
|
||||
return None
|
||||
|
||||
@@ -22,11 +22,11 @@ from typing import Any, ClassVar, Dict, List, Optional, Union
|
||||
from typing import Optional, Set
|
||||
from typing_extensions import Self
|
||||
|
||||
class Match(BaseModel):
|
||||
class Provenance(BaseModel):
|
||||
"""
|
||||
Match
|
||||
Provenance
|
||||
""" # noqa: E501
|
||||
backend: Optional[StrictStr] = Field(default=None, description="Backend is the leg that contributed this match: \"index\" (lexical), \"vector\" (semantic) or \"code\" (the org's repositories). It is the same name that leg reports itself under in Response.Backends, so a hit can be traced to a status.")
|
||||
backend: Optional[StrictStr] = Field(default=None, description="Backend is the leg that contributed this match: \"index\" (lexical), \"vector\" (semantic) or \"code\" (the org's repositories). It is the same name that leg reports itself under in Fusion.Backends, so a hit can be traced to a status.")
|
||||
rank: Optional[StrictInt] = Field(default=None, description="Rank is this document's 1-based position in THAT leg's own result list, before fusion — 1 is the leg's best hit. It is the only input to the fused score: RRF adds 1/(60+rank) per leg, which is why a document two legs ranked second beats one a single leg ranked first.")
|
||||
score: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Score is the leg's NATIVE score, on that leg's own scale, reported for explanation and never used in ranking — the scales are incomparable (a cosine similarity against a term-match count), which is why fusion works on ranks. The vector leg reports Qdrant's cosine similarity; the lexical leg exposes no per-row score and reports 0, meaning \"unscored\", not \"scored zero\".")
|
||||
__properties: ClassVar[List[str]] = ["backend", "rank", "score"]
|
||||
@@ -49,7 +49,7 @@ class Match(BaseModel):
|
||||
|
||||
@classmethod
|
||||
def from_json(cls, json_str: str) -> Optional[Self]:
|
||||
"""Create an instance of Match from a JSON string"""
|
||||
"""Create an instance of Provenance from a JSON string"""
|
||||
return cls.from_dict(json.loads(json_str))
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
@@ -74,7 +74,7 @@ class Match(BaseModel):
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
||||
"""Create an instance of Match from a dict"""
|
||||
"""Create an instance of Provenance from a dict"""
|
||||
if obj is None:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user