lionagi 0.7.1__py3-none-any.whl → 0.7.2__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- lionagi/operations/_act/act.py +10 -3
- lionagi/version.py +1 -1
- {lionagi-0.7.1.dist-info → lionagi-0.7.2.dist-info}/METADATA +1 -1
- {lionagi-0.7.1.dist-info → lionagi-0.7.2.dist-info}/RECORD +6 -6
- {lionagi-0.7.1.dist-info → lionagi-0.7.2.dist-info}/WHEEL +0 -0
- {lionagi-0.7.1.dist-info → lionagi-0.7.2.dist-info}/licenses/LICENSE +0 -0
lionagi/operations/_act/act.py
CHANGED
@@ -7,9 +7,10 @@ from typing import TYPE_CHECKING
|
|
7
7
|
|
8
8
|
from pydantic import BaseModel
|
9
9
|
|
10
|
-
from lionagi.protocols.types import
|
10
|
+
from lionagi.protocols.types import Log
|
11
11
|
|
12
12
|
if TYPE_CHECKING:
|
13
|
+
from lionagi.operatives.types import ActionResponseModel
|
13
14
|
from lionagi.session.branch import Branch
|
14
15
|
|
15
16
|
|
@@ -17,7 +18,7 @@ async def _act(
|
|
17
18
|
branch: "Branch",
|
18
19
|
action_request: BaseModel | dict,
|
19
20
|
suppress_errors: bool = False,
|
20
|
-
) ->
|
21
|
+
) -> "ActionResponseModel":
|
21
22
|
|
22
23
|
_request = {}
|
23
24
|
|
@@ -35,7 +36,13 @@ async def _act(
|
|
35
36
|
try:
|
36
37
|
func_call = await branch._action_manager.invoke(_request)
|
37
38
|
except Exception as e:
|
38
|
-
|
39
|
+
content = {
|
40
|
+
"error": str(e),
|
41
|
+
"function": _request.get("function"),
|
42
|
+
"arguments": _request.get("arguments"),
|
43
|
+
"branch": str(branch.id),
|
44
|
+
}
|
45
|
+
branch._log_manager.log(Log(content=content))
|
39
46
|
if suppress_errors:
|
40
47
|
logging.error(
|
41
48
|
f"Error invoking action '{_request['function']}': {e}"
|
lionagi/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.7.
|
1
|
+
__version__ = "0.7.2"
|
@@ -3,7 +3,7 @@ lionagi/_class_registry.py,sha256=dutMsw-FQNqVV5gGH-NEIv90uBkSr8fERJ_x3swbb-s,31
|
|
3
3
|
lionagi/_errors.py,sha256=wNKdnVQvE_CHEstK7htrrj334RA_vbGcIds-3pUiRkc,455
|
4
4
|
lionagi/settings.py,sha256=k9zRJXv57TveyfHO3Vr9VGiKrSwlRUUVKt5zf6v9RU4,1627
|
5
5
|
lionagi/utils.py,sha256=nwbr9mDOmmLmf5wq4sTZieCbu74GwHcXYrNjFV4-4LQ,73096
|
6
|
-
lionagi/version.py,sha256=
|
6
|
+
lionagi/version.py,sha256=lcrcqfPdVkkAQSUY7-6U3m2gooWLXX_neDSS8dIuHdc,22
|
7
7
|
lionagi/libs/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
8
8
|
lionagi/libs/parse.py,sha256=tpEbmIRGuHhLCJlUlm6fjmqm_Z6XJLAXGNFHNuk422I,1011
|
9
9
|
lionagi/libs/file/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
@@ -50,7 +50,7 @@ lionagi/operations/ReAct/ReAct.py,sha256=ICQROuVqYhUMUyzXao7oTewp8YZsdk-jI9Bn5eJ
|
|
50
50
|
lionagi/operations/ReAct/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
51
51
|
lionagi/operations/ReAct/utils.py,sha256=0OhZhoc8QsTsMFo2Jmys1mgpnMwHsldKuLVSbev9uZM,994
|
52
52
|
lionagi/operations/_act/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
53
|
-
lionagi/operations/_act/act.py,sha256=
|
53
|
+
lionagi/operations/_act/act.py,sha256=HBp-sNwNigLDNkuEZqGU_98UCaJXPZsaokkFAXwOMn0,2454
|
54
54
|
lionagi/operations/brainstorm/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
55
55
|
lionagi/operations/brainstorm/brainstorm.py,sha256=88Cq2IBrUs5du9q_8rf_VmhLYBfGKJv4rCeDTcJ07_g,17196
|
56
56
|
lionagi/operations/brainstorm/prompt.py,sha256=f-Eh6pO606dT2TrX9BFv_einRDpYwFi6Gep9Strd1cM,610
|
@@ -182,7 +182,7 @@ lionagi/service/providers/perplexity_/chat_completions.py,sha256=SsDbrtXwQsR4Yu2
|
|
182
182
|
lionagi/session/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
183
183
|
lionagi/session/branch.py,sha256=ogCp8ybyrm1bspmtovcvrzUmBh8Nu_Q5RBBu2uYAl6U,58678
|
184
184
|
lionagi/session/session.py,sha256=A2PCG1BD1noMLtCJD3C_H7r-0GUQ_ru2szOhF1pOCtY,8976
|
185
|
-
lionagi-0.7.
|
186
|
-
lionagi-0.7.
|
187
|
-
lionagi-0.7.
|
188
|
-
lionagi-0.7.
|
185
|
+
lionagi-0.7.2.dist-info/METADATA,sha256=Nr0nOloMvQhDTeDaFm5E538OuaH566Y_kuleyBbxfvU,22776
|
186
|
+
lionagi-0.7.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
187
|
+
lionagi-0.7.2.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
|
188
|
+
lionagi-0.7.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|