divi 0.0.1.dev11__py3-none-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- divi/__init__.py +15 -0
- divi/bin/core +0 -0
- divi/config/config.py +0 -0
- divi/proto/core.proto +12 -0
- divi/proto/core_pb2.py +38 -0
- divi/proto/core_pb2.pyi +5 -0
- divi/proto/core_pb2_grpc.py +100 -0
- divi/proto/health.proto +12 -0
- divi/proto/health_pb2.py +39 -0
- divi/proto/health_pb2.pyi +19 -0
- divi/services/__init__.py +7 -0
- divi/services/auth/__init__.py +4 -0
- divi/services/auth/auth.py +21 -0
- divi/services/auth/init.py +24 -0
- divi/services/auth/tokman.py +42 -0
- divi/services/core/__init__.py +5 -0
- divi/services/core/core.py +35 -0
- divi/services/core/finish.py +15 -0
- divi/services/core/init.py +81 -0
- divi/services/datapark/__init__.py +3 -0
- divi/services/datapark/datapark.py +6 -0
- divi/services/datapark/init.py +9 -0
- divi/services/finish.py +5 -0
- divi/services/init.py +7 -0
- divi/services/service.py +11 -0
- divi/utils.py +14 -0
- divi-0.0.1.dev11.dist-info/METADATA +17 -0
- divi-0.0.1.dev11.dist-info/RECORD +30 -0
- divi-0.0.1.dev11.dist-info/WHEEL +4 -0
- divi-0.0.1.dev11.dist-info/licenses/LICENSE +21 -0
divi/__init__.py
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
from typing import Optional
|
2
|
+
|
3
|
+
from . import proto
|
4
|
+
from .services import Auth, Core, DataPark
|
5
|
+
|
6
|
+
name: str = "divi"
|
7
|
+
|
8
|
+
|
9
|
+
name: str = "divi"
|
10
|
+
_core: Optional[Core] = None
|
11
|
+
_auth: Optional[Auth] = None
|
12
|
+
_datapark: Optional[DataPark] = None
|
13
|
+
|
14
|
+
__version__ = "0.0.1.dev11"
|
15
|
+
__all__ = ["proto"]
|
divi/bin/core
ADDED
Binary file
|
divi/config/config.py
ADDED
File without changes
|
divi/proto/core.proto
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package core;
|
4
|
+
|
5
|
+
import "divi/proto/health.proto";
|
6
|
+
|
7
|
+
option go_package = "services/proto";
|
8
|
+
|
9
|
+
// Health is a service that implements health check.
|
10
|
+
service Core {
|
11
|
+
rpc Check(HealthCheckRequest) returns (HealthCheckResponse) {}
|
12
|
+
}
|
divi/proto/core_pb2.py
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
4
|
+
# source: divi/proto/core.proto
|
5
|
+
# Protobuf Python Version: 5.29.0
|
6
|
+
"""Generated protocol buffer code."""
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
11
|
+
from google.protobuf.internal import builder as _builder
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
14
|
+
5,
|
15
|
+
29,
|
16
|
+
0,
|
17
|
+
'',
|
18
|
+
'divi/proto/core.proto'
|
19
|
+
)
|
20
|
+
# @@protoc_insertion_point(imports)
|
21
|
+
|
22
|
+
_sym_db = _symbol_database.Default()
|
23
|
+
|
24
|
+
|
25
|
+
from divi.proto import health_pb2 as divi_dot_proto_dot_health__pb2
|
26
|
+
|
27
|
+
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x64ivi/proto/core.proto\x12\x04\x63ore\x1a\x17\x64ivi/proto/health.proto2F\n\x04\x43ore\x12>\n\x05\x43heck\x12\x18.core.HealthCheckRequest\x1a\x19.core.HealthCheckResponse\"\x00\x42\x10Z\x0eservices/protob\x06proto3')
|
29
|
+
|
30
|
+
_globals = globals()
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'divi.proto.core_pb2', _globals)
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z\016services/proto'
|
36
|
+
_globals['_CORE']._serialized_start=56
|
37
|
+
_globals['_CORE']._serialized_end=126
|
38
|
+
# @@protoc_insertion_point(module_scope)
|
divi/proto/core_pb2.pyi
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
3
|
+
import grpc
|
4
|
+
import warnings
|
5
|
+
|
6
|
+
from divi.proto import health_pb2 as divi_dot_proto_dot_health__pb2
|
7
|
+
|
8
|
+
GRPC_GENERATED_VERSION = '1.69.0'
|
9
|
+
GRPC_VERSION = grpc.__version__
|
10
|
+
_version_not_supported = False
|
11
|
+
|
12
|
+
try:
|
13
|
+
from grpc._utilities import first_version_is_lower
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
15
|
+
except ImportError:
|
16
|
+
_version_not_supported = True
|
17
|
+
|
18
|
+
if _version_not_supported:
|
19
|
+
raise RuntimeError(
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
21
|
+
+ f' but the generated code in divi/proto/core_pb2_grpc.py depends on'
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
25
|
+
)
|
26
|
+
|
27
|
+
|
28
|
+
class CoreStub(object):
|
29
|
+
"""Health is a service that implements health check.
|
30
|
+
"""
|
31
|
+
|
32
|
+
def __init__(self, channel):
|
33
|
+
"""Constructor.
|
34
|
+
|
35
|
+
Args:
|
36
|
+
channel: A grpc.Channel.
|
37
|
+
"""
|
38
|
+
self.Check = channel.unary_unary(
|
39
|
+
'/core.Core/Check',
|
40
|
+
request_serializer=divi_dot_proto_dot_health__pb2.HealthCheckRequest.SerializeToString,
|
41
|
+
response_deserializer=divi_dot_proto_dot_health__pb2.HealthCheckResponse.FromString,
|
42
|
+
_registered_method=True)
|
43
|
+
|
44
|
+
|
45
|
+
class CoreServicer(object):
|
46
|
+
"""Health is a service that implements health check.
|
47
|
+
"""
|
48
|
+
|
49
|
+
def Check(self, request, context):
|
50
|
+
"""Missing associated documentation comment in .proto file."""
|
51
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
52
|
+
context.set_details('Method not implemented!')
|
53
|
+
raise NotImplementedError('Method not implemented!')
|
54
|
+
|
55
|
+
|
56
|
+
def add_CoreServicer_to_server(servicer, server):
|
57
|
+
rpc_method_handlers = {
|
58
|
+
'Check': grpc.unary_unary_rpc_method_handler(
|
59
|
+
servicer.Check,
|
60
|
+
request_deserializer=divi_dot_proto_dot_health__pb2.HealthCheckRequest.FromString,
|
61
|
+
response_serializer=divi_dot_proto_dot_health__pb2.HealthCheckResponse.SerializeToString,
|
62
|
+
),
|
63
|
+
}
|
64
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
65
|
+
'core.Core', rpc_method_handlers)
|
66
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
67
|
+
server.add_registered_method_handlers('core.Core', rpc_method_handlers)
|
68
|
+
|
69
|
+
|
70
|
+
# This class is part of an EXPERIMENTAL API.
|
71
|
+
class Core(object):
|
72
|
+
"""Health is a service that implements health check.
|
73
|
+
"""
|
74
|
+
|
75
|
+
@staticmethod
|
76
|
+
def Check(request,
|
77
|
+
target,
|
78
|
+
options=(),
|
79
|
+
channel_credentials=None,
|
80
|
+
call_credentials=None,
|
81
|
+
insecure=False,
|
82
|
+
compression=None,
|
83
|
+
wait_for_ready=None,
|
84
|
+
timeout=None,
|
85
|
+
metadata=None):
|
86
|
+
return grpc.experimental.unary_unary(
|
87
|
+
request,
|
88
|
+
target,
|
89
|
+
'/core.Core/Check',
|
90
|
+
divi_dot_proto_dot_health__pb2.HealthCheckRequest.SerializeToString,
|
91
|
+
divi_dot_proto_dot_health__pb2.HealthCheckResponse.FromString,
|
92
|
+
options,
|
93
|
+
channel_credentials,
|
94
|
+
insecure,
|
95
|
+
call_credentials,
|
96
|
+
compression,
|
97
|
+
wait_for_ready,
|
98
|
+
timeout,
|
99
|
+
metadata,
|
100
|
+
_registered_method=True)
|
divi/proto/health.proto
ADDED
divi/proto/health_pb2.py
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
4
|
+
# source: divi/proto/health.proto
|
5
|
+
# Protobuf Python Version: 5.29.0
|
6
|
+
"""Generated protocol buffer code."""
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
11
|
+
from google.protobuf.internal import builder as _builder
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
14
|
+
5,
|
15
|
+
29,
|
16
|
+
0,
|
17
|
+
'',
|
18
|
+
'divi/proto/health.proto'
|
19
|
+
)
|
20
|
+
# @@protoc_insertion_point(imports)
|
21
|
+
|
22
|
+
_sym_db = _symbol_database.Default()
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x64ivi/proto/health.proto\x12\x04\x63ore\"%\n\x12HealthCheckRequest\x12\x0f\n\x07version\x18\x01 \x01(\t\"6\n\x13HealthCheckResponse\x12\x0e\n\x06status\x18\x01 \x01(\x08\x12\x0f\n\x07message\x18\x02 \x01(\tB\x10Z\x0eservices/protob\x06proto3')
|
28
|
+
|
29
|
+
_globals = globals()
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'divi.proto.health_pb2', _globals)
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z\016services/proto'
|
35
|
+
_globals['_HEALTHCHECKREQUEST']._serialized_start=33
|
36
|
+
_globals['_HEALTHCHECKREQUEST']._serialized_end=70
|
37
|
+
_globals['_HEALTHCHECKRESPONSE']._serialized_start=72
|
38
|
+
_globals['_HEALTHCHECKRESPONSE']._serialized_end=126
|
39
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
from google.protobuf import descriptor as _descriptor
|
2
|
+
from google.protobuf import message as _message
|
3
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional
|
4
|
+
|
5
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
6
|
+
|
7
|
+
class HealthCheckRequest(_message.Message):
|
8
|
+
__slots__ = ("version",)
|
9
|
+
VERSION_FIELD_NUMBER: _ClassVar[int]
|
10
|
+
version: str
|
11
|
+
def __init__(self, version: _Optional[str] = ...) -> None: ...
|
12
|
+
|
13
|
+
class HealthCheckResponse(_message.Message):
|
14
|
+
__slots__ = ("status", "message")
|
15
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
16
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
17
|
+
status: bool
|
18
|
+
message: str
|
19
|
+
def __init__(self, status: bool = ..., message: _Optional[str] = ...) -> None: ...
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import requests
|
2
|
+
|
3
|
+
from divi.services.auth.tokman import Token
|
4
|
+
from divi.services.service import Service
|
5
|
+
|
6
|
+
|
7
|
+
class Auth(Service):
|
8
|
+
def __init__(self, api_key: str, host="localhost", port=3000):
|
9
|
+
super().__init__(host, port)
|
10
|
+
self.api_key = api_key
|
11
|
+
self.token = Token(self)
|
12
|
+
|
13
|
+
def auth_with_api_key(self) -> str:
|
14
|
+
"""Get the token with the API key."""
|
15
|
+
r = requests.post(
|
16
|
+
f"http://{self.target}/api/auth/api_key",
|
17
|
+
json={"api_key": self.api_key},
|
18
|
+
)
|
19
|
+
if r.status_code == 200:
|
20
|
+
return r.json()["data"]
|
21
|
+
raise ValueError(r.json()["message"])
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import os
|
2
|
+
from typing import Optional
|
3
|
+
|
4
|
+
import divi
|
5
|
+
from divi.services.auth import Auth
|
6
|
+
|
7
|
+
DIVI_API_KEY = "DIVI_API_KEY"
|
8
|
+
|
9
|
+
|
10
|
+
def init(api_key: Optional[str] = None) -> Optional[Auth]:
|
11
|
+
key = api_key if api_key else os.getenv(DIVI_API_KEY)
|
12
|
+
if not key:
|
13
|
+
raise ValueError("API key is required")
|
14
|
+
divi._auth = Auth(api_key=key)
|
15
|
+
# TODO: Test the token
|
16
|
+
return divi._auth
|
17
|
+
|
18
|
+
|
19
|
+
if __name__ == "__main__":
|
20
|
+
auth = init()
|
21
|
+
if not auth:
|
22
|
+
raise ValueError("Auth object is not available")
|
23
|
+
print("=== Auth ===")
|
24
|
+
print(auth.token)
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import time
|
2
|
+
from weakref import ref
|
3
|
+
|
4
|
+
import jwt
|
5
|
+
|
6
|
+
|
7
|
+
class Token:
|
8
|
+
"""JWT Manager Class."""
|
9
|
+
|
10
|
+
def __init__(self, auth) -> None:
|
11
|
+
self.auth = ref(auth)
|
12
|
+
self.claims: dict = {}
|
13
|
+
self.__token: str = ""
|
14
|
+
|
15
|
+
def __str__(self) -> str:
|
16
|
+
return self.token
|
17
|
+
|
18
|
+
@property
|
19
|
+
def exp(self) -> int:
|
20
|
+
"""Return the expiration time."""
|
21
|
+
return self.claims.get("exp", 0)
|
22
|
+
|
23
|
+
@property
|
24
|
+
def token(self) -> str:
|
25
|
+
"""Return the token string."""
|
26
|
+
# If the token is expired, get a new one
|
27
|
+
if not self.__token or self.exp - time.time() < 3600:
|
28
|
+
self._init_token()
|
29
|
+
return self.__token
|
30
|
+
|
31
|
+
def _init_token(self):
|
32
|
+
"""Initialize the token."""
|
33
|
+
auth = self.auth()
|
34
|
+
if not auth:
|
35
|
+
raise ValueError("Auth object is not available")
|
36
|
+
self.__token = auth.auth_with_api_key()
|
37
|
+
self.claims = _decode_token(self.__token)
|
38
|
+
|
39
|
+
|
40
|
+
def _decode_token(token: str) -> dict:
|
41
|
+
"""Decode the token payload."""
|
42
|
+
return jwt.decode(token, options={"verify_signature": False})
|
@@ -0,0 +1,35 @@
|
|
1
|
+
from subprocess import Popen
|
2
|
+
from typing import Callable, List, Optional
|
3
|
+
|
4
|
+
import grpc
|
5
|
+
|
6
|
+
import divi
|
7
|
+
from divi.proto.core_pb2_grpc import CoreStub
|
8
|
+
from divi.proto.health_pb2 import HealthCheckRequest
|
9
|
+
from divi.services.service import Service
|
10
|
+
|
11
|
+
|
12
|
+
class Core(Service):
|
13
|
+
"""Core Runtime Class."""
|
14
|
+
|
15
|
+
def __init__(self, host="localhost", port=50051) -> None:
|
16
|
+
super().__init__(host, port)
|
17
|
+
self.process: Optional[Popen] = None
|
18
|
+
self.hooks: List[Callable[[], None]] = []
|
19
|
+
|
20
|
+
def check_health(self) -> bool:
|
21
|
+
"""Check the health of the service."""
|
22
|
+
with grpc.insecure_channel(self.target) as channel:
|
23
|
+
stub = CoreStub(channel)
|
24
|
+
response, call = stub.Check.with_call(
|
25
|
+
HealthCheckRequest(version=divi.__version__),
|
26
|
+
# Note: ((),) notice the `,` at the end of the tuple
|
27
|
+
metadata=(("version", divi.__version__),),
|
28
|
+
)
|
29
|
+
print(f"Health check: {response.message}")
|
30
|
+
for key, value in call.trailing_metadata():
|
31
|
+
print(
|
32
|
+
"python client received trailing metadata: key=%s value=%s"
|
33
|
+
% (key, value)
|
34
|
+
)
|
35
|
+
return response.status
|
@@ -0,0 +1,81 @@
|
|
1
|
+
import atexit
|
2
|
+
import socket
|
3
|
+
import subprocess
|
4
|
+
import time
|
5
|
+
from typing import Optional
|
6
|
+
|
7
|
+
import grpc
|
8
|
+
|
9
|
+
import divi
|
10
|
+
from divi.services.core import Core
|
11
|
+
from divi.utils import get_server_path
|
12
|
+
|
13
|
+
|
14
|
+
def init(host="localhost", port=50051) -> Optional[Core]:
|
15
|
+
divi._core = Core(host=host, port=port)
|
16
|
+
_start_server()
|
17
|
+
return divi._core
|
18
|
+
|
19
|
+
|
20
|
+
def _start_server():
|
21
|
+
"""Start the backend server."""
|
22
|
+
# get the run object
|
23
|
+
core = divi._core
|
24
|
+
if core is None:
|
25
|
+
return
|
26
|
+
|
27
|
+
# start the server
|
28
|
+
bin_path = get_server_path()
|
29
|
+
command = [bin_path]
|
30
|
+
core.process = subprocess.Popen(command)
|
31
|
+
|
32
|
+
# Wait for the port to be open
|
33
|
+
if not _wait_for_port(core.host, core.port, 10):
|
34
|
+
core.process.terminate()
|
35
|
+
raise RuntimeError("Service failed to start: port not open")
|
36
|
+
|
37
|
+
# Check if the gRPC channel is ready
|
38
|
+
channel = grpc.insecure_channel(core.target)
|
39
|
+
try:
|
40
|
+
grpc.channel_ready_future(channel).result(timeout=10)
|
41
|
+
except grpc.FutureTimeoutError:
|
42
|
+
core.process.terminate()
|
43
|
+
raise RuntimeError("gRPC channel not ready")
|
44
|
+
finally:
|
45
|
+
channel.close()
|
46
|
+
|
47
|
+
core.hooks.append(core.process.terminate)
|
48
|
+
atexit.register(core.process.terminate)
|
49
|
+
|
50
|
+
# Health check
|
51
|
+
status = core.check_health()
|
52
|
+
if not status:
|
53
|
+
raise RuntimeError("Service failed health check")
|
54
|
+
|
55
|
+
|
56
|
+
def _wait_for_port(host, port, timeout_seconds):
|
57
|
+
"""Wait until the specified port is open."""
|
58
|
+
start_time = time.time()
|
59
|
+
while time.time() - start_time < timeout_seconds:
|
60
|
+
if _is_port_open(host, port):
|
61
|
+
return True
|
62
|
+
time.sleep(0.1)
|
63
|
+
return False
|
64
|
+
|
65
|
+
|
66
|
+
def _is_port_open(host, port):
|
67
|
+
"""Check if the given host and port are open."""
|
68
|
+
try:
|
69
|
+
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
70
|
+
result = sock.connect_ex((host, port))
|
71
|
+
if result == 0:
|
72
|
+
return True
|
73
|
+
else:
|
74
|
+
return False
|
75
|
+
except Exception as e:
|
76
|
+
print(f"Error checking port: {e}")
|
77
|
+
return False
|
78
|
+
|
79
|
+
|
80
|
+
if __name__ == "__main__":
|
81
|
+
init()
|
divi/services/finish.py
ADDED
divi/services/init.py
ADDED
divi/services/service.py
ADDED
divi/utils.py
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
import pathlib
|
2
|
+
|
3
|
+
|
4
|
+
def get_server_path() -> str:
|
5
|
+
"""Get the path to the server binary."""
|
6
|
+
path = pathlib.Path(__file__).parent / "bin" / "core"
|
7
|
+
if not path.exists():
|
8
|
+
raise FileNotFoundError(f"Server binary not found: {path}")
|
9
|
+
|
10
|
+
return str(path)
|
11
|
+
|
12
|
+
|
13
|
+
if __name__ == "__main__":
|
14
|
+
print(get_server_path())
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: divi
|
3
|
+
Version: 0.0.1.dev11
|
4
|
+
Summary: The Agent Platform for Observability & Evaluation
|
5
|
+
License-File: LICENSE
|
6
|
+
Requires-Python: >=3.11
|
7
|
+
Requires-Dist: grpcio>=1.69.0
|
8
|
+
Requires-Dist: protobuf>=5.29.3
|
9
|
+
Requires-Dist: pyjwt>=2.10.1
|
10
|
+
Requires-Dist: requests>=2.32.3
|
11
|
+
Description-Content-Type: text/markdown
|
12
|
+
|
13
|
+
# Divine Agent
|
14
|
+
|
15
|
+
Agent Platform for Observability • Evaluation • Playground
|
16
|
+
|
17
|
+
> The project is still in the development stage. 😇
|
@@ -0,0 +1,30 @@
|
|
1
|
+
divi/__init__.py,sha256=YchE7e9-vvL4_Wcn_WFeYOiBBAgy6mCcUZnpqiTMCBI,277
|
2
|
+
divi/utils.py,sha256=HcGlohwmowcQ-isVo0UtrsOsFbJEhX_earaSv4ggIR4,324
|
3
|
+
divi/bin/core,sha256=GMj7vkrAhOajWhtUyHV41AV40kh01L6MhJdbmQrYU2E,14543426
|
4
|
+
divi/config/config.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
+
divi/proto/core.proto,sha256=CHo8HJx45l1v9SjtVebIOHbvhoNSEYYbNCKJ916wTuA,244
|
6
|
+
divi/proto/core_pb2.py,sha256=aSfX-iQsfQFSiZU6DbJf8H_JQaTNiZe6xREDRKnwHs4,1547
|
7
|
+
divi/proto/core_pb2.pyi,sha256=U_zlb-bJl9LNNayFUNmr805j1_j6oK2m6yT18aawMOc,184
|
8
|
+
divi/proto/core_pb2_grpc.py,sha256=rnEbwjQNzpkPTWtNKXriPOaedkPHfHig6nMPzAUbeQM,3476
|
9
|
+
divi/proto/health.proto,sha256=Ce2_7FxBGfHggW-oOLYIx1LW7YkSffPSNiRfd9nCPrY,199
|
10
|
+
divi/proto/health_pb2.py,sha256=uBBBcoebu5xDgs4lybqlvKiupmpmTI17rb4InwaL8VQ,1650
|
11
|
+
divi/proto/health_pb2.pyi,sha256=VbYHHTcp3epUVg0lTSxo3xpG52ZGhA7KKMRL5LR5e1c,691
|
12
|
+
divi/services/__init__.py,sha256=TcVJ_gKxyPIcwhT9GgttqHeyk0icW44uE285KmUiyh4,185
|
13
|
+
divi/services/finish.py,sha256=epgUNYdsGSC8j8uj_fhs7P0-Atem_hTlzyPPvbsWEPQ,91
|
14
|
+
divi/services/init.py,sha256=JlsKHK-IEQ2xh76gNBqF_eqIFNBqoTnwiDeMXSJg4wQ,144
|
15
|
+
divi/services/service.py,sha256=1c7JQ49BSdBipGLfVIxTHaNxTuyvVAgrvxV7lyYv_68,285
|
16
|
+
divi/services/auth/__init__.py,sha256=PIQ9rQ0jcRqcy03a3BOY7wbzwluIRG_4kI_H4J4mRFk,74
|
17
|
+
divi/services/auth/auth.py,sha256=dTpFnNhxbEjzOkBLPQvRblFSO5tedJsdObWTXt84MaE,631
|
18
|
+
divi/services/auth/init.py,sha256=bScuij1a97sDPRZyrzIkrwX3X25LLY7NG6zZI92C7Xs,554
|
19
|
+
divi/services/auth/tokman.py,sha256=V03wcV6TEy1k9o55teDVB9JZ3Ve2cJdwzWstQhWx4BQ,1070
|
20
|
+
divi/services/core/__init__.py,sha256=FWl4ShX0AEnOyL24NEc9mNIVoQOeYO4q0qYX27L_Yyw,111
|
21
|
+
divi/services/core/core.py,sha256=kwqW1DSkLcOjVVWA5y8cdYo35rJ9nNffs_aVC1894Dk,1198
|
22
|
+
divi/services/core/finish.py,sha256=dIGQpVXcJY4-tKe7A1_VV3yoSHNCDPfOlUltvzvk6VI,231
|
23
|
+
divi/services/core/init.py,sha256=TiY9Z6Vl93ZMAE07kuw6H2uHdk3jUtzGCV_I1cIdaLI,2073
|
24
|
+
divi/services/datapark/__init__.py,sha256=ftKZC1QGegK7SFslC6jrbRD-S4WLXwBpucA4oiMj5so,55
|
25
|
+
divi/services/datapark/datapark.py,sha256=a7db-SQPqiae1Yxs78h7omQq7sItX5UClfniwxN-CUc,159
|
26
|
+
divi/services/datapark/init.py,sha256=K0GxbZW0qeimpEoKZeDJo-NIbffX7Hy7GlncOqTOj7U,179
|
27
|
+
divi-0.0.1.dev11.dist-info/METADATA,sha256=fEjAoRB8qxYZjzEHHixSDSQ_G6eBpGbZYy7-H6nLhLo,457
|
28
|
+
divi-0.0.1.dev11.dist-info/WHEEL,sha256=G84COq2WqV__z0k5yV28XkqceijvjyhYltl4MnmpO9g,102
|
29
|
+
divi-0.0.1.dev11.dist-info/licenses/LICENSE,sha256=5OJuZ4wMMEV0DgF0tofhAlS_KLkaUsZwwwDS2U_GwQ0,1063
|
30
|
+
divi-0.0.1.dev11.dist-info/RECORD,,
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 Kaikai
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|