pybotchi 3.4.2__tar.gz → 3.4.3__tar.gz
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.
- {pybotchi-3.4.2 → pybotchi-3.4.3}/PKG-INFO +1 -1
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/action.py +4 -4
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/action.pyi +2 -2
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pyproject.toml +1 -1
- {pybotchi-3.4.2 → pybotchi-3.4.3}/LICENSE +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/README.md +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/__init__.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/__init__.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/common.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/common.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/context.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/context.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/__init__.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/__init__.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/action.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/action.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/cli.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/cli.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/common.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/common.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/context.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/context.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/exception.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/exception.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/handler.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/handler.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/pybotchi.proto +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/pybotchi_pb2.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/pybotchi_pb2.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/pybotchi_pb2_grpc.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/pybotchi_pb2_grpc.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/utils.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/utils.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/llm.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/llm.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/__init__.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/__init__.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/action.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/action.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/common.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/common.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/context.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/context.pyi +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/py.typed +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/utils.py +0 -0
- {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/utils.pyi +0 -0
|
@@ -7,7 +7,7 @@ from collections import deque
|
|
|
7
7
|
from collections.abc import Generator
|
|
8
8
|
from inspect import getmembers
|
|
9
9
|
from os import getenv
|
|
10
|
-
from typing import Any, Generic, TYPE_CHECKING, TypeVar
|
|
10
|
+
from typing import Any, Generic, Literal, TYPE_CHECKING, TypeVar
|
|
11
11
|
|
|
12
12
|
from pydantic import BaseModel, PrivateAttr
|
|
13
13
|
|
|
@@ -503,13 +503,13 @@ class Action(BaseModel, Generic[TContext]):
|
|
|
503
503
|
|
|
504
504
|
return ActionReturn.GO
|
|
505
505
|
|
|
506
|
-
def serialize(self) -> ActionEntry:
|
|
506
|
+
def serialize(self, mode: str | Literal["python", "json"] = "python") -> ActionEntry:
|
|
507
507
|
"""Serialize Action."""
|
|
508
508
|
return {
|
|
509
509
|
"name": self.__class__.__name__,
|
|
510
|
-
"args": self.model_dump(),
|
|
510
|
+
"args": self.model_dump(mode=mode),
|
|
511
511
|
"usages": self._usage,
|
|
512
|
-
"actions": [a.serialize() if isinstance(a, Action) else a for a in self._actions],
|
|
512
|
+
"actions": [a.serialize(mode) if isinstance(a, Action) else a for a in self._actions],
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
####################################################################################################
|
|
@@ -4,7 +4,7 @@ from .utils import apply_placeholders as apply_placeholders, unwrap_exceptions a
|
|
|
4
4
|
from _typeshed import Incomplete
|
|
5
5
|
from collections.abc import Generator
|
|
6
6
|
from pydantic import BaseModel
|
|
7
|
-
from typing import Any, Generic, TypeVar
|
|
7
|
+
from typing import Any, Generic, Literal, TypeVar
|
|
8
8
|
|
|
9
9
|
DEFAULT_ACTION: Incomplete
|
|
10
10
|
DEFAULT_TOOL_CALL_PROMPT: Incomplete
|
|
@@ -66,7 +66,7 @@ class Action(BaseModel, Generic[TContext]):
|
|
|
66
66
|
async def execution(self, context: TContext) -> ActionReturn: ...
|
|
67
67
|
async def concurrent_children_execution(self, context: TContext, next_actions: list[Action]) -> ActionReturn: ...
|
|
68
68
|
async def sequential_children_execution(self, context: TContext, next_actions: list[Action]) -> ActionReturn: ...
|
|
69
|
-
def serialize(self) -> ActionEntry: ...
|
|
69
|
+
def serialize(self, mode: str | Literal['python', 'json'] = 'python') -> ActionEntry: ...
|
|
70
70
|
@classmethod
|
|
71
71
|
def add_child(cls, action: type['Action'], name: str | None = None, override: bool = False, extended: bool = True) -> None: ...
|
|
72
72
|
@classmethod
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|