-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
triggered by commit: instill-ai/protobufs@b85ba0e
- Loading branch information
1 parent
c25dd04
commit 0f69e28
Showing
11 changed files
with
499 additions
and
153 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
import builtins | ||
import collections.abc | ||
import google.protobuf.descriptor | ||
import google.protobuf.internal.containers | ||
import google.protobuf.message | ||
import google.protobuf.struct_pb2 | ||
import sys | ||
|
||
if sys.version_info >= (3, 8): | ||
import typing as typing_extensions | ||
else: | ||
import typing_extensions | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor | ||
|
||
@typing_extensions.final | ||
class AIAgentAppMetadata(google.protobuf.message.Message): | ||
"""AIAgentAppMetadata represents the metadata for the AI agent app.""" | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.Descriptor | ||
|
||
INSTRUCTIONS_FIELD_NUMBER: builtins.int | ||
TOOLS_FIELD_NUMBER: builtins.int | ||
CATALOG_UIDS_FIELD_NUMBER: builtins.int | ||
CHUNK_TOP_K_FIELD_NUMBER: builtins.int | ||
CHUNK_WEIGHT_FIELD_NUMBER: builtins.int | ||
instructions: builtins.str | ||
"""The instructions for the AI agent app.""" | ||
@property | ||
def tools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Tool]: | ||
"""The tools(pipelines) that the AI agent app can use.""" | ||
@property | ||
def catalog_uids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: | ||
"""The catalog uids that the AI agent app can use.""" | ||
chunk_top_k: builtins.int | ||
"""The AI agent app top k.""" | ||
chunk_weight: builtins.float | ||
"""The AI agent chunk weight.""" | ||
def __init__( | ||
self, | ||
*, | ||
instructions: builtins.str = ..., | ||
tools: collections.abc.Iterable[global___Tool] | None = ..., | ||
catalog_uids: collections.abc.Iterable[builtins.str] | None = ..., | ||
chunk_top_k: builtins.int = ..., | ||
chunk_weight: builtins.float = ..., | ||
) -> None: ... | ||
def ClearField(self, field_name: typing_extensions.Literal["catalog_uids", b"catalog_uids", "chunk_top_k", b"chunk_top_k", "chunk_weight", b"chunk_weight", "instructions", b"instructions", "tools", b"tools"]) -> None: ... | ||
|
||
global___AIAgentAppMetadata = AIAgentAppMetadata | ||
|
||
@typing_extensions.final | ||
class Tool(google.protobuf.message.Message): | ||
"""tool definitions""" | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.Descriptor | ||
|
||
NAME_FIELD_NUMBER: builtins.int | ||
CONFIG_FIELD_NUMBER: builtins.int | ||
name: builtins.str | ||
"""The tool name. e.g. ["preset/[email protected]", "preset/[email protected]"].""" | ||
@property | ||
def config(self) -> google.protobuf.struct_pb2.Struct: | ||
"""The tool config""" | ||
def __init__( | ||
self, | ||
*, | ||
name: builtins.str = ..., | ||
config: google.protobuf.struct_pb2.Struct | None = ..., | ||
) -> None: ... | ||
def HasField(self, field_name: typing_extensions.Literal["config", b"config"]) -> builtins.bool: ... | ||
def ClearField(self, field_name: typing_extensions.Literal["config", b"config", "name", b"name"]) -> None: ... | ||
|
||
global___Tool = Tool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! | ||
"""Client and server classes corresponding to protobuf-defined services.""" | ||
import grpc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
import abc | ||
import collections.abc | ||
import grpc | ||
import grpc.aio | ||
import typing | ||
|
||
_T = typing.TypeVar('_T') | ||
|
||
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): | ||
... | ||
|
||
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore | ||
... |
Oops, something went wrong.