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 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
@@ -1,2 +1,8 @@
1
1
  from .fields import *
2
+ from .operations import (
3
+ BrainstormOperation,
4
+ ExpansionStrategy,
5
+ Operation,
6
+ PlanOperation,
7
+ )
2
8
  from .protocols.types import *
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-4o"
71
+ LIONAGI_CHAT_MODEL: str = "gpt-4.1-nano"
72
72
 
73
73
  # default storage
74
74
  LIONAGI_AUTO_STORE_EVENT: bool = False
@@ -1,4 +1,10 @@
1
- from .action import ActionRequestModel, ActionResponseModel
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 Instruct, InstructResponse
12
- from .reason import Reason
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
  )
@@ -2,4 +2,21 @@
2
2
  #
3
3
  # SPDX-License-Identifier: Apache-2.0
4
4
 
5
- from .types import *
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
+ )