llm-function 0.0.1__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 (161) hide show
  1. llm_function-0.0.1/LICENSE +201 -0
  2. llm_function-0.0.1/NOTICE +4 -0
  3. llm_function-0.0.1/PKG-INFO +44 -0
  4. llm_function-0.0.1/README.md +26 -0
  5. llm_function-0.0.1/llm_function/.paa.tracking/.paa.config +12 -0
  6. llm_function-0.0.1/llm_function/.paa.tracking/.paa.version +1 -0
  7. llm_function-0.0.1/llm_function/.paa.tracking/git/dependencies/llm_func_deps/llm_function_config.py +35 -0
  8. llm_function-0.0.1/llm_function/.paa.tracking/git/dependencies/llm_func_deps/tool_registry.py +250 -0
  9. llm_function-0.0.1/llm_function/.paa.tracking/git/docs_cache/llm_function.md +0 -0
  10. llm_function-0.0.1/llm_function/.paa.tracking/git/module/llm_function.py +250 -0
  11. llm_function-0.0.1/llm_function/.paa.tracking/git/tracking/release_notes.md +5 -0
  12. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/COMMIT_EDITMSG +1 -0
  13. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/HEAD +1 -0
  14. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/config +8 -0
  15. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/description +1 -0
  16. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/hooks/applypatch-msg.sample +15 -0
  17. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/hooks/commit-msg.sample +24 -0
  18. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/hooks/fsmonitor-watchman.sample +174 -0
  19. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/hooks/post-update.sample +8 -0
  20. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/hooks/pre-applypatch.sample +14 -0
  21. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/hooks/pre-commit.sample +49 -0
  22. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/hooks/pre-merge-commit.sample +13 -0
  23. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/hooks/pre-push.sample +53 -0
  24. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/hooks/pre-rebase.sample +169 -0
  25. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/hooks/pre-receive.sample +24 -0
  26. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/hooks/prepare-commit-msg.sample +42 -0
  27. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/hooks/push-to-checkout.sample +78 -0
  28. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/hooks/sendemail-validate.sample +77 -0
  29. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/hooks/update.sample +128 -0
  30. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/index +0 -0
  31. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/info/exclude +6 -0
  32. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/logs/HEAD +1 -0
  33. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/logs/refs/heads/master +1 -0
  34. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/objects/13/9201e8ffeb4e42262e90eeaefd5267debb6e1d +1 -0
  35. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/objects/23/d10b479e3102724a6eb510225cc24bb2ce9d78 +0 -0
  36. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/objects/2d/fa3abff2848ff521ead3abb4364bd2c3ca01a6 +0 -0
  37. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/objects/45/6fc88abc846d76e0f82a3ef180425e497f8281 +0 -0
  38. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/objects/55/d196aad68e2cc20a2ea496529d9dabeb75bb0e +0 -0
  39. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/objects/63/9282ebc80b9db9b677374a7c16bc7472d5e71c +0 -0
  40. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/objects/91/f1d4c0830abe4ebb0902dc052f5dfe9e8fade7 +0 -0
  41. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/objects/9d/2a8151dd42e6abfffbbbd674b850a7066daa1a +0 -0
  42. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/objects/aa/0b3847c3f0683eed107a405b9443ec040c3eec +0 -0
  43. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/objects/cf/024b71ae427969a985d86a267adf154f526cd8 +0 -0
  44. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 +0 -0
  45. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/objects/fb/834f2f59b432c0688699b91926899c0e0f2a5d +0 -0
  46. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/refs/heads/master +1 -0
  47. llm_function-0.0.1/llm_function/.paa.tracking/git_repo/refs/tags/v0.0.1 +1 -0
  48. llm_function-0.0.1/llm_function/.paa.tracking/lsts_package_versions.yml +3 -0
  49. llm_function-0.0.1/llm_function/.paa.tracking/package_licenses.json +1 -0
  50. llm_function-0.0.1/llm_function/.paa.tracking/package_mapping.json +1 -0
  51. llm_function-0.0.1/llm_function/.paa.tracking/python_modules/components/llm_func_deps/llm_function_config.py +35 -0
  52. llm_function-0.0.1/llm_function/.paa.tracking/python_modules/components/llm_func_deps/tool_registry.py +250 -0
  53. llm_function-0.0.1/llm_function/.paa.tracking/python_modules/llm_function.py +250 -0
  54. llm_function-0.0.1/llm_function/.paa.tracking/release_notes.md +5 -0
  55. llm_function-0.0.1/llm_function/.paa.tracking/version_logs.csv +5 -0
  56. llm_function-0.0.1/llm_function/__init__.py +17 -0
  57. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git/dependencies/llm_func_deps/llm_function_config.py +35 -0
  58. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git/dependencies/llm_func_deps/tool_registry.py +250 -0
  59. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git/docs_cache/llm_function.md +0 -0
  60. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git/module/llm_function.py +250 -0
  61. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git/tracking/release_notes.md +5 -0
  62. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/COMMIT_EDITMSG +1 -0
  63. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/HEAD +1 -0
  64. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/config +8 -0
  65. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/description +1 -0
  66. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/hooks/applypatch-msg.sample +15 -0
  67. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/hooks/commit-msg.sample +24 -0
  68. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/hooks/fsmonitor-watchman.sample +174 -0
  69. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/hooks/post-update.sample +8 -0
  70. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/hooks/pre-applypatch.sample +14 -0
  71. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/hooks/pre-commit.sample +49 -0
  72. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/hooks/pre-merge-commit.sample +13 -0
  73. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/hooks/pre-push.sample +53 -0
  74. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/hooks/pre-rebase.sample +169 -0
  75. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/hooks/pre-receive.sample +24 -0
  76. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/hooks/prepare-commit-msg.sample +42 -0
  77. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/hooks/push-to-checkout.sample +78 -0
  78. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/hooks/sendemail-validate.sample +77 -0
  79. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/hooks/update.sample +128 -0
  80. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/index +0 -0
  81. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/info/exclude +6 -0
  82. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/logs/HEAD +1 -0
  83. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/logs/refs/heads/master +1 -0
  84. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/objects/13/9201e8ffeb4e42262e90eeaefd5267debb6e1d +1 -0
  85. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/objects/23/d10b479e3102724a6eb510225cc24bb2ce9d78 +0 -0
  86. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/objects/2d/fa3abff2848ff521ead3abb4364bd2c3ca01a6 +0 -0
  87. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/objects/45/6fc88abc846d76e0f82a3ef180425e497f8281 +0 -0
  88. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/objects/55/d196aad68e2cc20a2ea496529d9dabeb75bb0e +0 -0
  89. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/objects/63/9282ebc80b9db9b677374a7c16bc7472d5e71c +0 -0
  90. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/objects/91/f1d4c0830abe4ebb0902dc052f5dfe9e8fade7 +0 -0
  91. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/objects/9d/2a8151dd42e6abfffbbbd674b850a7066daa1a +0 -0
  92. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/objects/aa/0b3847c3f0683eed107a405b9443ec040c3eec +0 -0
  93. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/objects/cf/024b71ae427969a985d86a267adf154f526cd8 +0 -0
  94. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 +0 -0
  95. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/objects/fb/834f2f59b432c0688699b91926899c0e0f2a5d +0 -0
  96. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/refs/heads/master +1 -0
  97. llm_function-0.0.1/llm_function/artifacts/.paa.tracking/git_repo/refs/tags/v0.0.1 +1 -0
  98. llm_function-0.0.1/llm_function/llm_function.py +518 -0
  99. llm_function-0.0.1/llm_function/mkdocs/docs/css/extra.css +38 -0
  100. llm_function-0.0.1/llm_function/mkdocs/docs/index.md +24 -0
  101. llm_function-0.0.1/llm_function/mkdocs/docs/llm_function_tools.md +168 -0
  102. llm_function-0.0.1/llm_function/mkdocs/docs/release-notes.md +5 -0
  103. llm_function-0.0.1/llm_function/mkdocs/mkdocs.yml +37 -0
  104. llm_function-0.0.1/llm_function/mkdocs/site/404.html +370 -0
  105. llm_function-0.0.1/llm_function/mkdocs/site/assets/images/favicon.png +0 -0
  106. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/bundle.fe8b6f2b.min.js +29 -0
  107. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/bundle.fe8b6f2b.min.js.map +7 -0
  108. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.ar.min.js +1 -0
  109. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.da.min.js +18 -0
  110. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.de.min.js +18 -0
  111. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.du.min.js +18 -0
  112. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.el.min.js +1 -0
  113. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.es.min.js +18 -0
  114. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.fi.min.js +18 -0
  115. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.fr.min.js +18 -0
  116. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.he.min.js +1 -0
  117. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.hi.min.js +1 -0
  118. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.hu.min.js +18 -0
  119. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.hy.min.js +1 -0
  120. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.it.min.js +18 -0
  121. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.ja.min.js +1 -0
  122. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.jp.min.js +1 -0
  123. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.kn.min.js +1 -0
  124. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.ko.min.js +1 -0
  125. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.multi.min.js +1 -0
  126. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.nl.min.js +18 -0
  127. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.no.min.js +18 -0
  128. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.pt.min.js +18 -0
  129. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.ro.min.js +18 -0
  130. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.ru.min.js +18 -0
  131. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.sa.min.js +1 -0
  132. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.stemmer.support.min.js +1 -0
  133. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.sv.min.js +18 -0
  134. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.ta.min.js +1 -0
  135. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.te.min.js +1 -0
  136. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.th.min.js +1 -0
  137. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.tr.min.js +18 -0
  138. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.vi.min.js +1 -0
  139. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/min/lunr.zh.min.js +1 -0
  140. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/tinyseg.js +206 -0
  141. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/lunr/wordcut.js +6708 -0
  142. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/workers/search.b8dbb3d2.min.js +42 -0
  143. llm_function-0.0.1/llm_function/mkdocs/site/assets/javascripts/workers/search.b8dbb3d2.min.js.map +7 -0
  144. llm_function-0.0.1/llm_function/mkdocs/site/assets/stylesheets/main.3cba04c6.min.css +1 -0
  145. llm_function-0.0.1/llm_function/mkdocs/site/assets/stylesheets/main.3cba04c6.min.css.map +1 -0
  146. llm_function-0.0.1/llm_function/mkdocs/site/assets/stylesheets/palette.06af60db.min.css +1 -0
  147. llm_function-0.0.1/llm_function/mkdocs/site/assets/stylesheets/palette.06af60db.min.css.map +1 -0
  148. llm_function-0.0.1/llm_function/mkdocs/site/css/extra.css +38 -0
  149. llm_function-0.0.1/llm_function/mkdocs/site/index.html +476 -0
  150. llm_function-0.0.1/llm_function/mkdocs/site/llm_function_tools/index.html +622 -0
  151. llm_function-0.0.1/llm_function/mkdocs/site/release-notes/index.html +468 -0
  152. llm_function-0.0.1/llm_function/mkdocs/site/search/search_index.json +1 -0
  153. llm_function-0.0.1/llm_function/mkdocs/site/sitemap.xml +3 -0
  154. llm_function-0.0.1/llm_function/mkdocs/site/sitemap.xml.gz +0 -0
  155. llm_function-0.0.1/llm_function/setup.py +47 -0
  156. llm_function-0.0.1/llm_function.egg-info/PKG-INFO +44 -0
  157. llm_function-0.0.1/llm_function.egg-info/SOURCES.txt +159 -0
  158. llm_function-0.0.1/llm_function.egg-info/dependency_links.txt +1 -0
  159. llm_function-0.0.1/llm_function.egg-info/requires.txt +4 -0
  160. llm_function-0.0.1/llm_function.egg-info/top_level.txt +1 -0
  161. llm_function-0.0.1/setup.cfg +4 -0
@@ -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,4 @@
1
+ Workflow Auto Assembler
2
+ Copyright 2026 Kyrylo Mordan
3
+
4
+ Workflow Auto Assembler is a schema-guided workflow assembly tool powered by large language models.
@@ -0,0 +1,44 @@
1
+ Metadata-Version: 2.4
2
+ Name: llm_function
3
+ Version: 0.0.1
4
+ Summary: Llm function is a decorator that uses llm to assemble reusable workflows from available tools to match input and output models.
5
+ Home-page: https://kiril-mordan.github.io/adaptive-reusables/llm-function/
6
+ Author: Kyrylo Mordan
7
+ Author-email: parachute.repo@gmail.com
8
+ License: apache-2.0
9
+ Keywords: aa-paa-tool
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ License-File: NOTICE
14
+ Requires-Dist: pydantic
15
+ Requires-Dist: workflow_auto_assembler
16
+ Requires-Dist: attrsx
17
+ Requires-Dist: attrs
18
+ Dynamic: author
19
+ Dynamic: author-email
20
+ Dynamic: classifier
21
+ Dynamic: description
22
+ Dynamic: description-content-type
23
+ Dynamic: home-page
24
+ Dynamic: keywords
25
+ Dynamic: license
26
+ Dynamic: license-file
27
+ Dynamic: requires-dist
28
+ Dynamic: summary
29
+
30
+ # Llm function
31
+
32
+ `llm_function` helps you build reusable LLM functions with normal Python signatures.
33
+
34
+ You define a function with Pydantic input and output models, describe what it should do
35
+ in the docstring, and provide a set of available tools. At runtime, `llm_function`
36
+ uses [`workflow_auto_assembler`](https://pypi.org/project/workflow-auto-assembler/) to
37
+ assemble and execute a workflow that satisfies that typed function contract.
38
+
39
+ The result is an LLM-backed function that can be reused like any other Python function,
40
+ while still being grounded in explicit tools, schemas, and config.
41
+
42
+ Tool definition and discovery live in
43
+ [`llm_function_tools`](https://pypi.org/project/llm-function-tools/).
44
+
@@ -0,0 +1,26 @@
1
+ # Adaptive Tooling
2
+
3
+ This repository helps automate the development and deployment of Python packages to PyPI using GitHub workflows.
4
+
5
+ It is an instance of a Python Packaging Repository (PPR) created using the [`package-auto-assembler`](https://kiril-mordan.github.io/reusables/package_auto_assembler/) packaging tool.
6
+
7
+ Instructions about basic usage of this style of repository are available in [`package-auto-assembler` documentation](https://kiril-mordan.github.io/reusables/package_auto_assembler/python_packaging_repo/#basic-usage).
8
+
9
+
10
+ ---
11
+
12
+ ## Goal
13
+
14
+ This repository contains experimental, potentially reusable tooling built
15
+ around large language models. It exists to explore the author's ideas about LLM-based tooling.
16
+
17
+ ---
18
+
19
+
20
+ ## Packages
21
+
22
+
23
+ Links to the extended documentation of packaged modules, available through gh-pages:
24
+
25
+ - [![MkDocs](https://img.shields.io/static/v1?label=&message=Llm-function-tools&color=darkgreen&logo=mkdocs)](https://kiril-mordan.github.io/adaptive-reusables/llm_function_tools) [![PyPiVersion](https://img.shields.io/pypi/v/llm-function-tools)](https://pypi.org/project/llm-function-tools/)
26
+ - [![MkDocs](https://img.shields.io/static/v1?label=&message=Workflow-auto-assembler&color=darkgreen&logo=mkdocs)](https://kiril-mordan.github.io/adaptive-reusables/workflow_auto_assembler) [![PyPiVersion](https://img.shields.io/pypi/v/workflow-auto-assembler)](https://pypi.org/project/workflow-auto-assembler/)
@@ -0,0 +1,12 @@
1
+ use_commit_messages: true
2
+ check_vulnerabilities: true
3
+ check_dependencies_licenses: false
4
+ add_artifacts: true
5
+ add_mkdocs_site: true
6
+ pylint_threshold: 8.0
7
+ license_label: 'apache-2.0'
8
+ allowed_licenses: ['mit', 'apache-2.0', 'lgpl-3.0',
9
+ 'bsd-3-clause', 'bsd-2-clause', '-', 'mpl-2.0']
10
+ gh_pages_base_url: https://kiril-mordan.github.io/adaptive-reusables
11
+ source_repo_url: https://github.com/Kiril-Mordan/adaptive-reusables
12
+ source_repo_name: adaptive-reusables
@@ -0,0 +1,35 @@
1
+ """
2
+ Config models for llm_function runtime wiring.
3
+ """
4
+
5
+ from typing import Any, Optional, Sequence
6
+
7
+ from pydantic import BaseModel, Field
8
+
9
+
10
+ class LlmRuntimeConfig(BaseModel):
11
+ """
12
+ Reusable runtime settings for llm_function execution.
13
+ """
14
+
15
+ llm_handler_params: dict = Field(description="Parameters passed to WorkflowAutoAssembler LLM handler.")
16
+ storage_path: Optional[str] = Field(default=None, description="Optional storage path for workflow persistence.")
17
+ force_replan: bool = Field(default=False, description="Force workflow replanning instead of reusing cached workflows.")
18
+ max_retry: Optional[int] = Field(default=None, description="Optional max retry override for planning loops.")
19
+ reset_loops: Optional[int] = Field(default=None, description="Optional reset loop override for planning loops.")
20
+ compare_params: Optional[dict] = Field(default=None, description="Optional compare parameters for workflow validation.")
21
+ test_params: Optional[list] = Field(default=None, description="Optional test cases for planning/validation.")
22
+
23
+
24
+ class LlmFunctionConfig(BaseModel):
25
+ """
26
+ Bundled llm_function configuration for future config-driven decorator usage.
27
+ """
28
+
29
+ runtime: LlmRuntimeConfig = Field(description="Runtime settings for workflow execution.")
30
+ tool_sources: Optional[Sequence[Any]] = Field(default=None, description="Configured tool sources for runtime loading.")
31
+ tool_registry: Optional[Any] = Field(default=None, description="Optional prebuilt tool registry.")
32
+
33
+ model_config = {
34
+ "arbitrary_types_allowed": True,
35
+ }
@@ -0,0 +1,250 @@
1
+ """
2
+ Runtime tool loading helpers for llm_function.
3
+ """
4
+
5
+ import attrs
6
+ import attrsx
7
+ import inspect
8
+ from pathlib import Path
9
+ from typing import Any, Callable, Dict, List, Optional, Sequence, Union
10
+
11
+ from pydantic import BaseModel, Field, SkipValidation
12
+ from workflow_auto_assembler import LlmFunctionItem, make_uid
13
+
14
+ from llm_function_tools import (
15
+ ToolSpec,
16
+ load_tools_from_module,
17
+ load_tools_from_python_file,
18
+ tool_from_callable,
19
+ )
20
+
21
+
22
+ class ResolvedTool(BaseModel):
23
+ """
24
+ Runtime-ready tool definition with provenance metadata.
25
+ """
26
+
27
+ tool_spec: ToolSpec = Field(description="Normalized tool definition.")
28
+ func: SkipValidation[Callable[..., Any]] = Field(description="Runtime callable for the tool.")
29
+ source_type: str = Field(description="Source kind, for example file or module.")
30
+ location_type: str = Field(description="Location kind, for example local or external.")
31
+ package_name: Optional[str] = Field(default=None, description="Optional package name.")
32
+ package_version: Optional[str] = Field(default=None, description="Optional resolved package version.")
33
+ module_name: Optional[str] = Field(default=None, description="Python module that defined the tool.")
34
+ file_path: Optional[str] = Field(default=None, description="Local file path when the tool was loaded from a file.")
35
+ origin_ref: Optional[str] = Field(default=None, description="Original source reference used to load the tool.")
36
+ metadata: dict = Field(default_factory=dict, description="Additional runtime metadata.")
37
+
38
+ model_config = {
39
+ "arbitrary_types_allowed": True,
40
+ }
41
+
42
+
43
+ @attrsx.define
44
+ class InMemoryToolSource:
45
+ """
46
+ Resolve tools directly from callables, ToolSpec objects, or ResolvedTool objects.
47
+ """
48
+
49
+ tools: Sequence[Union[Callable[..., Any], ToolSpec, ResolvedTool]] = attrs.field()
50
+ location_type: str = attrs.field(default="local")
51
+ package_name: Optional[str] = attrs.field(default=None)
52
+ package_version: Optional[str] = attrs.field(default=None)
53
+ origin_ref: Optional[str] = attrs.field(default=None)
54
+
55
+ def __attrs_post_init__(self):
56
+ self.tools = list(self.tools)
57
+
58
+ def load_tools(self) -> List[ResolvedTool]:
59
+ """
60
+ Resolve in-memory tools into runtime tool records.
61
+ """
62
+
63
+ resolved_tools: List[ResolvedTool] = []
64
+ for item in self.tools:
65
+ if isinstance(item, ResolvedTool):
66
+ resolved_tools.append(item)
67
+ continue
68
+
69
+ tool_spec = item if isinstance(item, ToolSpec) else tool_from_callable(item)
70
+ resolved_tools.append(
71
+ ResolvedTool(
72
+ tool_spec=tool_spec,
73
+ func=tool_spec.func,
74
+ source_type="memory",
75
+ location_type=self.location_type,
76
+ package_name=self.package_name,
77
+ package_version=self.package_version,
78
+ module_name=getattr(tool_spec.func, "__module__", None),
79
+ origin_ref=self.origin_ref,
80
+ )
81
+ )
82
+
83
+ return resolved_tools
84
+
85
+
86
+ @attrsx.define
87
+ class PythonModuleToolSource:
88
+ """
89
+ Resolve tools from an importable Python module.
90
+ """
91
+
92
+ module_name: str = attrs.field()
93
+ include_plain_typed: bool = attrs.field(default=False)
94
+ location_type: str = attrs.field(default="local")
95
+ package_name: Optional[str] = attrs.field(default=None)
96
+ package_version: Optional[str] = attrs.field(default=None)
97
+
98
+ def load_tools(self) -> List[ResolvedTool]:
99
+ """
100
+ Import module and resolve tools declared inside it.
101
+ """
102
+
103
+ resolved_tools: List[ResolvedTool] = []
104
+ for tool_spec in load_tools_from_module(
105
+ self.module_name,
106
+ include_plain_typed=self.include_plain_typed,
107
+ ):
108
+ resolved_tools.append(
109
+ ResolvedTool(
110
+ tool_spec=tool_spec,
111
+ func=tool_spec.func,
112
+ source_type="module",
113
+ location_type=self.location_type,
114
+ package_name=self.package_name,
115
+ package_version=self.package_version,
116
+ module_name=self.module_name,
117
+ origin_ref=self.module_name,
118
+ )
119
+ )
120
+
121
+ return resolved_tools
122
+
123
+
124
+ @attrsx.define
125
+ class PythonFileToolSource:
126
+ """
127
+ Resolve tools from a standalone Python file path.
128
+ """
129
+
130
+ file_path: str = attrs.field()
131
+ include_plain_typed: bool = attrs.field(default=False)
132
+ location_type: str = attrs.field(default="local")
133
+ package_name: Optional[str] = attrs.field(default=None)
134
+ package_version: Optional[str] = attrs.field(default=None)
135
+ module_name: Optional[str] = attrs.field(default=None)
136
+
137
+ def load_tools(self) -> List[ResolvedTool]:
138
+ """
139
+ Import file and resolve tools declared inside it.
140
+ """
141
+
142
+ resolved_path = str(Path(self.file_path).expanduser().resolve())
143
+ resolved_tools: List[ResolvedTool] = []
144
+ for tool_spec in load_tools_from_python_file(
145
+ resolved_path,
146
+ include_plain_typed=self.include_plain_typed,
147
+ module_name=self.module_name,
148
+ ):
149
+ resolved_tools.append(
150
+ ResolvedTool(
151
+ tool_spec=tool_spec,
152
+ func=tool_spec.func,
153
+ source_type="file",
154
+ location_type=self.location_type,
155
+ package_name=self.package_name,
156
+ package_version=self.package_version,
157
+ module_name=getattr(tool_spec.func, "__module__", self.module_name),
158
+ file_path=resolved_path,
159
+ origin_ref=resolved_path,
160
+ )
161
+ )
162
+
163
+ return resolved_tools
164
+
165
+
166
+ @attrsx.define
167
+ class ToolRegistry:
168
+ """
169
+ Aggregate tools from one or more sources and expose WAA-compatible tool lists.
170
+ """
171
+
172
+ sources: Sequence[object] = attrs.field()
173
+ _resolved_tools: Optional[List[ResolvedTool]] = attrs.field(default=None)
174
+
175
+ def __attrs_post_init__(self):
176
+ self.sources = list(self.sources)
177
+
178
+ def load_tools(self, reload: bool = False) -> List[ResolvedTool]:
179
+ """
180
+ Resolve all configured sources into runtime tools.
181
+ """
182
+
183
+ if self._resolved_tools is not None and not reload:
184
+ return list(self._resolved_tools)
185
+
186
+ resolved_tools: List[ResolvedTool] = []
187
+ seen_keys = set()
188
+
189
+ for source in self.sources:
190
+ for resolved_tool in source.load_tools():
191
+ dedupe_key = (
192
+ resolved_tool.tool_spec.name,
193
+ resolved_tool.module_name,
194
+ resolved_tool.file_path,
195
+ resolved_tool.package_name,
196
+ resolved_tool.package_version,
197
+ )
198
+ if dedupe_key in seen_keys:
199
+ continue
200
+ seen_keys.add(dedupe_key)
201
+ resolved_tools.append(resolved_tool)
202
+
203
+ self._resolved_tools = resolved_tools
204
+ return list(self._resolved_tools)
205
+
206
+ @staticmethod
207
+ def _safe_source_code(func: Callable[..., Any]) -> str:
208
+ """
209
+ Best-effort source capture for stable tool hashing.
210
+ """
211
+
212
+ try:
213
+ return inspect.getsource(func)
214
+ except (OSError, TypeError):
215
+ return getattr(func, "__qualname__", getattr(func, "__name__", ""))
216
+
217
+ def build_available_tools(self) -> Dict[str, Any]:
218
+ """
219
+ Convert resolved tools into WorkflowAutoAssembler-compatible structures.
220
+ """
221
+
222
+ available_functions: List[LlmFunctionItem] = []
223
+ available_callables: Dict[str, Callable[..., Any]] = {}
224
+
225
+ for resolved_tool in self.load_tools():
226
+ llm_func_item = {
227
+ "name": resolved_tool.tool_spec.name,
228
+ "description": resolved_tool.tool_spec.description,
229
+ "input_schema_json": resolved_tool.tool_spec.input_model.model_json_schema(),
230
+ "output_schema_json": resolved_tool.tool_spec.output_model.model_json_schema(),
231
+ "code": self._safe_source_code(resolved_tool.func),
232
+ }
233
+ func_id = make_uid(d=llm_func_item)
234
+
235
+ available_functions.append(
236
+ LlmFunctionItem(
237
+ func_id=func_id,
238
+ name=llm_func_item["name"],
239
+ description=llm_func_item["description"],
240
+ input_schema_json=llm_func_item["input_schema_json"],
241
+ output_schema_json=llm_func_item["output_schema_json"],
242
+ )
243
+ )
244
+ available_callables[func_id] = resolved_tool.func
245
+
246
+ return {
247
+ "available_functions": available_functions,
248
+ "available_callables": available_callables,
249
+ "resolved_tools": self.load_tools(),
250
+ }