cortexdbai 0.6.0__tar.gz → 0.7.0__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 (95) hide show
  1. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/PKG-INFO +1 -1
  2. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/__init__.py +1 -1
  3. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/v1/client.py +20 -1
  4. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/pyproject.toml +1 -1
  5. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/.gitignore +0 -0
  6. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/README.md +0 -0
  7. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/__init__.py +0 -0
  8. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/ag2/__init__.py +0 -0
  9. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/ag2/agent.py +0 -0
  10. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/ag2/tools.py +0 -0
  11. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/agno/__init__.py +0 -0
  12. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/agno/memory.py +0 -0
  13. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/agno/tools.py +0 -0
  14. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/autogen/__init__.py +0 -0
  15. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/autogen/agent.py +0 -0
  16. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/autogen/tools.py +0 -0
  17. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/beeai/__init__.py +0 -0
  18. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/beeai/memory.py +0 -0
  19. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/beeai/tools.py +0 -0
  20. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/camel/__init__.py +0 -0
  21. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/camel/memory.py +0 -0
  22. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/camel/tools.py +0 -0
  23. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/controlflow/__init__.py +0 -0
  24. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/controlflow/memory.py +0 -0
  25. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/crewai/__init__.py +0 -0
  26. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/crewai/memory.py +0 -0
  27. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/crewai/tools.py +0 -0
  28. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/deepinfra/__init__.py +0 -0
  29. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/deepinfra/config.py +0 -0
  30. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/deepinfra/embeddings.py +0 -0
  31. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/deepinfra/openai_compat.py +0 -0
  32. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/dify/__init__.py +0 -0
  33. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/dify/manifest.yaml +0 -0
  34. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/dify/tool.py +0 -0
  35. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/dspy/__init__.py +0 -0
  36. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/dspy/memory.py +0 -0
  37. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/dspy/retriever.py +0 -0
  38. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/fireworks/__init__.py +0 -0
  39. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/fireworks/config.py +0 -0
  40. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/fireworks/embeddings.py +0 -0
  41. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/fireworks/openai_compat.py +0 -0
  42. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/flowise/__init__.py +0 -0
  43. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/flowise/node.py +0 -0
  44. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/google_adk/__init__.py +0 -0
  45. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/google_adk/tools.py +0 -0
  46. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/groq/__init__.py +0 -0
  47. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/groq/config.py +0 -0
  48. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/groq/embeddings.py +0 -0
  49. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/groq/openai_compat.py +0 -0
  50. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/hermes/__init__.py +0 -0
  51. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/hermes/provider.py +0 -0
  52. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/instructor/__init__.py +0 -0
  53. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/instructor/memory.py +0 -0
  54. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/langchain/__init__.py +0 -0
  55. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/langchain/memory.py +0 -0
  56. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/langchain/retriever.py +0 -0
  57. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/langchain/tools.py +0 -0
  58. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/langgraph/__init__.py +0 -0
  59. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/langgraph/memory.py +0 -0
  60. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/letta/__init__.py +0 -0
  61. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/letta/storage.py +0 -0
  62. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/llamaindex/__init__.py +0 -0
  63. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/llamaindex/memory.py +0 -0
  64. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/nemo_guardrails/__init__.py +0 -0
  65. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/nemo_guardrails/actions.py +0 -0
  66. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/nemo_guardrails/knowledge_base.py +0 -0
  67. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/ollama/__init__.py +0 -0
  68. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/ollama/config.py +0 -0
  69. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/ollama/embeddings.py +0 -0
  70. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/openai_agents/__init__.py +0 -0
  71. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/openai_agents/tools.py +0 -0
  72. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/prefect/__init__.py +0 -0
  73. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/prefect/blocks.py +0 -0
  74. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/prefect/tasks.py +0 -0
  75. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/pydanticai/__init__.py +0 -0
  76. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/pydanticai/dependencies.py +0 -0
  77. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/pydanticai/tools.py +0 -0
  78. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/smolagents/__init__.py +0 -0
  79. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/smolagents/tools.py +0 -0
  80. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/temporal/__init__.py +0 -0
  81. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/temporal/activities.py +0 -0
  82. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/temporal/interceptor.py +0 -0
  83. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/together/__init__.py +0 -0
  84. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/together/config.py +0 -0
  85. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/together/embeddings.py +0 -0
  86. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/together/openai_compat.py +0 -0
  87. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/vllm/__init__.py +0 -0
  88. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/vllm/config.py +0 -0
  89. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/vllm/embeddings.py +0 -0
  90. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/integrations/vllm/openai_compat.py +0 -0
  91. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/py.typed +0 -0
  92. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/v1/__init__.py +0 -0
  93. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/cortexdb/v1/exceptions.py +0 -0
  94. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/tests/__init__.py +0 -0
  95. {cortexdbai-0.6.0 → cortexdbai-0.7.0}/tests/test_conflicts.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cortexdbai
3
- Version: 0.6.0
3
+ Version: 0.7.0
4
4
  Summary: The Long-Term Memory Layer for AI Systems
5
5
  Project-URL: Homepage, https://cortexdb.ai
6
6
  Project-URL: Documentation, https://docs.cortexdb.ai
@@ -49,7 +49,7 @@ from cortexdb import v1 # the explicit submodule namespace
49
49
  Cortex = V1Client
50
50
  AsyncCortex = AsyncV1Client
51
51
 
52
- __version__ = "0.6.0"
52
+ __version__ = "0.7.0"
53
53
  __all__ = [
54
54
  # Clients (preferred top-level names)
55
55
  "Cortex",
@@ -500,6 +500,8 @@ class V1Client:
500
500
  question_date: Optional[str] = None,
501
501
  answer_model: Optional[str] = None,
502
502
  answer_max_tokens: Optional[int] = None,
503
+ answer_instructions: Optional[str] = None,
504
+ cite_sources: bool = False,
503
505
  use_pack_id: Optional[str] = None,
504
506
  temporal: Optional[Mapping[str, Any]] = None,
505
507
  diagnostics: str = "none",
@@ -510,6 +512,12 @@ class V1Client:
510
512
  defaults to ``"none"`` so free-tier tokens don't hit the
511
513
  ``diagnostics.read`` gate. Pass ``"summary"`` or ``"full"`` when
512
514
  you hold the elevated capability.
515
+
516
+ ``answer_instructions`` is a prompt addendum appended to the server's
517
+ system prompt — control style, verbosity, and output format ("be
518
+ terse", "answer as markdown with curl examples", "respond in JSON").
519
+ It never affects retrieval. Max 4000 chars. Pair with
520
+ ``question_type="docs-assistant"`` for documentation-support answers.
513
521
  """
514
522
  body: dict = {
515
523
  "scope": scope,
@@ -525,6 +533,10 @@ class V1Client:
525
533
  body["answer_model"] = answer_model
526
534
  if answer_max_tokens is not None:
527
535
  body["answer_max_tokens"] = answer_max_tokens
536
+ if answer_instructions:
537
+ body["answer_instructions"] = answer_instructions
538
+ if cite_sources:
539
+ body["cite_sources"] = True
528
540
  if use_pack_id:
529
541
  body["use_pack_id"] = use_pack_id
530
542
  if temporal:
@@ -1020,11 +1032,14 @@ class AsyncV1Client:
1020
1032
  *,
1021
1033
  question_type: Optional[str] = None,
1022
1034
  question_date: Optional[str] = None,
1035
+ answer_instructions: Optional[str] = None,
1036
+ cite_sources: bool = False,
1023
1037
  view: str = "holistic",
1024
1038
  diagnostics: str = "none",
1025
1039
  ) -> dict:
1026
1040
  """``POST /v1/answer``. ``diagnostics`` defaults to ``"none"`` so
1027
- free-tier tokens succeed (audit FRI-1)."""
1041
+ free-tier tokens succeed (audit FRI-1). ``answer_instructions``:
1042
+ see :meth:`V1Client.answer`."""
1028
1043
  body: dict = {
1029
1044
  "scope": scope,
1030
1045
  "view": view,
@@ -1035,6 +1050,10 @@ class AsyncV1Client:
1035
1050
  body["question_type"] = question_type
1036
1051
  if question_date:
1037
1052
  body["question_date"] = question_date
1053
+ if answer_instructions:
1054
+ body["answer_instructions"] = answer_instructions
1055
+ if cite_sources:
1056
+ body["cite_sources"] = True
1038
1057
  return await self._post("/v1/answer", body)
1039
1058
 
1040
1059
  # ── conflicts + bi-temporal claims ────────────────────────────────
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "cortexdbai"
7
- version = "0.6.0"
7
+ version = "0.7.0"
8
8
  description = "The Long-Term Memory Layer for AI Systems"
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
File without changes
File without changes
File without changes
File without changes