wizelit-sdk 0.1.28__tar.gz → 0.1.29__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 (25) hide show
  1. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/PKG-INFO +1 -1
  2. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/pyproject.toml +1 -1
  3. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/src/wizelit_sdk/agent_wrapper/agent_wrapper.py +13 -10
  4. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/uv.lock +1 -1
  5. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/.editorconfig +0 -0
  6. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/.env.template +0 -0
  7. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/.gitignore +0 -0
  8. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/CHANGELOG.md +0 -0
  9. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/INITIALIZATION_INSTRUCTION.MD +0 -0
  10. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/Makefile +0 -0
  11. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/README.md +0 -0
  12. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/activate.sh +0 -0
  13. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/pyrightconfig.json +0 -0
  14. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/src/__init__.py +0 -0
  15. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/src/wizelit_sdk/__init__.py +0 -0
  16. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/src/wizelit_sdk/agent_wrapper/__init__.py +0 -0
  17. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/src/wizelit_sdk/agent_wrapper/job.py +0 -0
  18. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/src/wizelit_sdk/agent_wrapper/signature_validation.py +0 -0
  19. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/src/wizelit_sdk/agent_wrapper/streaming.py +0 -0
  20. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/src/wizelit_sdk/database.py +0 -0
  21. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/src/wizelit_sdk/models/__init__.py +0 -0
  22. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/src/wizelit_sdk/models/base.py +0 -0
  23. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/src/wizelit_sdk/models/job.py +0 -0
  24. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/tests/test_agent_wrapper_import.py +0 -0
  25. {wizelit_sdk-0.1.28 → wizelit_sdk-0.1.29}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizelit-sdk
3
- Version: 0.1.28
3
+ Version: 0.1.29
4
4
  Summary: Wizelit Agent Wrapper - Internal utility package
5
5
  Author-email: Your Name <your.email@company.com>
6
6
  Requires-Python: >=3.10
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "wizelit-sdk"
7
- version = "0.1.28"
7
+ version = "0.1.29"
8
8
  description = "Wizelit Agent Wrapper - Internal utility package"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -3,7 +3,7 @@ import asyncio
3
3
  import inspect
4
4
  import logging
5
5
  import os
6
- from typing import Callable, Any, Optional, Literal, Dict, TYPE_CHECKING, Union
6
+ from typing import Callable, Any, Optional, Literal, Dict, TYPE_CHECKING, Union, cast
7
7
  from contextvars import ContextVar
8
8
  from fastmcp import FastMCP, Context
9
9
  from fastmcp.dependencies import CurrentContext
@@ -14,6 +14,9 @@ from wizelit_sdk.agent_wrapper.signature_validation import (
14
14
  ensure_type_hints,
15
15
  )
16
16
 
17
+ # Local Transport literal to avoid import issues when fastmcp.types is unavailable
18
+ Transport = Literal["stdio", "http", "sse", "streamable-http"]
19
+
17
20
  if TYPE_CHECKING:
18
21
  from wizelit_sdk.database import DatabaseManager
19
22
 
@@ -73,7 +76,7 @@ class WizelitAgent:
73
76
  self._tools = {}
74
77
  self._jobs: Dict[str, Job] = {} # Store jobs by job_id
75
78
  self._host = host
76
- self._transport = transport
79
+ self._transport: Transport = cast(Transport, transport)
77
80
  self._port = port
78
81
  self._db_manager = db_manager
79
82
  self._log_streamer = None
@@ -257,9 +260,9 @@ class WizelitAgent:
257
260
  )
258
261
 
259
262
  # Set the signature with ctx as last parameter with CurrentContext() default
260
- tool_wrapper.__signature__ = new_sig
261
- tool_wrapper.__name__ = tool_name
262
- tool_wrapper.__doc__ = tool_description
263
+ cast(Any, tool_wrapper).__signature__ = new_sig
264
+ cast(Any, tool_wrapper).__name__ = tool_name
265
+ cast(Any, tool_wrapper).__doc__ = tool_description
263
266
 
264
267
  # Copy annotations and add Context
265
268
  # Note: We don't add job annotation here since we use Any and exclude it from schema
@@ -271,7 +274,7 @@ class WizelitAgent:
271
274
  new_annotations["job"] = (
272
275
  Any # Use Any instead of Job to avoid Pydantic schema issues
273
276
  )
274
- tool_wrapper.__annotations__ = new_annotations
277
+ cast(Any, tool_wrapper).__annotations__ = new_annotations
275
278
 
276
279
  # Register with fast-mcp
277
280
  # Exclude ctx and job from schema generation since they're dependency-injected
@@ -392,7 +395,7 @@ class WizelitAgent:
392
395
 
393
396
  def run(
394
397
  self,
395
- transport: Optional[str] = None,
398
+ transport: Optional[Transport] = None,
396
399
  host: Optional[str] = None,
397
400
  port: Optional[int] = None,
398
401
  **kwargs,
@@ -406,7 +409,7 @@ class WizelitAgent:
406
409
  port: Port to bind to (for HTTP transports)
407
410
  **kwargs: Additional arguments passed to fast-mcp
408
411
  """
409
- transport = transport or self._transport
412
+ transport = cast(Transport, transport or self._transport)
410
413
  host = host or self._host
411
414
  port = port or self._port
412
415
  print(f"🚀 Starting {self._name} MCP Server")
@@ -516,12 +519,12 @@ class WizelitAgent:
516
519
  "error": job_model.error,
517
520
  "created_at": (
518
521
  job_model.created_at.isoformat()
519
- if job_model.created_at
522
+ if job_model.created_at is not None
520
523
  else None
521
524
  ),
522
525
  "updated_at": (
523
526
  job_model.updated_at.isoformat()
524
- if job_model.updated_at
527
+ if job_model.updated_at is not None
525
528
  else None
526
529
  ),
527
530
  }
@@ -2050,7 +2050,7 @@ wheels = [
2050
2050
 
2051
2051
  [[package]]
2052
2052
  name = "wizelit-sdk"
2053
- version = "0.1.28"
2053
+ version = "0.1.29"
2054
2054
  source = { editable = "." }
2055
2055
  dependencies = [
2056
2056
  { name = "asyncpg" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes