lionagi 0.17.11__py3-none-any.whl → 0.18.0__py3-none-any.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.
- lionagi/libs/schema/minimal_yaml.py +98 -0
- lionagi/ln/types.py +32 -5
- lionagi/models/field_model.py +9 -0
- lionagi/operations/ReAct/ReAct.py +474 -237
- lionagi/operations/ReAct/utils.py +3 -0
- lionagi/operations/act/act.py +206 -0
- lionagi/operations/chat/chat.py +130 -114
- lionagi/operations/communicate/communicate.py +101 -42
- lionagi/operations/flow.py +4 -4
- lionagi/operations/interpret/interpret.py +65 -20
- lionagi/operations/operate/operate.py +212 -106
- lionagi/operations/parse/parse.py +170 -142
- lionagi/operations/select/select.py +78 -17
- lionagi/operations/select/utils.py +1 -1
- lionagi/operations/types.py +119 -23
- lionagi/protocols/generic/log.py +3 -2
- lionagi/protocols/messages/__init__.py +27 -0
- lionagi/protocols/messages/action_request.py +86 -184
- lionagi/protocols/messages/action_response.py +73 -131
- lionagi/protocols/messages/assistant_response.py +130 -159
- lionagi/protocols/messages/base.py +26 -18
- lionagi/protocols/messages/instruction.py +281 -625
- lionagi/protocols/messages/manager.py +112 -62
- lionagi/protocols/messages/message.py +87 -197
- lionagi/protocols/messages/system.py +52 -123
- lionagi/protocols/types.py +0 -2
- lionagi/service/connections/endpoint.py +0 -8
- lionagi/service/connections/providers/oai_.py +29 -94
- lionagi/service/connections/providers/ollama_.py +3 -2
- lionagi/service/hooks/hooked_event.py +2 -2
- lionagi/service/third_party/claude_code.py +3 -2
- lionagi/service/third_party/openai_models.py +433 -0
- lionagi/session/branch.py +170 -178
- lionagi/session/session.py +3 -9
- lionagi/tools/file/reader.py +2 -2
- lionagi/version.py +1 -1
- {lionagi-0.17.11.dist-info → lionagi-0.18.0.dist-info}/METADATA +1 -2
- {lionagi-0.17.11.dist-info → lionagi-0.18.0.dist-info}/RECORD +41 -49
- lionagi/operations/_act/act.py +0 -86
- lionagi/protocols/messages/templates/README.md +0 -28
- lionagi/protocols/messages/templates/action_request.jinja2 +0 -5
- lionagi/protocols/messages/templates/action_response.jinja2 +0 -9
- lionagi/protocols/messages/templates/assistant_response.jinja2 +0 -6
- lionagi/protocols/messages/templates/instruction_message.jinja2 +0 -61
- lionagi/protocols/messages/templates/system_message.jinja2 +0 -11
- lionagi/protocols/messages/templates/tool_schemas.jinja2 +0 -7
- lionagi/service/connections/providers/types.py +0 -28
- lionagi/service/third_party/openai_model_names.py +0 -198
- lionagi/service/types.py +0 -58
- /lionagi/operations/{_act → act}/__init__.py +0 -0
- {lionagi-0.17.11.dist-info → lionagi-0.18.0.dist-info}/WHEEL +0 -0
- {lionagi-0.17.11.dist-info → lionagi-0.18.0.dist-info}/licenses/LICENSE +0 -0
lionagi/service/types.py
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
# Copyright (c) 2023-2025, HaiyangLi <quantocean.li at gmail dot com>
|
2
|
-
# SPDX-License-Identifier: Apache-2.0
|
3
|
-
|
4
|
-
# Eager imports for core functionality
|
5
|
-
from .connections.api_calling import APICalling
|
6
|
-
from .connections.endpoint import Endpoint, EndpointConfig
|
7
|
-
from .connections.providers.types import *
|
8
|
-
from .hooks import *
|
9
|
-
from .imodel import iModel
|
10
|
-
from .manager import iModelManager
|
11
|
-
from .rate_limited_processor import RateLimitedAPIExecutor
|
12
|
-
|
13
|
-
# Lazy loading cache
|
14
|
-
_lazy_imports = {}
|
15
|
-
|
16
|
-
|
17
|
-
def __getattr__(name: str):
|
18
|
-
"""Lazy loading for heavy service imports."""
|
19
|
-
if name in _lazy_imports:
|
20
|
-
return _lazy_imports[name]
|
21
|
-
|
22
|
-
if name == "TokenCalculator":
|
23
|
-
from .token_calculator import TokenCalculator
|
24
|
-
|
25
|
-
_lazy_imports["TokenCalculator"] = TokenCalculator
|
26
|
-
return TokenCalculator
|
27
|
-
|
28
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
29
|
-
|
30
|
-
|
31
|
-
__all__ = (
|
32
|
-
"APICalling",
|
33
|
-
"Endpoint",
|
34
|
-
"EndpointConfig",
|
35
|
-
"RateLimitedAPIExecutor",
|
36
|
-
"TokenCalculator",
|
37
|
-
"iModel",
|
38
|
-
"iModelManager",
|
39
|
-
"AnthropicMessagesEndpoint",
|
40
|
-
"ClaudeCodeEndpoint",
|
41
|
-
"ClaudeCodeRequest",
|
42
|
-
"ClaudeCodeCLIEndpoint",
|
43
|
-
"ExaSearchEndpoint",
|
44
|
-
"ExaSearchRequest",
|
45
|
-
"OpenaiChatEndpoint",
|
46
|
-
"OpenaiEmbedEndpoint",
|
47
|
-
"OpenaiResponseEndpoint",
|
48
|
-
"OpenrouterChatEndpoint",
|
49
|
-
"GroqChatEndpoint",
|
50
|
-
"OllamaChatEndpoint",
|
51
|
-
"PerplexityChatEndpoint",
|
52
|
-
"PerplexityChatRequest",
|
53
|
-
"HookEventTypes",
|
54
|
-
"HookDict",
|
55
|
-
"AssosiatedEventInfo",
|
56
|
-
"HookEvent",
|
57
|
-
"HookRegistry",
|
58
|
-
)
|
File without changes
|
File without changes
|
File without changes
|