lionagi 0.13.3__py3-none-any.whl → 0.13.5__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/__init__.py +8 -0
- lionagi/_types.py +6 -0
- lionagi/config.py +1 -1
- lionagi/fields/__init__.py +20 -3
- lionagi/operations/__init__.py +18 -1
- lionagi/operations/builder.py +664 -0
- lionagi/operations/flow.py +436 -0
- lionagi/operations/node.py +107 -0
- lionagi/protocols/graph/__init__.py +6 -0
- lionagi/service/connections/providers/claude_code_cli.py +1 -4
- lionagi/session/__init__.py +5 -0
- lionagi/session/session.py +47 -0
- lionagi/settings.py +2 -2
- lionagi/version.py +1 -1
- {lionagi-0.13.3.dist-info → lionagi-0.13.5.dist-info}/METADATA +11 -10
- {lionagi-0.13.3.dist-info → lionagi-0.13.5.dist-info}/RECORD +18 -15
- {lionagi-0.13.3.dist-info → lionagi-0.13.5.dist-info}/WHEEL +0 -0
- {lionagi-0.13.3.dist-info → lionagi-0.13.5.dist-info}/licenses/LICENSE +0 -0
lionagi/__init__.py
CHANGED
@@ -7,6 +7,9 @@ import logging
|
|
7
7
|
from pydantic import BaseModel, Field
|
8
8
|
|
9
9
|
from . import _types as types
|
10
|
+
from .operations import Operation
|
11
|
+
from .operations import OperationGraphBuilder as Builder
|
12
|
+
from .operations import brainstorm, flow, plan
|
10
13
|
from .service.imodel import iModel
|
11
14
|
from .session.session import Branch, Session
|
12
15
|
from .version import __version__
|
@@ -23,4 +26,9 @@ __all__ = (
|
|
23
26
|
"BaseModel",
|
24
27
|
"Field",
|
25
28
|
"logger",
|
29
|
+
"Builder",
|
30
|
+
"Operation",
|
31
|
+
"brainstorm",
|
32
|
+
"flow",
|
33
|
+
"plan",
|
26
34
|
)
|
lionagi/_types.py
CHANGED
lionagi/config.py
CHANGED
@@ -68,7 +68,7 @@ class AppSettings(BaseSettings, frozen=True):
|
|
68
68
|
LIONAGI_EMBEDDING_MODEL: str = "text-embedding-3-small"
|
69
69
|
|
70
70
|
LIONAGI_CHAT_PROVIDER: str = "openai"
|
71
|
-
LIONAGI_CHAT_MODEL: str = "gpt-
|
71
|
+
LIONAGI_CHAT_MODEL: str = "gpt-4.1-nano"
|
72
72
|
|
73
73
|
# default storage
|
74
74
|
LIONAGI_AUTO_STORE_EVENT: bool = False
|
lionagi/fields/__init__.py
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
from .action import
|
1
|
+
from .action import (
|
2
|
+
ACTION_REQUESTS_FIELD,
|
3
|
+
ACTION_REQUIRED_FIELD,
|
4
|
+
ACTION_RESPONSES_FIELD,
|
5
|
+
ActionRequestModel,
|
6
|
+
ActionResponseModel,
|
7
|
+
)
|
2
8
|
from .base import (
|
3
9
|
CodeSnippet,
|
4
10
|
Outline,
|
@@ -8,8 +14,13 @@ from .base import (
|
|
8
14
|
TextSnippet,
|
9
15
|
)
|
10
16
|
from .file import Documentation, File, Module, ResearchSummary
|
11
|
-
from .instruct import
|
12
|
-
|
17
|
+
from .instruct import (
|
18
|
+
INSTRUCT_FIELD,
|
19
|
+
LIST_INSTRUCT_FIELD_MODEL,
|
20
|
+
Instruct,
|
21
|
+
InstructResponse,
|
22
|
+
)
|
23
|
+
from .reason import REASON_FIELD, Reason
|
13
24
|
|
14
25
|
__all__ = (
|
15
26
|
"ActionRequestModel",
|
@@ -27,4 +38,10 @@ __all__ = (
|
|
27
38
|
"Instruct",
|
28
39
|
"InstructResponse",
|
29
40
|
"Reason",
|
41
|
+
"LIST_INSTRUCT_FIELD_MODEL",
|
42
|
+
"INSTRUCT_FIELD",
|
43
|
+
"ACTION_REQUESTS_FIELD",
|
44
|
+
"ACTION_RESPONSES_FIELD",
|
45
|
+
"ACTION_REQUIRED_FIELD",
|
46
|
+
"REASON_FIELD",
|
30
47
|
)
|
lionagi/operations/__init__.py
CHANGED
@@ -2,4 +2,21 @@
|
|
2
2
|
#
|
3
3
|
# SPDX-License-Identifier: Apache-2.0
|
4
4
|
|
5
|
-
from .
|
5
|
+
from .brainstorm.brainstorm import BrainstormOperation, brainstorm
|
6
|
+
from .builder import ExpansionStrategy, OperationGraphBuilder
|
7
|
+
from .flow import flow
|
8
|
+
from .node import BranchOperations, Operation
|
9
|
+
from .plan.plan import PlanOperation, plan
|
10
|
+
|
11
|
+
__all__ = (
|
12
|
+
"ExpansionStrategy",
|
13
|
+
"OperationGraphBuilder",
|
14
|
+
"create_operation_graph",
|
15
|
+
"flow",
|
16
|
+
"BranchOperations",
|
17
|
+
"Operation",
|
18
|
+
"plan",
|
19
|
+
"PlanOperation",
|
20
|
+
"brainstorm",
|
21
|
+
"BrainstormOperation",
|
22
|
+
)
|