dapr-agents 0.1.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 (385) hide show
  1. dapr_agents-0.1.0/.devcontainer/devcontainer.json +23 -0
  2. dapr_agents-0.1.0/.devcontainer/post-create.sh +7 -0
  3. dapr_agents-0.1.0/.gitattributes +2 -0
  4. dapr_agents-0.1.0/.github/workflows/docs.yml +31 -0
  5. dapr_agents-0.1.0/.github/workflows/e2e-tests.yaml +42 -0
  6. dapr_agents-0.1.0/.github/workflows/release.yml +43 -0
  7. dapr_agents-0.1.0/.gitignore +166 -0
  8. dapr_agents-0.1.0/CODE_OF_CONDUCT.md +86 -0
  9. dapr_agents-0.1.0/LICENSE +201 -0
  10. dapr_agents-0.1.0/Makefile +57 -0
  11. dapr_agents-0.1.0/PKG-INFO +358 -0
  12. dapr_agents-0.1.0/README.md +118 -0
  13. dapr_agents-0.1.0/cookbook/agents/basic_oai_agent_react.ipynb +561 -0
  14. dapr_agents-0.1.0/cookbook/agents/openapi/README.md +32 -0
  15. dapr_agents-0.1.0/cookbook/agents/openapi/react_agent_openapi_msgraph.ipynb +875 -0
  16. dapr_agents-0.1.0/cookbook/agents/weather/README.md +30 -0
  17. dapr_agents-0.1.0/cookbook/agents/weather/react_agent.ipynb +223 -0
  18. dapr_agents-0.1.0/cookbook/agents/weather/toolcall_agent.ipynb +264 -0
  19. dapr_agents-0.1.0/cookbook/agents/weather/tools.py +191 -0
  20. dapr_agents-0.1.0/cookbook/arxiv_search.ipynb +1174 -0
  21. dapr_agents-0.1.0/cookbook/graphstores/neo4j_basic_examples.ipynb +462 -0
  22. dapr_agents-0.1.0/cookbook/llm/azure_openai_chat_basic.ipynb +286 -0
  23. dapr_agents-0.1.0/cookbook/llm/basic-azopenai-chat.prompty +23 -0
  24. dapr_agents-0.1.0/cookbook/llm/basic-hf-chat.prompty +23 -0
  25. dapr_agents-0.1.0/cookbook/llm/basic-nvidia-chat.prompty +23 -0
  26. dapr_agents-0.1.0/cookbook/llm/basic-openai-chat-history.prompty +30 -0
  27. dapr_agents-0.1.0/cookbook/llm/basic-openai-chat.prompty +23 -0
  28. dapr_agents-0.1.0/cookbook/llm/elevenlabs_speech_basic.ipynb +187 -0
  29. dapr_agents-0.1.0/cookbook/llm/hf_chat_basic.ipynb +342 -0
  30. dapr_agents-0.1.0/cookbook/llm/nvidia_chat_basic.ipynb +244 -0
  31. dapr_agents-0.1.0/cookbook/llm/nvidia_chat_structured_output.ipynb +234 -0
  32. dapr_agents-0.1.0/cookbook/llm/nvidia_embeddings_basic.ipynb +260 -0
  33. dapr_agents-0.1.0/cookbook/llm/openai_audio_basic.ipynb +453 -0
  34. dapr_agents-0.1.0/cookbook/llm/openai_chat_basic.ipynb +275 -0
  35. dapr_agents-0.1.0/cookbook/llm/openai_chat_structured_output.ipynb +226 -0
  36. dapr_agents-0.1.0/cookbook/llm/openai_embeddings_basic.ipynb +262 -0
  37. dapr_agents-0.1.0/cookbook/vectorstores/chroma_openai_embeddings.ipynb +499 -0
  38. dapr_agents-0.1.0/cookbook/vectorstores/chroma_sentencetransformers_all-MiniLM-L6-v2.ipynb +498 -0
  39. dapr_agents-0.1.0/cookbook/vectorstores/postgres_sentencetransformers_all-MiniLM-L6-v2.ipynb +522 -0
  40. dapr_agents-0.1.0/cookbook/workflows/basic/components/workflowstate.yaml +14 -0
  41. dapr_agents-0.1.0/cookbook/workflows/basic/wf_taskchain_dapr_activity.py +41 -0
  42. dapr_agents-0.1.0/cookbook/workflows/basic/wf_taskchain_dapr_oai_llm_request.py +63 -0
  43. dapr_agents-0.1.0/cookbook/workflows/basic/wf_taskchain_floki_activity.py +37 -0
  44. dapr_agents-0.1.0/cookbook/workflows/basic/wf_taskchain_floki_oai_llm_request.py +35 -0
  45. dapr_agents-0.1.0/cookbook/workflows/basic/wf_taskchain_floki_oai_structured_output.py +29 -0
  46. dapr_agents-0.1.0/cookbook/workflows/doc2podcast/README.md +61 -0
  47. dapr_agents-0.1.0/cookbook/workflows/doc2podcast/components/workflowstate.yaml +14 -0
  48. dapr_agents-0.1.0/cookbook/workflows/doc2podcast/config.json +20 -0
  49. dapr_agents-0.1.0/cookbook/workflows/doc2podcast/podcast_dialogue.json +234 -0
  50. dapr_agents-0.1.0/cookbook/workflows/doc2podcast/requirements.txt +3 -0
  51. dapr_agents-0.1.0/cookbook/workflows/doc2podcast/workflow.py +361 -0
  52. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_actors/README.md +91 -0
  53. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_actors/components/agentstate.yaml +16 -0
  54. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_actors/components/pubsub.yaml +12 -0
  55. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_actors/components/workflowstate.yaml +12 -0
  56. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_actors/dapr.yaml +32 -0
  57. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_actors/services/elf/app.py +41 -0
  58. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_actors/services/hobbit/app.py +41 -0
  59. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_actors/services/wizard/app.py +41 -0
  60. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_actors/services/workflow-llm/Orchestrator_state.json +304 -0
  61. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_actors/services/workflow-llm/app.py +29 -0
  62. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_actors/services/workflow-random/app.py +28 -0
  63. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_actors/services/workflow-roundrobin/app.py +29 -0
  64. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/components/agentsregistry.yaml +14 -0
  65. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/components/pubsub.yaml +12 -0
  66. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/components/workflowstate.yaml +14 -0
  67. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/dapr.yaml +63 -0
  68. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/dwarf/Gimli_state.json +1 -0
  69. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/dwarf/app.py +38 -0
  70. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/eagle/Gwaihir_state.json +1 -0
  71. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/eagle/app.py +39 -0
  72. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/elf/Legolas_state.json +1 -0
  73. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/elf/app.py +38 -0
  74. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/hobbit/Frodo_state.json +1 -0
  75. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/hobbit/app.py +38 -0
  76. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/orchestrator/Orchestrator_state.json +363 -0
  77. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/orchestrator/app.py +29 -0
  78. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/ranger/Aragorn_state.json +1 -0
  79. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/ranger/app.py +38 -0
  80. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/wizard/Gandalf_state.json +1 -0
  81. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/wizard/app.py +38 -0
  82. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/workflow-random/app.py +29 -0
  83. dapr_agents-0.1.0/cookbook/workflows/multi_agents/basic_lotr_agents_as_workflows/services/workflow-roundrobin/app.py +29 -0
  84. dapr_agents-0.1.0/dapr_agents/__init__.py +12 -0
  85. dapr_agents-0.1.0/dapr_agents/agent/__init__.py +4 -0
  86. dapr_agents-0.1.0/dapr_agents/agent/actor/__init__.py +4 -0
  87. dapr_agents-0.1.0/dapr_agents/agent/actor/agent.py +97 -0
  88. dapr_agents-0.1.0/dapr_agents/agent/actor/base.py +158 -0
  89. dapr_agents-0.1.0/dapr_agents/agent/actor/interface.py +37 -0
  90. dapr_agents-0.1.0/dapr_agents/agent/actor/service.py +383 -0
  91. dapr_agents-0.1.0/dapr_agents/agent/base.py +292 -0
  92. dapr_agents-0.1.0/dapr_agents/agent/patterns/__init__.py +3 -0
  93. dapr_agents-0.1.0/dapr_agents/agent/patterns/openapi/__init__.py +1 -0
  94. dapr_agents-0.1.0/dapr_agents/agent/patterns/openapi/react.py +64 -0
  95. dapr_agents-0.1.0/dapr_agents/agent/patterns/openapi/tools.py +107 -0
  96. dapr_agents-0.1.0/dapr_agents/agent/patterns/react/__init__.py +1 -0
  97. dapr_agents-0.1.0/dapr_agents/agent/patterns/react/base.py +264 -0
  98. dapr_agents-0.1.0/dapr_agents/agent/patterns/toolcall/__init__.py +1 -0
  99. dapr_agents-0.1.0/dapr_agents/agent/patterns/toolcall/base.py +121 -0
  100. dapr_agents-0.1.0/dapr_agents/agent/utils/__init__.py +0 -0
  101. dapr_agents-0.1.0/dapr_agents/agent/utils/auth.py +45 -0
  102. dapr_agents-0.1.0/dapr_agents/agent/utils/factory.py +87 -0
  103. dapr_agents-0.1.0/dapr_agents/agent/utils/message_converter.py +39 -0
  104. dapr_agents-0.1.0/dapr_agents/agent/utils/text_printer.py +152 -0
  105. dapr_agents-0.1.0/dapr_agents/document/__init__.py +4 -0
  106. dapr_agents-0.1.0/dapr_agents/document/embedder/__init__.py +3 -0
  107. dapr_agents-0.1.0/dapr_agents/document/embedder/base.py +22 -0
  108. dapr_agents-0.1.0/dapr_agents/document/embedder/nvidia.py +106 -0
  109. dapr_agents-0.1.0/dapr_agents/document/embedder/openai.py +152 -0
  110. dapr_agents-0.1.0/dapr_agents/document/embedder/sentence.py +111 -0
  111. dapr_agents-0.1.0/dapr_agents/document/fetcher/__init__.py +1 -0
  112. dapr_agents-0.1.0/dapr_agents/document/fetcher/arxiv.py +280 -0
  113. dapr_agents-0.1.0/dapr_agents/document/fetcher/base.py +22 -0
  114. dapr_agents-0.1.0/dapr_agents/document/reader/__init__.py +1 -0
  115. dapr_agents-0.1.0/dapr_agents/document/reader/base.py +23 -0
  116. dapr_agents-0.1.0/dapr_agents/document/reader/pdf/__init__.py +2 -0
  117. dapr_agents-0.1.0/dapr_agents/document/reader/pdf/pymupdf.py +48 -0
  118. dapr_agents-0.1.0/dapr_agents/document/reader/pdf/pypdf.py +46 -0
  119. dapr_agents-0.1.0/dapr_agents/document/reader/text.py +34 -0
  120. dapr_agents-0.1.0/dapr_agents/document/splitter/__init__.py +2 -0
  121. dapr_agents-0.1.0/dapr_agents/document/splitter/base.py +236 -0
  122. dapr_agents-0.1.0/dapr_agents/document/splitter/text.py +47 -0
  123. dapr_agents-0.1.0/dapr_agents/executors/__init__.py +3 -0
  124. dapr_agents-0.1.0/dapr_agents/executors/base.py +21 -0
  125. dapr_agents-0.1.0/dapr_agents/executors/docker.py +238 -0
  126. dapr_agents-0.1.0/dapr_agents/executors/local.py +227 -0
  127. dapr_agents-0.1.0/dapr_agents/llm/__init__.py +13 -0
  128. dapr_agents-0.1.0/dapr_agents/llm/base.py +49 -0
  129. dapr_agents-0.1.0/dapr_agents/llm/chat.py +57 -0
  130. dapr_agents-0.1.0/dapr_agents/llm/dapr/__init__.py +2 -0
  131. dapr_agents-0.1.0/dapr_agents/llm/dapr/chat.py +170 -0
  132. dapr_agents-0.1.0/dapr_agents/llm/dapr/client.py +86 -0
  133. dapr_agents-0.1.0/dapr_agents/llm/elevenlabs/__init__.py +1 -0
  134. dapr_agents-0.1.0/dapr_agents/llm/elevenlabs/client.py +83 -0
  135. dapr_agents-0.1.0/dapr_agents/llm/elevenlabs/speech.py +103 -0
  136. dapr_agents-0.1.0/dapr_agents/llm/huggingface/__init__.py +2 -0
  137. dapr_agents-0.1.0/dapr_agents/llm/huggingface/chat.py +141 -0
  138. dapr_agents-0.1.0/dapr_agents/llm/huggingface/client.py +130 -0
  139. dapr_agents-0.1.0/dapr_agents/llm/nvidia/__init__.py +3 -0
  140. dapr_agents-0.1.0/dapr_agents/llm/nvidia/chat.py +148 -0
  141. dapr_agents-0.1.0/dapr_agents/llm/nvidia/client.py +92 -0
  142. dapr_agents-0.1.0/dapr_agents/llm/nvidia/embeddings.py +100 -0
  143. dapr_agents-0.1.0/dapr_agents/llm/openai/__init__.py +4 -0
  144. dapr_agents-0.1.0/dapr_agents/llm/openai/audio.py +124 -0
  145. dapr_agents-0.1.0/dapr_agents/llm/openai/chat.py +171 -0
  146. dapr_agents-0.1.0/dapr_agents/llm/openai/client/__init__.py +3 -0
  147. dapr_agents-0.1.0/dapr_agents/llm/openai/client/azure.py +132 -0
  148. dapr_agents-0.1.0/dapr_agents/llm/openai/client/base.py +98 -0
  149. dapr_agents-0.1.0/dapr_agents/llm/openai/client/openai.py +72 -0
  150. dapr_agents-0.1.0/dapr_agents/llm/openai/embeddings.py +80 -0
  151. dapr_agents-0.1.0/dapr_agents/llm/utils/__init__.py +5 -0
  152. dapr_agents-0.1.0/dapr_agents/llm/utils/http.py +20 -0
  153. dapr_agents-0.1.0/dapr_agents/llm/utils/request.py +138 -0
  154. dapr_agents-0.1.0/dapr_agents/llm/utils/response.py +86 -0
  155. dapr_agents-0.1.0/dapr_agents/llm/utils/stream.py +201 -0
  156. dapr_agents-0.1.0/dapr_agents/llm/utils/structure.py +396 -0
  157. dapr_agents-0.1.0/dapr_agents/memory/__init__.py +4 -0
  158. dapr_agents-0.1.0/dapr_agents/memory/base.py +72 -0
  159. dapr_agents-0.1.0/dapr_agents/memory/daprstatestore.py +186 -0
  160. dapr_agents-0.1.0/dapr_agents/memory/liststore.py +66 -0
  161. dapr_agents-0.1.0/dapr_agents/memory/vectorstore.py +148 -0
  162. dapr_agents-0.1.0/dapr_agents/messaging/__init__.py +4 -0
  163. dapr_agents-0.1.0/dapr_agents/messaging/base.py +41 -0
  164. dapr_agents-0.1.0/dapr_agents/messaging/dapr.py +121 -0
  165. dapr_agents-0.1.0/dapr_agents/messaging/parser.py +68 -0
  166. dapr_agents-0.1.0/dapr_agents/messaging/router.py +58 -0
  167. dapr_agents-0.1.0/dapr_agents/prompt/__init__.py +5 -0
  168. dapr_agents-0.1.0/dapr_agents/prompt/base.py +66 -0
  169. dapr_agents-0.1.0/dapr_agents/prompt/chat.py +128 -0
  170. dapr_agents-0.1.0/dapr_agents/prompt/prompty.py +117 -0
  171. dapr_agents-0.1.0/dapr_agents/prompt/string.py +103 -0
  172. dapr_agents-0.1.0/dapr_agents/prompt/utils/__init__.py +0 -0
  173. dapr_agents-0.1.0/dapr_agents/prompt/utils/chat.py +247 -0
  174. dapr_agents-0.1.0/dapr_agents/prompt/utils/fstring.py +26 -0
  175. dapr_agents-0.1.0/dapr_agents/prompt/utils/jinja.py +35 -0
  176. dapr_agents-0.1.0/dapr_agents/prompt/utils/prompty.py +366 -0
  177. dapr_agents-0.1.0/dapr_agents/prompt/utils/string.py +54 -0
  178. dapr_agents-0.1.0/dapr_agents/service/__init__.py +2 -0
  179. dapr_agents-0.1.0/dapr_agents/service/base.py +28 -0
  180. dapr_agents-0.1.0/dapr_agents/service/fastapi/__init__.py +2 -0
  181. dapr_agents-0.1.0/dapr_agents/service/fastapi/base.py +97 -0
  182. dapr_agents-0.1.0/dapr_agents/service/fastapi/dapr.py +44 -0
  183. dapr_agents-0.1.0/dapr_agents/storage/__init__.py +2 -0
  184. dapr_agents-0.1.0/dapr_agents/storage/daprstores/__init__.py +2 -0
  185. dapr_agents-0.1.0/dapr_agents/storage/daprstores/base.py +34 -0
  186. dapr_agents-0.1.0/dapr_agents/storage/daprstores/secretstore.py +34 -0
  187. dapr_agents-0.1.0/dapr_agents/storage/daprstores/statestore.py +113 -0
  188. dapr_agents-0.1.0/dapr_agents/storage/graphstores/__init__.py +2 -0
  189. dapr_agents-0.1.0/dapr_agents/storage/graphstores/base.py +61 -0
  190. dapr_agents-0.1.0/dapr_agents/storage/graphstores/neo4j/__init__.py +2 -0
  191. dapr_agents-0.1.0/dapr_agents/storage/graphstores/neo4j/base.py +440 -0
  192. dapr_agents-0.1.0/dapr_agents/storage/graphstores/neo4j/client.py +83 -0
  193. dapr_agents-0.1.0/dapr_agents/storage/graphstores/neo4j/utils.py +66 -0
  194. dapr_agents-0.1.0/dapr_agents/storage/vectorstores/__init__.py +3 -0
  195. dapr_agents-0.1.0/dapr_agents/storage/vectorstores/base.py +89 -0
  196. dapr_agents-0.1.0/dapr_agents/storage/vectorstores/chroma.py +205 -0
  197. dapr_agents-0.1.0/dapr_agents/storage/vectorstores/postgres.py +447 -0
  198. dapr_agents-0.1.0/dapr_agents/tool/__init__.py +2 -0
  199. dapr_agents-0.1.0/dapr_agents/tool/base.py +209 -0
  200. dapr_agents-0.1.0/dapr_agents/tool/executor.py +125 -0
  201. dapr_agents-0.1.0/dapr_agents/tool/storage/__init__.py +1 -0
  202. dapr_agents-0.1.0/dapr_agents/tool/storage/vectorstore.py +70 -0
  203. dapr_agents-0.1.0/dapr_agents/tool/utils/__init__.py +2 -0
  204. dapr_agents-0.1.0/dapr_agents/tool/utils/function_calling.py +167 -0
  205. dapr_agents-0.1.0/dapr_agents/tool/utils/openapi.py +344 -0
  206. dapr_agents-0.1.0/dapr_agents/tool/utils/tool.py +76 -0
  207. dapr_agents-0.1.0/dapr_agents/types/__init__.py +19 -0
  208. dapr_agents-0.1.0/dapr_agents/types/agent.py +44 -0
  209. dapr_agents-0.1.0/dapr_agents/types/document.py +9 -0
  210. dapr_agents-0.1.0/dapr_agents/types/exceptions.py +14 -0
  211. dapr_agents-0.1.0/dapr_agents/types/executor.py +21 -0
  212. dapr_agents-0.1.0/dapr_agents/types/graph.py +43 -0
  213. dapr_agents-0.1.0/dapr_agents/types/llm.py +387 -0
  214. dapr_agents-0.1.0/dapr_agents/types/message.py +318 -0
  215. dapr_agents-0.1.0/dapr_agents/types/schemas.py +35 -0
  216. dapr_agents-0.1.0/dapr_agents/types/tools.py +67 -0
  217. dapr_agents-0.1.0/dapr_agents/types/workflow.py +12 -0
  218. dapr_agents-0.1.0/dapr_agents/workflow/__init__.py +7 -0
  219. dapr_agents-0.1.0/dapr_agents/workflow/agentic.py +626 -0
  220. dapr_agents-0.1.0/dapr_agents/workflow/agents/__init__.py +2 -0
  221. dapr_agents-0.1.0/dapr_agents/workflow/agents/assistant/__init__.py +1 -0
  222. dapr_agents-0.1.0/dapr_agents/workflow/agents/assistant/agent.py +450 -0
  223. dapr_agents-0.1.0/dapr_agents/workflow/agents/assistant/schemas.py +15 -0
  224. dapr_agents-0.1.0/dapr_agents/workflow/agents/assistant/state.py +37 -0
  225. dapr_agents-0.1.0/dapr_agents/workflow/agents/base.py +232 -0
  226. dapr_agents-0.1.0/dapr_agents/workflow/base.py +597 -0
  227. dapr_agents-0.1.0/dapr_agents/workflow/decorators.py +154 -0
  228. dapr_agents-0.1.0/dapr_agents/workflow/orchestrators/__init__.py +4 -0
  229. dapr_agents-0.1.0/dapr_agents/workflow/orchestrators/base.py +69 -0
  230. dapr_agents-0.1.0/dapr_agents/workflow/orchestrators/llm/__init__.py +1 -0
  231. dapr_agents-0.1.0/dapr_agents/workflow/orchestrators/llm/orchestrator.py +558 -0
  232. dapr_agents-0.1.0/dapr_agents/workflow/orchestrators/llm/prompts.py +163 -0
  233. dapr_agents-0.1.0/dapr_agents/workflow/orchestrators/llm/schemas.py +48 -0
  234. dapr_agents-0.1.0/dapr_agents/workflow/orchestrators/llm/state.py +48 -0
  235. dapr_agents-0.1.0/dapr_agents/workflow/orchestrators/llm/utils.py +107 -0
  236. dapr_agents-0.1.0/dapr_agents/workflow/orchestrators/random.py +197 -0
  237. dapr_agents-0.1.0/dapr_agents/workflow/orchestrators/roundrobin.py +185 -0
  238. dapr_agents-0.1.0/dapr_agents/workflow/service.py +143 -0
  239. dapr_agents-0.1.0/dapr_agents/workflow/task.py +421 -0
  240. dapr_agents-0.1.0/dapr_agents.egg-info/PKG-INFO +358 -0
  241. dapr_agents-0.1.0/dapr_agents.egg-info/SOURCES.txt +383 -0
  242. dapr_agents-0.1.0/dapr_agents.egg-info/dependency_links.txt +1 -0
  243. dapr_agents-0.1.0/dapr_agents.egg-info/requires.txt +17 -0
  244. dapr_agents-0.1.0/dapr_agents.egg-info/top_level.txt +1 -0
  245. dapr_agents-0.1.0/docs/Dockerfile +5 -0
  246. dapr_agents-0.1.0/docs/concepts/agents.md +118 -0
  247. dapr_agents-0.1.0/docs/concepts/arxiv_fetcher.md +167 -0
  248. dapr_agents-0.1.0/docs/concepts/messaging.md +53 -0
  249. dapr_agents-0.1.0/docs/concepts/text_splitter.md +136 -0
  250. dapr_agents-0.1.0/docs/favicon.png +0 -0
  251. dapr_agents-0.1.0/docs/home/installation.md +86 -0
  252. dapr_agents-0.1.0/docs/home/principles.md +83 -0
  253. dapr_agents-0.1.0/docs/home/quickstarts/agentic_workflows.md +460 -0
  254. dapr_agents-0.1.0/docs/home/quickstarts/agents.md +127 -0
  255. dapr_agents-0.1.0/docs/home/quickstarts/dapr_workflows.md +171 -0
  256. dapr_agents-0.1.0/docs/home/quickstarts/index.md +16 -0
  257. dapr_agents-0.1.0/docs/home/quickstarts/llm.md +77 -0
  258. dapr_agents-0.1.0/docs/home/quickstarts/llm_workflows.md +149 -0
  259. dapr_agents-0.1.0/docs/home/why.md +19 -0
  260. dapr_agents-0.1.0/docs/img/concepts-agents-overview.png +0 -0
  261. dapr_agents-0.1.0/docs/img/concepts-agents.png +0 -0
  262. dapr_agents-0.1.0/docs/img/concepts_agents_react_flow.png +0 -0
  263. dapr_agents-0.1.0/docs/img/concepts_agents_toolcall_flow.png +0 -0
  264. dapr_agents-0.1.0/docs/img/home_concepts_principles_decoupled.png +0 -0
  265. dapr_agents-0.1.0/docs/img/home_concepts_principles_message.png +0 -0
  266. dapr_agents-0.1.0/docs/img/home_concepts_principles_modular.png +0 -0
  267. dapr_agents-0.1.0/docs/img/home_concepts_principles_workflows.png +0 -0
  268. dapr_agents-0.1.0/docs/img/home_installation_init.png +0 -0
  269. dapr_agents-0.1.0/docs/img/home_installation_redis_dashboard.png +0 -0
  270. dapr_agents-0.1.0/docs/img/workflows_dapr_activity.png +0 -0
  271. dapr_agents-0.1.0/docs/img/workflows_dapr_llm_request.png +0 -0
  272. dapr_agents-0.1.0/docs/img/workflows_floki_activity.png +0 -0
  273. dapr_agents-0.1.0/docs/img/workflows_floki_llm_request.png +0 -0
  274. dapr_agents-0.1.0/docs/img/workflows_llm_agent_initialization_hobbit.png +0 -0
  275. dapr_agents-0.1.0/docs/img/workflows_llm_agent_initialization_wizard.png +0 -0
  276. dapr_agents-0.1.0/docs/img/workflows_llm_console_logs_activities.png +0 -0
  277. dapr_agents-0.1.0/docs/img/workflows_llm_console_logs_activities_chat_completions.png +0 -0
  278. dapr_agents-0.1.0/docs/img/workflows_llm_console_logs_complete.png +0 -0
  279. dapr_agents-0.1.0/docs/img/workflows_llm_orchestrator_initialization.png +0 -0
  280. dapr_agents-0.1.0/docs/img/workflows_llm_redis_agents_metadata.png +0 -0
  281. dapr_agents-0.1.0/docs/img/workflows_llm_redis_broadcast_channel.png +0 -0
  282. dapr_agents-0.1.0/docs/img/workflows_llm_redis_empty.png +0 -0
  283. dapr_agents-0.1.0/docs/img/workflows_llm_redis_reset.png +0 -0
  284. dapr_agents-0.1.0/docs/img/workflows_llm_redis_workflow_state.png +0 -0
  285. dapr_agents-0.1.0/docs/img/workflows_llm_redis_workflow_state_edit_mode.png +0 -0
  286. dapr_agents-0.1.0/docs/img/workflows_llm_workflow_state_json_object.png +0 -0
  287. dapr_agents-0.1.0/docs/img/workflows_llm_workflow_state_json_object_plan.png +0 -0
  288. dapr_agents-0.1.0/docs/img/workflows_llm_zipkin_portal.png +0 -0
  289. dapr_agents-0.1.0/docs/img/workflows_llm_zipkin_spans_finish.png +0 -0
  290. dapr_agents-0.1.0/docs/img/workflows_llm_zipkin_spans_start.png +0 -0
  291. dapr_agents-0.1.0/docs/img/workflows_original_activity.png +0 -0
  292. dapr_agents-0.1.0/docs/img/workflows_originial_llm_request.png +0 -0
  293. dapr_agents-0.1.0/docs/img/workflows_random_event_driven.png +0 -0
  294. dapr_agents-0.1.0/docs/img/workflows_random_zipkin_portal.png +0 -0
  295. dapr_agents-0.1.0/docs/img/workflows_random_zipkin_spans.png +0 -0
  296. dapr_agents-0.1.0/docs/img/workflows_roundrobin_agent_initialization.png +0 -0
  297. dapr_agents-0.1.0/docs/img/workflows_roundrobin_agents_health.png +0 -0
  298. dapr_agents-0.1.0/docs/img/workflows_roundrobin_console_logs_activities.png +0 -0
  299. dapr_agents-0.1.0/docs/img/workflows_roundrobin_console_logs_complete.png +0 -0
  300. dapr_agents-0.1.0/docs/img/workflows_roundrobin_redis_agents_metadata.png +0 -0
  301. dapr_agents-0.1.0/docs/img/workflows_roundrobin_redis_broadcast_channel.png +0 -0
  302. dapr_agents-0.1.0/docs/img/workflows_roundrobin_redis_empty.png +0 -0
  303. dapr_agents-0.1.0/docs/img/workflows_roundrobin_redis_reset.png +0 -0
  304. dapr_agents-0.1.0/docs/img/workflows_roundrobin_zipkin_portal.png +0 -0
  305. dapr_agents-0.1.0/docs/img/workflows_roundrobin_zipkin_spans.png +0 -0
  306. dapr_agents-0.1.0/docs/index.md +51 -0
  307. dapr_agents-0.1.0/docs/logo-sticker-text.png +0 -0
  308. dapr_agents-0.1.0/docs/logo-sticker.png +0 -0
  309. dapr_agents-0.1.0/docs/logo-workflows.png +0 -0
  310. dapr_agents-0.1.0/mkdocs.yml +145 -0
  311. dapr_agents-0.1.0/pyproject.toml +58 -0
  312. dapr_agents-0.1.0/quickstarts/01-hello-world/01_ask_llm.py +8 -0
  313. dapr_agents-0.1.0/quickstarts/01-hello-world/02_build_agent.py +18 -0
  314. dapr_agents-0.1.0/quickstarts/01-hello-world/03_reason_act.py +27 -0
  315. dapr_agents-0.1.0/quickstarts/01-hello-world/04_chain_tasks.py +35 -0
  316. dapr_agents-0.1.0/quickstarts/01-hello-world/README.md +258 -0
  317. dapr_agents-0.1.0/quickstarts/01-hello-world/requirements.txt +2 -0
  318. dapr_agents-0.1.0/quickstarts/02_llm_call_dapr/README.md +77 -0
  319. dapr_agents-0.1.0/quickstarts/02_llm_call_dapr/basic.prompty +23 -0
  320. dapr_agents-0.1.0/quickstarts/02_llm_call_dapr/components/echo.yaml +7 -0
  321. dapr_agents-0.1.0/quickstarts/02_llm_call_dapr/requirements.txt +1 -0
  322. dapr_agents-0.1.0/quickstarts/02_llm_call_dapr/text_completion.py +28 -0
  323. dapr_agents-0.1.0/quickstarts/02_llm_call_elevenlabs/README.md +85 -0
  324. dapr_agents-0.1.0/quickstarts/02_llm_call_elevenlabs/requirements.txt +3 -0
  325. dapr_agents-0.1.0/quickstarts/02_llm_call_elevenlabs/text_to_speech.py +41 -0
  326. dapr_agents-0.1.0/quickstarts/02_llm_call_nvidia/README.md +158 -0
  327. dapr_agents-0.1.0/quickstarts/02_llm_call_nvidia/basic.prompty +23 -0
  328. dapr_agents-0.1.0/quickstarts/02_llm_call_nvidia/embeddings.py +35 -0
  329. dapr_agents-0.1.0/quickstarts/02_llm_call_nvidia/requirements.txt +3 -0
  330. dapr_agents-0.1.0/quickstarts/02_llm_call_nvidia/structured_completion.py +28 -0
  331. dapr_agents-0.1.0/quickstarts/02_llm_call_nvidia/text_completion.py +28 -0
  332. dapr_agents-0.1.0/quickstarts/02_llm_call_open_ai/README.md +242 -0
  333. dapr_agents-0.1.0/quickstarts/02_llm_call_open_ai/audio_transcription.py +49 -0
  334. dapr_agents-0.1.0/quickstarts/02_llm_call_open_ai/audio_translation.py +36 -0
  335. dapr_agents-0.1.0/quickstarts/02_llm_call_open_ai/basic.prompty +23 -0
  336. dapr_agents-0.1.0/quickstarts/02_llm_call_open_ai/embeddings.py +37 -0
  337. dapr_agents-0.1.0/quickstarts/02_llm_call_open_ai/requirements.txt +3 -0
  338. dapr_agents-0.1.0/quickstarts/02_llm_call_open_ai/speech.mp3 +0 -0
  339. dapr_agents-0.1.0/quickstarts/02_llm_call_open_ai/speech_spanish.mp3 +0 -0
  340. dapr_agents-0.1.0/quickstarts/02_llm_call_open_ai/structured_completion.py +26 -0
  341. dapr_agents-0.1.0/quickstarts/02_llm_call_open_ai/text_completion.py +28 -0
  342. dapr_agents-0.1.0/quickstarts/02_llm_call_open_ai/text_to_speech.py +36 -0
  343. dapr_agents-0.1.0/quickstarts/03-agent-tool-call/README.md +177 -0
  344. dapr_agents-0.1.0/quickstarts/03-agent-tool-call/requirements.txt +2 -0
  345. dapr_agents-0.1.0/quickstarts/03-agent-tool-call/weather_agent.py +15 -0
  346. dapr_agents-0.1.0/quickstarts/03-agent-tool-call/weather_tools.py +22 -0
  347. dapr_agents-0.1.0/quickstarts/04-agentic-workflow/README.md +258 -0
  348. dapr_agents-0.1.0/quickstarts/04-agentic-workflow/components/workflowstate.yaml +14 -0
  349. dapr_agents-0.1.0/quickstarts/04-agentic-workflow/requirements.txt +2 -0
  350. dapr_agents-0.1.0/quickstarts/04-agentic-workflow/workflow_dapr.py +63 -0
  351. dapr_agents-0.1.0/quickstarts/04-agentic-workflow/workflow_dapr_agent.py +35 -0
  352. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/README.md +312 -0
  353. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/components/agentstate.yaml +16 -0
  354. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/components/pubsub.yaml +12 -0
  355. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/components/workflowstate.yaml +12 -0
  356. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/dapr-llm.yaml +37 -0
  357. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/dapr-random.yaml +37 -0
  358. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/dapr-roundrobin.yaml +37 -0
  359. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/requirements.txt +3 -0
  360. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/services/client/client.py +34 -0
  361. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/services/elf/app.py +41 -0
  362. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/services/hobbit/app.py +34 -0
  363. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/services/wizard/app.py +33 -0
  364. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/services/workflow-llm/app.py +31 -0
  365. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/services/workflow-random/app.py +31 -0
  366. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-actors/services/workflow-roundrobin/app.py +31 -0
  367. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/README.md +313 -0
  368. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/components/agentstate.yaml +16 -0
  369. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/components/pubsub.yaml +12 -0
  370. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/components/workflowstate.yaml +12 -0
  371. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/dapr-llm.yaml +37 -0
  372. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/dapr-random.yaml +37 -0
  373. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/dapr-roundrobin.yaml +37 -0
  374. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/requirements.txt +3 -0
  375. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/services/client/client.py +34 -0
  376. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/services/elf/app.py +32 -0
  377. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/services/hobbit/app.py +34 -0
  378. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/services/wizard/app.py +34 -0
  379. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/services/workflow-llm/app.py +31 -0
  380. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/services/workflow-random/app.py +31 -0
  381. dapr_agents-0.1.0/quickstarts/05-multi-agent-workflow-dapr-workflows/services/workflow-roundrobin/app.py +31 -0
  382. dapr_agents-0.1.0/quickstarts/README.md +93 -0
  383. dapr_agents-0.1.0/quickstarts/validate.sh +4 -0
  384. dapr_agents-0.1.0/requirements.txt +16 -0
  385. dapr_agents-0.1.0/setup.cfg +4 -0
@@ -0,0 +1,23 @@
1
+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2
+ // README at: https://github.com/devcontainers/templates/tree/main/src/python
3
+ {
4
+ "name": "Python 3",
5
+ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6
+ "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
7
+ "features": {
8
+ "ghcr.io/devcontainers/features/docker-in-docker:2": {},
9
+ "ghcr.io/dapr/cli/dapr-cli:0": {}
10
+ },
11
+
12
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
13
+ // "forwardPorts": [],
14
+
15
+ // Use 'postCreateCommand' to run commands after the container is created.
16
+ "postCreateCommand": "bash .devcontainer/post-create.sh"
17
+
18
+ // Configure tool-specific properties.
19
+ // "customizations": {},
20
+
21
+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
22
+ // "remoteUser": "root"
23
+ }
@@ -0,0 +1,7 @@
1
+ dapr uninstall
2
+ dapr init
3
+ pip install --upgrade pip
4
+ pip install mkdocs
5
+ pip install mkdocs-material
6
+ pip install "mkdocs-material[imaging]"
7
+ pip install mkdocs-jupyter
@@ -0,0 +1,2 @@
1
+ * text=auto eol=lf
2
+ post-create.sh text eol=lf
@@ -0,0 +1,31 @@
1
+ name: docs
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ paths:
7
+ - docs
8
+ workflow_dispatch:
9
+ permissions:
10
+ contents: write
11
+ jobs:
12
+ deploy:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-python@v5
17
+ with:
18
+ python-version: 3.x
19
+ - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
20
+ - uses: actions/cache@v4
21
+ with:
22
+ key: mkdocs-material-${{ env.cache_id }}
23
+ path: .cache
24
+ restore-keys: |
25
+ mkdocs-material-
26
+ - name: Install Python dependencies
27
+ run: |
28
+ pip install mkdocs-material
29
+ pip install .[recommended,git,imaging]
30
+ pip install mkdocs-jupyter
31
+ - run: mkdocs gh-deploy --force
@@ -0,0 +1,42 @@
1
+ #
2
+ # Copyright 2025 The Dapr Authors
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ # http://www.apache.org/licenses/LICENSE-2.0
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+ #
13
+
14
+ name: E2E Tests
15
+
16
+ on:
17
+ workflow_dispatch:
18
+
19
+ jobs:
20
+ test:
21
+ name: Run tests
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+ with:
26
+ fetch-depth: 0
27
+ - name: Set up Python 3.11
28
+ uses: actions/setup-python@v5
29
+ with:
30
+ python-version: 3.11
31
+ - name: Install dependencies
32
+ run: |
33
+ python -m pip install --upgrade pip
34
+ - name: Validate quickstarts
35
+ env:
36
+ OPENAI_BASE_URL: "https://api.openai.com/v1"
37
+ OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
38
+ NVIDIA_API_KEY: ${{ secrets.NVIDIA_API_KEY }}
39
+ ELEVENLABS_API_KEY: ${{ secrets.ELEVENLABS_API_KEY }}
40
+ HUGGINGFACE_API_KEY: ${{ secrets.HUGGINGFACE_API_KEY }}
41
+ run: |
42
+ make validate-quickstarts
@@ -0,0 +1,43 @@
1
+ #
2
+ # Copyright 2025 The Dapr Authors
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ # http://www.apache.org/licenses/LICENSE-2.0
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+ #
13
+
14
+ name: Build Validation
15
+
16
+ on:
17
+ push:
18
+ tags: ["v*"]
19
+
20
+ jobs:
21
+ build-and-publish:
22
+ name: Publish to PyPI
23
+ runs-on: ubuntu-latest
24
+ env:
25
+ TWINE_USERNAME: "__token__"
26
+ steps:
27
+ - uses: actions/checkout@v4
28
+ with:
29
+ fetch-depth: 0
30
+ - name: Set up Python 3.11
31
+ uses: actions/setup-python@v5
32
+ with:
33
+ python-version: 3.11
34
+ - name: Install dependencies
35
+ run: |
36
+ python -m pip install --upgrade pip
37
+ pip install setuptools wheel twine build
38
+ - name: Build and publish Dapr Agents
39
+ env:
40
+ TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
41
+ run: |
42
+ python -m build
43
+ twine upload dist/*
@@ -0,0 +1,166 @@
1
+ # Others
2
+ .DS_Store
3
+ secrets.json
4
+ test
5
+
6
+ # Byte-compiled / optimized / DLL files
7
+ __pycache__/
8
+ *.py[cod]
9
+ *$py.class
10
+
11
+ # C extensions
12
+ *.so
13
+
14
+ # Distribution / packaging
15
+ .Python
16
+ build/
17
+ develop-eggs/
18
+ dist/
19
+ downloads/
20
+ eggs/
21
+ .eggs/
22
+ lib/
23
+ lib64/
24
+ parts/
25
+ sdist/
26
+ var/
27
+ wheels/
28
+ share/python-wheels/
29
+ *.egg-info/
30
+ .installed.cfg
31
+ *.egg
32
+ MANIFEST
33
+
34
+ # PyInstaller
35
+ # Usually these files are written by a python script from a template
36
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
37
+ *.manifest
38
+ *.spec
39
+
40
+ # Installer logs
41
+ pip-log.txt
42
+ pip-delete-this-directory.txt
43
+
44
+ # Unit test / coverage reports
45
+ htmlcov/
46
+ .tox/
47
+ .nox/
48
+ .coverage
49
+ .coverage.*
50
+ .cache
51
+ nosetests.xml
52
+ coverage.xml
53
+ *.cover
54
+ *.py,cover
55
+ .hypothesis/
56
+ .pytest_cache/
57
+ cover/
58
+
59
+ # Translations
60
+ *.mo
61
+ *.pot
62
+
63
+ # Django stuff:
64
+ *.log
65
+ local_settings.py
66
+ db.sqlite3
67
+ db.sqlite3-journal
68
+
69
+ # Flask stuff:
70
+ instance/
71
+ .webassets-cache
72
+
73
+ # Scrapy stuff:
74
+ .scrapy
75
+
76
+ # Sphinx documentation
77
+ docs/_build/
78
+
79
+ # PyBuilder
80
+ .pybuilder/
81
+ target/
82
+
83
+ # Jupyter Notebook
84
+ .ipynb_checkpoints
85
+
86
+ # IPython
87
+ profile_default/
88
+ ipython_config.py
89
+
90
+ # pyenv
91
+ # For a library or package, you might want to ignore these files since the code is
92
+ # intended to run in multiple environments; otherwise, check them in:
93
+ # .python-version
94
+
95
+ # pipenv
96
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
97
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
98
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
99
+ # install all needed dependencies.
100
+ #Pipfile.lock
101
+
102
+ # poetry
103
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
104
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
105
+ # commonly ignored for libraries.
106
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
107
+ #poetry.lock
108
+
109
+ # pdm
110
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
111
+ #pdm.lock
112
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
113
+ # in version control.
114
+ # https://pdm.fming.dev/#use-with-ide
115
+ .pdm.toml
116
+
117
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
118
+ __pypackages__/
119
+
120
+ # Celery stuff
121
+ celerybeat-schedule
122
+ celerybeat.pid
123
+
124
+ # SageMath parsed files
125
+ *.sage.py
126
+
127
+ # Environments
128
+ .env
129
+ .venv
130
+ env/
131
+ venv/
132
+ ENV/
133
+ env.bak/
134
+ venv.bak/
135
+
136
+ # Spyder project settings
137
+ .spyderproject
138
+ .spyproject
139
+
140
+ # Rope project settings
141
+ .ropeproject
142
+
143
+ # mkdocs documentation
144
+ /site
145
+
146
+ # mypy
147
+ .mypy_cache/
148
+ .dmypy.json
149
+ dmypy.json
150
+
151
+ # Pyre type checker
152
+ .pyre/
153
+
154
+ # pytype static type analyzer
155
+ .pytype/
156
+
157
+ # Cython debug symbols
158
+ cython_debug/
159
+
160
+ # PyCharm
161
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
162
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
163
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
164
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
165
+ #.idea/
166
+ .idea
@@ -0,0 +1,86 @@
1
+ # Code of Conduct
2
+
3
+ We are committed to fostering a welcoming, inclusive, and respectful environment for everyone involved in this project. This Code of Conduct outlines the expected behaviors within our community and the steps for reporting unacceptable actions. By participating, you agree to uphold these standards, helping to create a positive and collaborative space.
4
+
5
+ ---
6
+
7
+ ## Our Pledge
8
+
9
+ As members, contributors, and leaders of this community, we pledge to:
10
+
11
+ * Ensure participation in our project is free from harassment, discrimination, or exclusion.
12
+ * Treat everyone with respect and empathy, regardless of factors such as age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity or expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual orientation.
13
+ * Act in ways that contribute to a safe, welcoming, and supportive environment for all participants.
14
+
15
+ ---
16
+
17
+ ## Our Standards
18
+
19
+ We strive to create an environment where all members can thrive. Examples of positive behaviors include:
20
+
21
+ * Showing kindness, empathy, and consideration for others.
22
+ * Being respectful of differing opinions, experiences, and perspectives.
23
+ * Providing constructive feedback in a supportive manner.
24
+ * Taking responsibility for mistakes, apologizing when necessary, and learning from experiences.
25
+ * Prioritizing the success and well-being of the entire community over individual gains.
26
+
27
+ The following behaviors are considered unacceptable:
28
+
29
+ * Using sexualized language or imagery, or engaging in inappropriate sexual attention or advances.
30
+ * Making insulting, derogatory, or inflammatory comments, including trolling or personal attacks.
31
+ * Engaging in harassment, whether public or private.
32
+ * Publishing private or sensitive information about others without explicit consent.
33
+ * Engaging in behavior that disrupts discussions, events, or contributions in a negative way.
34
+ * Any conduct that could reasonably be deemed unprofessional or harmful to others.
35
+
36
+ ---
37
+
38
+ ## Scope
39
+
40
+ This Code of Conduct applies to all areas of interaction within the community, including but not limited to:
41
+
42
+ * Discussions on forums, repositories, or other official communication channels.
43
+ * Contributions made to the project, such as code, documentation, or issues.
44
+ * Public representation of the community, such as through official social media accounts or at events.
45
+
46
+ It also applies to actions outside these spaces if they negatively impact the health, safety, or inclusivity of the community.
47
+
48
+ ---
49
+
50
+ ## Enforcement Responsibilities
51
+
52
+ Community leaders are responsible for ensuring that this Code of Conduct is upheld. They may take appropriate and fair corrective actions in response to any behavior that violates these standards, including:
53
+
54
+ * Removing, editing, or rejecting comments, commits, issues, or other contributions not aligned with the Code of Conduct.
55
+ * Temporarily or permanently banning individuals for repeated or severe violations.
56
+
57
+ Leaders will always strive to communicate their decisions clearly and fairly.
58
+
59
+ ---
60
+
61
+ ## Reporting Issues
62
+
63
+ If you experience or witness unacceptable behavior, please report it to the project's owner [Roberto Rodriguez](https://www.linkedin.com/in/cyb3rward0g/). Your report will be handled with sensitivity, and we will respect your privacy and confidentiality while addressing the issue.
64
+
65
+ When reporting, please include:
66
+
67
+ * A description of the incident.
68
+ * When and where it occurred.
69
+ * Any additional context or supporting evidence, if available.
70
+
71
+ ---
72
+
73
+ ## Enforcement Process
74
+
75
+ We encourage resolving issues through dialogue when possible, but community leaders will intervene when necessary. Actions may include warnings, temporary bans, or permanent removal from the community, depending on the severity of the behavior.
76
+
77
+ ---
78
+
79
+ ## Attribution
80
+ This Code of Conduct is inspired by the [Contributor Covenant, version 2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html) and has drawn inspiration from open source community guidelines by Microsoft, Mozilla, and others.
81
+
82
+ For further context on best practices for open source codes of conduct, see the [Contributor Covenant FAQ](https://www.contributor-covenant.org/faq).
83
+
84
+ ---
85
+
86
+ Thank you for helping to create a positive environment! ❤️
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,57 @@
1
+ # Get all directories within quickstarts
2
+ QUICKSTART_DIRS := $(shell find quickstarts -mindepth 1 -maxdepth 1 -type d -exec basename {} \;)
3
+
4
+ # Main target to validate all quickstarts
5
+ .PHONY: validate-quickstarts
6
+ validate-quickstarts:
7
+ @echo "Validating all quickstart directories..."
8
+ @for dir in $(QUICKSTART_DIRS); do \
9
+ echo "\n=== Validating $$dir ==="; \
10
+ ( \
11
+ cd quickstarts && \
12
+ cd "$$dir" && \
13
+ if [ -f requirements.txt ]; then \
14
+ echo "Creating virtual environment for $$dir..." && \
15
+ python3 -m venv .venv && \
16
+ echo "Activating virtual environment and installing requirements..." && \
17
+ . .venv/bin/activate && \
18
+ pip install -r requirements.txt && \
19
+ USING_VENV=true; \
20
+ else \
21
+ echo "No requirements.txt found in $$dir, skipping virtual environment setup"; \
22
+ USING_VENV=false; \
23
+ fi && \
24
+ cd .. && \
25
+ echo "Running validation script for $$dir..." && \
26
+ ./validate.sh "$$dir"; \
27
+ RESULT=$$?; \
28
+ if [ "$$USING_VENV" = "true" ]; then \
29
+ cd "$$dir" && \
30
+ echo "Deactivating and cleaning up virtual environment..." && \
31
+ deactivate && \
32
+ rm -rf .venv; \
33
+ fi; \
34
+ exit $$RESULT; \
35
+ ); \
36
+ if [ $$? -ne 0 ]; then \
37
+ echo "Validation failed for $$dir. Stopping all validations."; \
38
+ exit 1; \
39
+ fi; \
40
+ sleep 1; \
41
+ done
42
+ @echo "\nAll validations completed successfully!"
43
+
44
+ # Useful for local development, with a single, controlled venv
45
+ .PHONY: validate-quickstarts-local
46
+ validate-quickstarts-local:
47
+ @echo "Validating all quickstart directories..."
48
+ @for dir in $(QUICKSTART_DIRS); do \
49
+ echo "\n=== Validating $$dir ==="; \
50
+ (cd quickstarts && ./validate.sh $$dir); \
51
+ if [ $$? -ne 0 ]; then \
52
+ echo "Validation failed for $$dir. Stopping all validations."; \
53
+ exit 1; \
54
+ fi; \
55
+ sleep 2; \
56
+ done
57
+ @echo "\nAll validations completed successfully!"