subconscious-python
Advanced tools
+4
-4
| Metadata-Version: 2.4 | ||
| Name: subconscious-python | ||
| Version: 0.1.1 | ||
| Version: 0.1.2 | ||
| Summary: Python SDK for Subconscious AI agent framework | ||
| Author-email: Subconscious Systems <hongyin@subconscious.dev> | ||
| License-Expression: MIT | ||
| Project-URL: Homepage, https://github.com/subconscious-systems/subconscious-research | ||
| Project-URL: Homepage, https://subconscious.dev | ||
| Project-URL: Documentation, https://docs.subconscious.dev | ||
| Project-URL: Repository, https://github.com/subconscious-systems/subconscious-research | ||
| Project-URL: Issues, https://github.com/subconscious-systems/subconscious-research/issues | ||
| Project-URL: Repository, https://github.com/subconscious-systems/TIMRUN | ||
| Project-URL: Issues, https://github.com/subconscious-systems/TIMRUN/issues | ||
| Keywords: ai,agent,framework,structured-output,reasoning | ||
@@ -12,0 +12,0 @@ Classifier: Development Status :: 3 - Alpha |
+4
-4
@@ -7,3 +7,3 @@ [build-system] | ||
| name = "subconscious-python" | ||
| version = "0.1.1" | ||
| version = "0.1.2" | ||
| description = "Python SDK for Subconscious AI agent framework" | ||
@@ -49,6 +49,6 @@ readme = "README.md" | ||
| [project.urls] | ||
| Homepage = "https://github.com/subconscious-systems/subconscious-research" | ||
| Homepage = "https://subconscious.dev" | ||
| Documentation = "https://docs.subconscious.dev" | ||
| Repository = "https://github.com/subconscious-systems/subconscious-research" | ||
| Issues = "https://github.com/subconscious-systems/subconscious-research/issues" | ||
| Repository = "https://github.com/subconscious-systems/TIMRUN" | ||
| Issues = "https://github.com/subconscious-systems/TIMRUN/issues" | ||
@@ -55,0 +55,0 @@ [tool.setuptools.packages.find] |
| Metadata-Version: 2.4 | ||
| Name: subconscious-python | ||
| Version: 0.1.1 | ||
| Version: 0.1.2 | ||
| Summary: Python SDK for Subconscious AI agent framework | ||
| Author-email: Subconscious Systems <hongyin@subconscious.dev> | ||
| License-Expression: MIT | ||
| Project-URL: Homepage, https://github.com/subconscious-systems/subconscious-research | ||
| Project-URL: Homepage, https://subconscious.dev | ||
| Project-URL: Documentation, https://docs.subconscious.dev | ||
| Project-URL: Repository, https://github.com/subconscious-systems/subconscious-research | ||
| Project-URL: Issues, https://github.com/subconscious-systems/subconscious-research/issues | ||
| Project-URL: Repository, https://github.com/subconscious-systems/TIMRUN | ||
| Project-URL: Issues, https://github.com/subconscious-systems/TIMRUN/issues | ||
| Keywords: ai,agent,framework,structured-output,reasoning | ||
@@ -12,0 +12,0 @@ Classifier: Development Status :: 3 - Alpha |
@@ -12,3 +12,3 @@ """ | ||
| __version__ = "0.1.1" | ||
| __version__ = "0.1.2" | ||
| __author__ = "Subconscious Systems" | ||
@@ -15,0 +15,0 @@ __email__ = "contact@subconscious.dev" |
@@ -87,3 +87,3 @@ import json | ||
| tools=list(tools), | ||
| reasoning_schema=thread_schema | ||
| reasoning_grammar_model=thread_schema | ||
| ) | ||
@@ -90,0 +90,0 @@ |
+23
-18
@@ -32,3 +32,3 @@ from pydantic import BaseModel, Field, create_model | ||
| thought=top_lv_thought, | ||
| tooluse=(Union[tools], ...) if tools else None, | ||
| tooluse=(Optional[Union[tools]], ...) if tools else None, | ||
| conclusion=(str, ...), | ||
@@ -42,3 +42,3 @@ ) | ||
| thought=(str, ...), | ||
| tooluse=(Union[tools], ...) if tools else None, | ||
| tooluse=(Optional[Union[tools]], ...) if tools else None, | ||
| conclusion=(str, ...), | ||
@@ -51,3 +51,3 @@ ) | ||
| thought=(str, ...), | ||
| tooluse=(Union[tools], ...) if tools else None, | ||
| tooluse=(Optional[Union[tools]], ...) if tools else None, | ||
| subtasks=(Optional[List[subtask_models[-1]]], ...), | ||
@@ -60,3 +60,3 @@ conclusion=(str, ...), | ||
| thought=top_lv_thought, | ||
| tooluse=(Union[tools], ...) if tools else None, | ||
| tooluse=(Optional[Union[tools]], ...) if tools else None, | ||
| subtasks=(Optional[List[subtask_models[-1]]], ...), | ||
@@ -137,4 +137,4 @@ conclusion=(str, ...), | ||
| if 'anyOf' in spec: | ||
| annotation = cls.type_map(spec['anyOf'][0]) | ||
| default = None | ||
| annotation = Optional[cls.type_map(spec['anyOf'][0])] | ||
| # default = None | ||
| else: | ||
@@ -146,7 +146,7 @@ t = spec["type"] | ||
| annotation = Optional[py_type] | ||
| default = None | ||
| # default = None | ||
| else: | ||
| annotation = cls.type_map(t) | ||
| default = ... if t != "null" else None | ||
| param_fields[name] = (annotation, Field(default, description=spec.get("description", ""))) | ||
| # default = ... if t != "null" else None | ||
| param_fields[name] = (annotation, Field(..., description=spec.get("description", ""))) | ||
@@ -179,11 +179,16 @@ ParamModel = create_model( | ||
| OmniTask = create_model( | ||
| underscore_to_camel(task_name) or 'OmniTask', | ||
| title=(str, ...), | ||
| thought=(str, ...), | ||
| tools=(Union[tuple(tool_model_list)], ...), | ||
| subtasks=(Optional[List[ | ||
| underscore_to_camel(task_name) or 'OmniTask' | ||
| ]], ...), | ||
| conclusion=(str, ...), | ||
| # OmniTask = create_model( | ||
| # underscore_to_camel(task_name) or 'OmniTask', | ||
| # title=(str, ...), | ||
| # thought=(str, ...), | ||
| # tooluse=(Optional[Union[tuple(tool_model_list)]], ...), | ||
| # subtasks=(Optional[List[ | ||
| # underscore_to_camel(task_name) or 'OmniTask' | ||
| # ]], ...), | ||
| # conclusion=(str, ...), | ||
| # ) | ||
| OmniTask = create_task_with_depth( | ||
| task_name=underscore_to_camel(task_name) or 'OmniTask', | ||
| depth=5, | ||
| tools=tuple(tool_model_list) | ||
| ) | ||
@@ -190,0 +195,0 @@ # Resolve forward references for self-referential 'subtasks' |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
54570
0.13%922
0.55%