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.
Files changed (46) hide show
  1. {pybotchi-3.4.2 → pybotchi-3.4.3}/PKG-INFO +1 -1
  2. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/action.py +4 -4
  3. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/action.pyi +2 -2
  4. {pybotchi-3.4.2 → pybotchi-3.4.3}/pyproject.toml +1 -1
  5. {pybotchi-3.4.2 → pybotchi-3.4.3}/LICENSE +0 -0
  6. {pybotchi-3.4.2 → pybotchi-3.4.3}/README.md +0 -0
  7. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/__init__.py +0 -0
  8. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/__init__.pyi +0 -0
  9. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/common.py +0 -0
  10. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/common.pyi +0 -0
  11. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/context.py +0 -0
  12. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/context.pyi +0 -0
  13. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/__init__.py +0 -0
  14. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/__init__.pyi +0 -0
  15. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/action.py +0 -0
  16. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/action.pyi +0 -0
  17. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/cli.py +0 -0
  18. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/cli.pyi +0 -0
  19. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/common.py +0 -0
  20. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/common.pyi +0 -0
  21. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/context.py +0 -0
  22. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/context.pyi +0 -0
  23. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/exception.py +0 -0
  24. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/exception.pyi +0 -0
  25. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/handler.py +0 -0
  26. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/handler.pyi +0 -0
  27. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/pybotchi.proto +0 -0
  28. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/pybotchi_pb2.py +0 -0
  29. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/pybotchi_pb2.pyi +0 -0
  30. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/pybotchi_pb2_grpc.py +0 -0
  31. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/pybotchi_pb2_grpc.pyi +0 -0
  32. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/utils.py +0 -0
  33. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/grpc/utils.pyi +0 -0
  34. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/llm.py +0 -0
  35. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/llm.pyi +0 -0
  36. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/__init__.py +0 -0
  37. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/__init__.pyi +0 -0
  38. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/action.py +0 -0
  39. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/action.pyi +0 -0
  40. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/common.py +0 -0
  41. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/common.pyi +0 -0
  42. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/context.py +0 -0
  43. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/mcp/context.pyi +0 -0
  44. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/py.typed +0 -0
  45. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/utils.py +0 -0
  46. {pybotchi-3.4.2 → pybotchi-3.4.3}/pybotchi/utils.pyi +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pybotchi
3
- Version: 3.4.2
3
+ Version: 3.4.3
4
4
  Summary: A deterministic, intent-based AI agent builder.
5
5
  License-File: LICENSE
6
6
  Author: Alexie (Boyong) Madolid
@@ -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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pybotchi"
3
- version = "3.4.2"
3
+ version = "3.4.3"
4
4
  description = "A deterministic, intent-based AI agent builder."
5
5
  authors = ["Alexie (Boyong) Madolid <madolid.alexie@gmail.com>"]
6
6
  readme = "README.md"
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