jvserve 2.0.2__tar.gz → 2.0.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.

Potentially problematic release.


This version of jvserve might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: jvserve
3
- Version: 2.0.2
3
+ Version: 2.0.3
4
4
  Summary: FastAPI webserver for loading and interaction with JIVAS agents.
5
5
  Home-page: https://github.com/TrueSelph/jvserve
6
6
  Author: TrueSelph Inc.
@@ -4,5 +4,5 @@ jvserve package initialization.
4
4
  This package provides the webserver for loading and interacting with JIVAS agents.
5
5
  """
6
6
 
7
- __version__ = "2.0.2"
7
+ __version__ = "2.0.3"
8
8
  __supported__jivas__versions__ = ["2.0.0"]
@@ -6,7 +6,7 @@ import os
6
6
  import string
7
7
  import time
8
8
  import traceback
9
- from typing import Any, Dict, Optional
9
+ from typing import Any, Dict, List, Optional
10
10
  from urllib.parse import quote, unquote
11
11
 
12
12
  import aiohttp
@@ -163,7 +163,7 @@ class AgentInterface:
163
163
  module_root: str = Form(...), # noqa: B008
164
164
  walker: str = Form(...), # noqa: B008
165
165
  args: Optional[str] = Form(None), # noqa: B008
166
- attachments: Optional[list[UploadFile]] = None,
166
+ attachments: List[UploadFile] = Form(default_factory=list), # noqa: B008
167
167
  ) -> JSONResponse:
168
168
  """Execute a named walker exposed by an action within context; capable of handling JSON or file data depending on request"""
169
169
 
@@ -564,11 +564,7 @@ class AgentInterface:
564
564
 
565
565
  # if user context still active, return it
566
566
  now = int(time.time())
567
- if (
568
- AgentInterface.EXPIRATION
569
- and AgentInterface.EXPIRATION.isdigit()
570
- and int(AgentInterface.EXPIRATION) > now
571
- ):
567
+ if AgentInterface.EXPIRATION and AgentInterface.EXPIRATION > now:
572
568
  return {
573
569
  "root_id": AgentInterface.ROOT_ID,
574
570
  "token": AgentInterface.TOKEN,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: jvserve
3
- Version: 2.0.2
3
+ Version: 2.0.3
4
4
  Summary: FastAPI webserver for loading and interaction with JIVAS agents.
5
5
  Home-page: https://github.com/TrueSelph/jvserve
6
6
  Author: TrueSelph Inc.
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