Skip to content

Commit

Permalink
chore: auto-gen by protobufs
Browse files Browse the repository at this point in the history
triggered by commit: instill-ai/protobufs@b85ba0e
  • Loading branch information
droplet-bot committed Nov 22, 2024
1 parent c25dd04 commit 0f69e28
Show file tree
Hide file tree
Showing 11 changed files with 499 additions and 153 deletions.
45 changes: 45 additions & 0 deletions app/app/v1alpha/agent_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 78 additions & 0 deletions app/app/v1alpha/agent_pb2.pyi
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
4 changes: 4 additions & 0 deletions app/app/v1alpha/agent_pb2_grpc.py
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

17 changes: 17 additions & 0 deletions app/app/v1alpha/agent_pb2_grpc.pyi
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
...
Loading

0 comments on commit 0f69e28

Please sign in to comment.