qtype 0.0.4__tar.gz → 0.0.5__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 (59) hide show
  1. {qtype-0.0.4/qtype.egg-info → qtype-0.0.5}/PKG-INFO +1 -1
  2. {qtype-0.0.4 → qtype-0.0.5}/pyproject.toml +1 -1
  3. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/api.py +9 -6
  4. {qtype-0.0.4 → qtype-0.0.5/qtype.egg-info}/PKG-INFO +1 -1
  5. {qtype-0.0.4 → qtype-0.0.5}/LICENSE +0 -0
  6. {qtype-0.0.4 → qtype-0.0.5}/README.md +0 -0
  7. {qtype-0.0.4 → qtype-0.0.5}/qtype/__init__.py +0 -0
  8. {qtype-0.0.4 → qtype-0.0.5}/qtype/cli.py +0 -0
  9. {qtype-0.0.4 → qtype-0.0.5}/qtype/commands/__init__.py +0 -0
  10. {qtype-0.0.4 → qtype-0.0.5}/qtype/commands/convert.py +0 -0
  11. {qtype-0.0.4 → qtype-0.0.5}/qtype/commands/generate.py +0 -0
  12. {qtype-0.0.4 → qtype-0.0.5}/qtype/commands/run.py +0 -0
  13. {qtype-0.0.4 → qtype-0.0.5}/qtype/commands/validate.py +0 -0
  14. {qtype-0.0.4 → qtype-0.0.5}/qtype/commons/__init__.py +0 -0
  15. {qtype-0.0.4 → qtype-0.0.5}/qtype/commons/generate.py +0 -0
  16. {qtype-0.0.4 → qtype-0.0.5}/qtype/commons/tools.py +0 -0
  17. {qtype-0.0.4 → qtype-0.0.5}/qtype/converters/__init__.py +0 -0
  18. {qtype-0.0.4 → qtype-0.0.5}/qtype/converters/tools_from_api.py +0 -0
  19. {qtype-0.0.4 → qtype-0.0.5}/qtype/converters/tools_from_module.py +0 -0
  20. {qtype-0.0.4 → qtype-0.0.5}/qtype/converters/types.py +0 -0
  21. {qtype-0.0.4 → qtype-0.0.5}/qtype/dsl/__init__.py +0 -0
  22. {qtype-0.0.4 → qtype-0.0.5}/qtype/dsl/base_types.py +0 -0
  23. {qtype-0.0.4 → qtype-0.0.5}/qtype/dsl/document.py +0 -0
  24. {qtype-0.0.4 → qtype-0.0.5}/qtype/dsl/domain_types.py +0 -0
  25. {qtype-0.0.4 → qtype-0.0.5}/qtype/dsl/model.py +0 -0
  26. {qtype-0.0.4 → qtype-0.0.5}/qtype/dsl/validator.py +0 -0
  27. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/__init__.py +0 -0
  28. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/conversions.py +0 -0
  29. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/exceptions.py +0 -0
  30. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/flow.py +0 -0
  31. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/resource_cache.py +0 -0
  32. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/step.py +0 -0
  33. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/steps/__init__.py +0 -0
  34. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/steps/agent.py +0 -0
  35. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/steps/condition.py +0 -0
  36. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/steps/decoder.py +0 -0
  37. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/steps/llm_inference.py +0 -0
  38. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/steps/prompt_template.py +0 -0
  39. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/steps/search.py +0 -0
  40. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/steps/tool.py +0 -0
  41. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/telemetry.py +0 -0
  42. {qtype-0.0.4 → qtype-0.0.5}/qtype/interpreter/typing.py +0 -0
  43. {qtype-0.0.4 → qtype-0.0.5}/qtype/loader.py +0 -0
  44. {qtype-0.0.4 → qtype-0.0.5}/qtype/semantic/__init__.py +0 -0
  45. {qtype-0.0.4 → qtype-0.0.5}/qtype/semantic/base_types.py +0 -0
  46. {qtype-0.0.4 → qtype-0.0.5}/qtype/semantic/errors.py +0 -0
  47. {qtype-0.0.4 → qtype-0.0.5}/qtype/semantic/generate.py +0 -0
  48. {qtype-0.0.4 → qtype-0.0.5}/qtype/semantic/model.py +0 -0
  49. {qtype-0.0.4 → qtype-0.0.5}/qtype/semantic/resolver.py +0 -0
  50. {qtype-0.0.4 → qtype-0.0.5}/qtype.egg-info/SOURCES.txt +0 -0
  51. {qtype-0.0.4 → qtype-0.0.5}/qtype.egg-info/dependency_links.txt +0 -0
  52. {qtype-0.0.4 → qtype-0.0.5}/qtype.egg-info/entry_points.txt +0 -0
  53. {qtype-0.0.4 → qtype-0.0.5}/qtype.egg-info/requires.txt +0 -0
  54. {qtype-0.0.4 → qtype-0.0.5}/qtype.egg-info/top_level.txt +0 -0
  55. {qtype-0.0.4 → qtype-0.0.5}/setup.cfg +0 -0
  56. {qtype-0.0.4 → qtype-0.0.5}/tests/test_dsl_loader.py +0 -0
  57. {qtype-0.0.4 → qtype-0.0.5}/tests/test_dsl_validation.py +0 -0
  58. {qtype-0.0.4 → qtype-0.0.5}/tests/test_semantic_resolver.py +0 -0
  59. {qtype-0.0.4 → qtype-0.0.5}/tests/test_tool_provider_python_module.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qtype
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: DSL for Generative AI Prototyping
5
5
  Author-email: Lou Kratz <lou.kratz+qtype@bazaarvoice.com>
6
6
  License-Expression: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "qtype"
3
- version = "0.0.4"
3
+ version = "0.0.5"
4
4
  description = "DSL for Generative AI Prototyping"
5
5
  authors = [{ name="Lou Kratz", email="lou.kratz+qtype@bazaarvoice.com" }]
6
6
  readme = "README.md"
@@ -23,13 +23,16 @@ class APIExecutor:
23
23
  self.host = host
24
24
  self.port = port
25
25
 
26
- def create_app(self, name: Optional[str]) -> FastAPI:
26
+ def create_app(
27
+ self,
28
+ name: Optional[str],
29
+ fast_api_args: dict = {
30
+ "docs_url": "/docs",
31
+ "redoc_url": "/redoc",
32
+ },
33
+ ) -> FastAPI:
27
34
  """Create FastAPI app with dynamic endpoints."""
28
- app = FastAPI(
29
- title=name or "QType API",
30
- docs_url="/docs", # Swagger UI
31
- redoc_url="/redoc",
32
- )
35
+ app = FastAPI(title=name or "QType API", **fast_api_args)
33
36
 
34
37
  flows = self.definition.flows if self.definition.flows else []
35
38
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qtype
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: DSL for Generative AI Prototyping
5
5
  Author-email: Lou Kratz <lou.kratz+qtype@bazaarvoice.com>
6
6
  License-Expression: Apache-2.0
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
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
File without changes
File without changes