dacp 0.3.1__py3-none-any.whl → 0.3.3__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.
dacp/__init__.py CHANGED
@@ -11,9 +11,7 @@ from .protocol import (
11
11
  is_final_response,
12
12
  get_final_response,
13
13
  )
14
- from .tools import (
15
- register_tool, run_tool, TOOL_REGISTRY, file_writer
16
- )
14
+ from .tools import register_tool, execute_tool, TOOL_REGISTRY, file_writer
17
15
  from .llm import call_llm
18
16
  from .intelligence import invoke_intelligence
19
17
  from .orchestrator import Orchestrator, Agent
@@ -26,20 +24,42 @@ from .logging_config import (
26
24
  disable_dacp_logging,
27
25
  enable_dacp_logging,
28
26
  )
27
+ from .json_parser import (
28
+ robust_json_parse,
29
+ parse_with_fallback,
30
+ extract_json_from_text,
31
+ create_fallback_response,
32
+ )
33
+ from .workflow import (
34
+ WorkflowOrchestrator,
35
+ TaskBoard,
36
+ Task,
37
+ TaskStatus,
38
+ TaskPriority,
39
+ WorkflowRule,
40
+ )
41
+ from .workflow_runtime import (
42
+ WorkflowRuntime,
43
+ AgentRegistry,
44
+ TaskRegistry,
45
+ TaskExecution,
46
+ RegisteredAgent,
47
+ TaskStatus as RuntimeTaskStatus,
48
+ )
29
49
 
30
50
  __version__ = "0.3.0"
31
51
 
32
52
  __all__ = [
33
53
  # Protocol functions
34
54
  "parse_agent_response",
35
- "is_tool_request",
55
+ "is_tool_request",
36
56
  "get_tool_request",
37
57
  "wrap_tool_result",
38
58
  "is_final_response",
39
59
  "get_final_response",
40
60
  # Tool functions
41
61
  "register_tool",
42
- "run_tool",
62
+ "execute_tool",
43
63
  "TOOL_REGISTRY",
44
64
  "file_writer",
45
65
  # LLM functions
@@ -56,4 +76,23 @@ __all__ = [
56
76
  "set_dacp_log_level",
57
77
  "disable_dacp_logging",
58
78
  "enable_dacp_logging",
79
+ # JSON parsing utilities
80
+ "robust_json_parse",
81
+ "parse_with_fallback",
82
+ "extract_json_from_text",
83
+ "create_fallback_response",
84
+ # Workflow management
85
+ "WorkflowOrchestrator",
86
+ "TaskBoard",
87
+ "Task",
88
+ "TaskStatus",
89
+ "TaskPriority",
90
+ "WorkflowRule",
91
+ # Workflow runtime
92
+ "WorkflowRuntime",
93
+ "AgentRegistry",
94
+ "TaskRegistry",
95
+ "TaskExecution",
96
+ "RegisteredAgent",
97
+ "RuntimeTaskStatus",
59
98
  ]