@pikku/addon-ollama 0.1.1 → 0.1.3

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 (268) hide show
  1. package/.pikku/addon/pikku-addon-types.gen.ts +105 -0
  2. package/.pikku/addon/pikku-package.gen.ts +11 -0
  3. package/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
  4. package/.pikku/agent/pikku-agent-types.gen.ts +84 -0
  5. package/.pikku/channel/pikku-channel-types.gen.ts +177 -0
  6. package/.pikku/console/pikku-addon-meta.gen.json +61 -0
  7. package/.pikku/console/pikku-node-types.gen.ts +8 -0
  8. package/.pikku/function/pikku-function-types.gen.ts +797 -0
  9. package/.pikku/function/pikku-functions-meta-verbose.gen.json +126 -0
  10. package/.pikku/function/pikku-functions-meta.gen.json +102 -0
  11. package/.pikku/function/pikku-functions-meta.gen.ts +7 -0
  12. package/.pikku/function/pikku-functions.gen.ts +14 -0
  13. package/.pikku/http/pikku-http-types.gen.ts +119 -0
  14. package/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
  15. package/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
  16. package/.pikku/pikku-bootstrap.gen.ts +8 -0
  17. package/.pikku/pikku-meta-service.gen.ts +10 -0
  18. package/.pikku/pikku-services.gen.ts +50 -0
  19. package/.pikku/pikku-types.gen.ts +24 -0
  20. package/.pikku/queue/pikku-queue-types.gen.ts +27 -0
  21. package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +207 -0
  22. package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +211 -0
  23. package/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +207 -0
  24. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +6 -0
  25. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
  26. package/.pikku/scenarios/features.gen.json +1 -0
  27. package/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
  28. package/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
  29. package/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
  30. package/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
  31. package/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
  32. package/.pikku/scenarios/schemas/register.gen.ts +4 -0
  33. package/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
  34. package/.pikku/schemas/register.gen.ts +39 -0
  35. package/.pikku/schemas/schemas/OllamaEmbedInput.schema.json +1 -0
  36. package/.pikku/schemas/schemas/OllamaEmbedManyInput.schema.json +1 -0
  37. package/.pikku/schemas/schemas/OllamaEmbedManyOutput.schema.json +1 -0
  38. package/.pikku/schemas/schemas/OllamaEmbedOutput.schema.json +1 -0
  39. package/.pikku/schemas/schemas/OllamaGenerateObjectInput.schema.json +1 -0
  40. package/.pikku/schemas/schemas/OllamaGenerateObjectOutput.schema.json +1 -0
  41. package/.pikku/schemas/schemas/OllamaGenerateTextInput.schema.json +1 -0
  42. package/.pikku/schemas/schemas/OllamaGenerateTextOutput.schema.json +1 -0
  43. package/.pikku/schemas/schemas/VariableSchema_ollama_base_url.schema.json +1 -0
  44. package/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
  45. package/.pikku/scopes/pikku-personas.gen.ts +52 -0
  46. package/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
  47. package/.pikku/scopes/pikku-roles.gen.ts +41 -0
  48. package/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
  49. package/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
  50. package/.pikku/scopes/pikku-scopes.gen.ts +58 -0
  51. package/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
  52. package/.pikku/secrets/pikku-secrets-meta.gen.json +1 -0
  53. package/.pikku/secrets/pikku-secrets.gen.ts +34 -0
  54. package/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
  55. package/.pikku/variables/pikku-variable-types.gen.ts +5 -0
  56. package/.pikku/variables/pikku-variables-meta.gen.json +10 -0
  57. package/.pikku/variables/pikku-variables.gen.ts +36 -0
  58. package/.pikku/workflow/personas.gen.json +1 -0
  59. package/.pikku/workflow/pikku-personas.gen.ts +38 -0
  60. package/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
  61. package/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
  62. package/.pikku/workflow/pikku-workflow-types.gen.ts +591 -0
  63. package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
  64. package/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
  65. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +4 -4
  66. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
  67. package/dist/.pikku/addon/pikku-addon-types.gen.js +7 -3
  68. package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -1
  69. package/dist/.pikku/addon/pikku-addon-types.gen.ts +11 -6
  70. package/dist/.pikku/addon/pikku-package.gen.js +2 -1
  71. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  72. package/dist/.pikku/addon/pikku-package.gen.ts +3 -1
  73. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +2 -14
  74. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +8 -6
  75. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
  76. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
  77. package/dist/.pikku/agent/pikku-agent-types.gen.ts +15 -7
  78. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
  79. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
  80. package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
  81. package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
  82. package/dist/.pikku/channel/pikku-channel-types.gen.ts +177 -0
  83. package/dist/.pikku/console/pikku-addon-meta.gen.json +31 -28
  84. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  85. package/dist/.pikku/console/pikku-node-types.gen.ts +1 -1
  86. package/dist/.pikku/function/pikku-function-types.gen.d.ts +133 -133
  87. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  88. package/dist/.pikku/function/pikku-function-types.gen.js +98 -61
  89. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  90. package/dist/.pikku/function/pikku-function-types.gen.ts +268 -157
  91. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +64 -44
  92. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  93. package/dist/.pikku/function/pikku-functions-meta.gen.json +67 -39
  94. package/dist/.pikku/function/pikku-functions-meta.gen.ts +1 -1
  95. package/dist/.pikku/function/pikku-functions.gen.js +2 -2
  96. package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
  97. package/dist/.pikku/function/pikku-functions.gen.ts +2 -2
  98. package/dist/.pikku/http/pikku-http-types.gen.d.ts +98 -0
  99. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
  100. package/dist/.pikku/http/pikku-http-types.gen.js +50 -0
  101. package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
  102. package/dist/.pikku/http/pikku-http-types.gen.ts +119 -0
  103. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
  104. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
  105. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
  106. package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
  107. package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
  108. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +10 -0
  109. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
  110. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +10 -0
  111. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +1 -0
  112. package/dist/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
  113. package/dist/.pikku/pikku-bootstrap.gen.d.ts +4 -2
  114. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
  115. package/dist/.pikku/pikku-bootstrap.gen.js +2 -10
  116. package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
  117. package/dist/.pikku/pikku-bootstrap.gen.ts +2 -9
  118. package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
  119. package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
  120. package/dist/.pikku/pikku-meta-service.gen.js +10 -0
  121. package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
  122. package/dist/.pikku/pikku-meta-service.gen.ts +10 -0
  123. package/dist/.pikku/pikku-services.gen.d.ts +15 -2
  124. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  125. package/dist/.pikku/pikku-services.gen.js +14 -0
  126. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  127. package/dist/.pikku/pikku-services.gen.ts +17 -2
  128. package/dist/.pikku/pikku-types.gen.d.ts +2 -1
  129. package/dist/.pikku/pikku-types.gen.d.ts.map +1 -1
  130. package/dist/.pikku/pikku-types.gen.js +3 -1
  131. package/dist/.pikku/pikku-types.gen.js.map +1 -1
  132. package/dist/.pikku/pikku-types.gen.ts +4 -1
  133. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
  134. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
  135. package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
  136. package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
  137. package/dist/.pikku/queue/pikku-queue-types.gen.ts +27 -0
  138. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +81 -62
  139. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +84 -65
  140. package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +207 -0
  141. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
  142. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
  143. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
  144. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
  145. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +6 -0
  146. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
  147. package/dist/.pikku/scenarios/features.gen.json +1 -0
  148. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +2 -0
  149. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
  150. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +11 -0
  151. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
  152. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
  153. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
  154. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
  155. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
  156. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js +2 -0
  157. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +1 -0
  158. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
  159. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +2 -0
  160. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
  161. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +11 -0
  162. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
  163. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
  164. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
  165. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
  166. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js +2 -0
  167. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
  168. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
  169. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +5 -0
  170. package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +1 -0
  171. package/dist/.pikku/scenarios/schemas/register.gen.js +5 -0
  172. package/dist/.pikku/scenarios/schemas/register.gen.js.map +1 -0
  173. package/dist/.pikku/scenarios/schemas/register.gen.ts +4 -0
  174. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
  175. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
  176. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
  177. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
  178. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
  179. package/dist/.pikku/schemas/register.gen.js +11 -11
  180. package/dist/.pikku/schemas/register.gen.js.map +1 -1
  181. package/dist/.pikku/schemas/register.gen.ts +17 -17
  182. package/dist/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
  183. package/dist/.pikku/scopes/pikku-personas.gen.d.ts +37 -0
  184. package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +1 -0
  185. package/dist/.pikku/scopes/pikku-personas.gen.js +18 -0
  186. package/dist/.pikku/scopes/pikku-personas.gen.js.map +1 -0
  187. package/dist/.pikku/scopes/pikku-personas.gen.ts +52 -0
  188. package/dist/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
  189. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +31 -0
  190. package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +1 -0
  191. package/dist/.pikku/scopes/pikku-roles.gen.js +19 -0
  192. package/dist/.pikku/scopes/pikku-roles.gen.js.map +1 -0
  193. package/dist/.pikku/scopes/pikku-roles.gen.ts +41 -0
  194. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +8 -0
  195. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +1 -0
  196. package/dist/.pikku/scopes/pikku-scope-types.gen.js +6 -0
  197. package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +1 -0
  198. package/dist/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
  199. package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
  200. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +36 -0
  201. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -0
  202. package/dist/.pikku/scopes/pikku-scopes.gen.js +28 -0
  203. package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -0
  204. package/dist/.pikku/scopes/pikku-scopes.gen.ts +58 -0
  205. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +2 -2
  206. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -1
  207. package/dist/.pikku/secrets/pikku-secret-types.gen.js +2 -2
  208. package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -1
  209. package/dist/.pikku/secrets/pikku-secret-types.gen.ts +2 -2
  210. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +11 -1
  211. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -1
  212. package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -1
  213. package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -1
  214. package/dist/.pikku/secrets/pikku-secrets.gen.ts +14 -1
  215. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  216. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  217. package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
  218. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +2 -2
  219. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -1
  220. package/dist/.pikku/variables/pikku-variable-types.gen.js +2 -2
  221. package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -1
  222. package/dist/.pikku/variables/pikku-variable-types.gen.ts +2 -2
  223. package/dist/.pikku/variables/pikku-variables.gen.d.ts +11 -1
  224. package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -1
  225. package/dist/.pikku/variables/pikku-variables.gen.js +14 -4
  226. package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -1
  227. package/dist/.pikku/variables/pikku-variables.gen.ts +17 -4
  228. package/dist/.pikku/workflow/personas.gen.json +1 -0
  229. package/dist/.pikku/workflow/pikku-personas.gen.d.ts +16 -0
  230. package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +1 -0
  231. package/dist/.pikku/workflow/pikku-personas.gen.js +18 -0
  232. package/dist/.pikku/workflow/pikku-personas.gen.js.map +1 -0
  233. package/dist/.pikku/workflow/pikku-personas.gen.ts +38 -0
  234. package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
  235. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +9 -5
  236. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +289 -31
  237. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  238. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +66 -18
  239. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  240. package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +494 -61
  241. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  242. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
  243. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +3 -3
  244. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  245. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  246. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
  247. package/dist/src/functions/embeddings/embed-many.function.d.ts +2 -2
  248. package/dist/src/functions/embeddings/embed-many.function.d.ts.map +1 -1
  249. package/dist/src/functions/embeddings/embed.function.d.ts +2 -2
  250. package/dist/src/functions/embeddings/embed.function.d.ts.map +1 -1
  251. package/dist/src/functions/text/generate-object.function.d.ts +7 -7
  252. package/dist/src/functions/text/generate-object.function.d.ts.map +1 -1
  253. package/dist/src/functions/text/generate.function.d.ts +2 -2
  254. package/dist/src/functions/text/generate.function.d.ts.map +1 -1
  255. package/dist/src/ollama.variable.js +2 -2
  256. package/dist/src/ollama.variable.js.map +1 -1
  257. package/package.json +7 -6
  258. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts +0 -2
  259. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts.map +0 -1
  260. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js +0 -7
  261. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js.map +0 -1
  262. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
  263. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.ts +0 -7
  264. package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts +0 -5
  265. package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts.map +0 -1
  266. package/dist/.pikku/agent/pikku-agent-wirings.gen.js +0 -5
  267. package/dist/.pikku/agent/pikku-agent-wirings.gen.js.map +0 -1
  268. package/dist/.pikku/agent/pikku-agent-wirings.gen.ts +0 -3
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.96
3
+ */
4
+ /**
5
+ * Queue-specific type definitions for tree-shaking optimization
6
+ */
7
+
8
+ import { CoreQueueWorker, wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue'
9
+ import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
10
+
11
+ /**
12
+ * Type definition for queue workers that process background jobs.
13
+ *
14
+ * @template In - Input type for the queue job
15
+ * @template Out - Output type for the queue job
16
+ */
17
+ type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>
18
+
19
+ /**
20
+ * Registers a queue worker with the Pikku framework.
21
+ * Workers process background jobs from queues.
22
+ *
23
+ * @param queueWorker - Queue worker definition with job handler
24
+ */
25
+ export const wireQueueWorker = (queueWorker: QueueWiring<any, any>) => {
26
+ wireQueueWorkerCore(queueWorker as any)
27
+ }
@@ -0,0 +1,207 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.96
3
+ */
4
+ /**
5
+ * This provides the structure needed for typescript to be aware of RPCs and their return types
6
+ */
7
+
8
+
9
+
10
+
11
+
12
+ export type OllamaEmbedInput = {
13
+ /** The Ollama embedding model to use (e.g. "nomic-embed-text", "mxbai-embed-large") */
14
+ model: string;
15
+ /** The text to embed */
16
+ value: string;
17
+ }
18
+ export type OllamaEmbedManyInput = {
19
+ /** The Ollama embedding model to use (e.g. "nomic-embed-text", "mxbai-embed-large") */
20
+ model: string;
21
+ /** The texts to embed */
22
+ values: string[];
23
+ }
24
+ export type OllamaEmbedManyOutput = {
25
+ /** The embedding vectors */
26
+ embeddings: number[][];
27
+ /** Token usage statistics */
28
+ usage: {
29
+ /** Number of tokens used */
30
+ tokens: number;
31
+ };
32
+ }
33
+ export type OllamaEmbedOutput = {
34
+ /** The embedding vector */
35
+ embedding: number[];
36
+ /** Token usage statistics */
37
+ usage: {
38
+ /** Number of tokens used */
39
+ tokens: number;
40
+ };
41
+ }
42
+ export type OllamaGenerateObjectInput = {
43
+ /** The Ollama model to use (e.g. "llama3.2", "phi3:mini") */
44
+ model: string;
45
+ /** The prompt to generate a structured object from */
46
+ prompt?: string | undefined;
47
+ /** A list of messages comprising the conversation so far */
48
+ messages?: {
49
+ /** The role of the message author */
50
+ role: "system" | "user" | "assistant";
51
+ /** The contents of the message */
52
+ content: string;
53
+ }[] | undefined;
54
+ /** System message to set the behavior of the model */
55
+ system?: string | undefined;
56
+ /** JSON Schema describing the expected output object */
57
+ schema: {
58
+ [key: string]: any;
59
+ };
60
+ /** Optional name for the schema */
61
+ schemaName?: string | undefined;
62
+ /** Optional description of what the schema represents */
63
+ schemaDescription?: string | undefined;
64
+ /** Mode for object generation. Use "json" for models that do not support tools. */
65
+ mode?: ("auto" | "tool" | "json") | undefined;
66
+ /** Maximum number of tokens to generate */
67
+ maxTokens?: number | undefined;
68
+ /** Sampling temperature between 0 and 2 */
69
+ temperature?: number | undefined;
70
+ }
71
+ export type OllamaGenerateObjectOutput = {
72
+ /** The generated structured object */
73
+ object: any;
74
+ /** The reason the model stopped generating */
75
+ finishReason: string;
76
+ /** Token usage statistics */
77
+ usage: {
78
+ /** Number of tokens in the prompt */
79
+ promptTokens: number;
80
+ /** Number of tokens in the completion */
81
+ completionTokens: number;
82
+ /** Total number of tokens used */
83
+ totalTokens: number;
84
+ };
85
+ }
86
+ export type OllamaGenerateTextInput = {
87
+ /** The Ollama model to use (e.g. "llama3.2", "phi3:mini") */
88
+ model: string;
89
+ /** The prompt to generate text from */
90
+ prompt?: string | undefined;
91
+ /** A list of messages comprising the conversation so far */
92
+ messages?: {
93
+ /** The role of the message author */
94
+ role: "system" | "user" | "assistant";
95
+ /** The contents of the message */
96
+ content: string;
97
+ }[] | undefined;
98
+ /** System message to set the behavior of the model */
99
+ system?: string | undefined;
100
+ /** Maximum number of tokens to generate */
101
+ maxTokens?: number | undefined;
102
+ /** Sampling temperature between 0 and 2 */
103
+ temperature?: number | undefined;
104
+ /** Nucleus sampling parameter */
105
+ topP?: number | undefined;
106
+ /** Random seed for reproducible results */
107
+ seed?: number | undefined;
108
+ }
109
+ export type OllamaGenerateTextOutput = {
110
+ /** The generated text */
111
+ text: string;
112
+ /** The reason the model stopped generating */
113
+ finishReason: string;
114
+ /** Token usage statistics */
115
+ usage: {
116
+ /** Number of tokens in the prompt */
117
+ promptTokens: number;
118
+ /** Number of tokens in the completion */
119
+ completionTokens: number;
120
+ /** Total number of tokens used */
121
+ totalTokens: number;
122
+ };
123
+ }
124
+ export type VariableSchema_ollama_base_url = string
125
+
126
+ interface RPCHandler<I, O> {
127
+ input: I;
128
+ output: O;
129
+ }
130
+
131
+ export type RPCMap = {
132
+ };
133
+
134
+
135
+
136
+ // No addon packages, use RPCMap directly
137
+ export type FlattenedRPCMap = RPCMap
138
+
139
+ type IsAny<T> = 0 extends (1 & T) ? true : false
140
+ type IsVoidishInput<T> = IsAny<T> extends true
141
+ ? false
142
+ : [T] extends [void | null | undefined]
143
+ ? true
144
+ : false
145
+
146
+
147
+ export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
148
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
149
+ ? [name: Name]
150
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
151
+ ) => Promise<FlattenedRPCMap[Name]['output']>
152
+
153
+ export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
154
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
155
+ ? [name: Name]
156
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
157
+ ) => Promise<FlattenedRPCMap[Name]['output']>
158
+
159
+ import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
160
+
161
+ import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
162
+
163
+
164
+ type FlattenedAgentMap = AgentMap
165
+
166
+
167
+ import type { PikkuRPC } from '@pikku/core/rpc'
168
+
169
+ interface AIAgentInput {
170
+ message: string
171
+ threadId: string
172
+ resourceId: string
173
+ }
174
+
175
+ export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
176
+ name: Name,
177
+ input: FlattenedWorkflowMap[Name]['input'],
178
+ options?: { startNode?: string }
179
+ ) => Promise<{ runId: string }>
180
+
181
+ export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
182
+ name: Name,
183
+ input: FlattenedWorkflowMap[Name]['input']
184
+ ) => Promise<FlattenedWorkflowMap[Name]['output']>
185
+
186
+ export type TypedWorkflowStatus = (
187
+ workflowName: string,
188
+ runId: string
189
+ ) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
190
+
191
+ type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
192
+ ? (name: string, input: AIAgentInput) => Promise<any>
193
+ : <Name extends keyof FlattenedAgentMap>(
194
+ name: Name,
195
+ input: AIAgentInput
196
+ ) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
197
+
198
+ type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
199
+ ? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
200
+ : <Name extends keyof FlattenedAgentMap>(
201
+ name: Name,
202
+ input: AIAgentInput,
203
+ options?: { requiresToolApproval?: 'all' | 'explicit' | false }
204
+ ) => Promise<void>
205
+
206
+ export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
207
+
@@ -0,0 +1,211 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.96
3
+ */
4
+ /**
5
+ * This provides the structure needed for typescript to be aware of RPCs and their return types
6
+ */
7
+
8
+
9
+
10
+
11
+
12
+ export type OllamaEmbedInput = {
13
+ /** The Ollama embedding model to use (e.g. "nomic-embed-text", "mxbai-embed-large") */
14
+ model: string;
15
+ /** The text to embed */
16
+ value: string;
17
+ }
18
+ export type OllamaEmbedManyInput = {
19
+ /** The Ollama embedding model to use (e.g. "nomic-embed-text", "mxbai-embed-large") */
20
+ model: string;
21
+ /** The texts to embed */
22
+ values: string[];
23
+ }
24
+ export type OllamaEmbedManyOutput = {
25
+ /** The embedding vectors */
26
+ embeddings: number[][];
27
+ /** Token usage statistics */
28
+ usage: {
29
+ /** Number of tokens used */
30
+ tokens: number;
31
+ };
32
+ }
33
+ export type OllamaEmbedOutput = {
34
+ /** The embedding vector */
35
+ embedding: number[];
36
+ /** Token usage statistics */
37
+ usage: {
38
+ /** Number of tokens used */
39
+ tokens: number;
40
+ };
41
+ }
42
+ export type OllamaGenerateObjectInput = {
43
+ /** The Ollama model to use (e.g. "llama3.2", "phi3:mini") */
44
+ model: string;
45
+ /** The prompt to generate a structured object from */
46
+ prompt?: string | undefined;
47
+ /** A list of messages comprising the conversation so far */
48
+ messages?: {
49
+ /** The role of the message author */
50
+ role: "system" | "user" | "assistant";
51
+ /** The contents of the message */
52
+ content: string;
53
+ }[] | undefined;
54
+ /** System message to set the behavior of the model */
55
+ system?: string | undefined;
56
+ /** JSON Schema describing the expected output object */
57
+ schema: {
58
+ [key: string]: any;
59
+ };
60
+ /** Optional name for the schema */
61
+ schemaName?: string | undefined;
62
+ /** Optional description of what the schema represents */
63
+ schemaDescription?: string | undefined;
64
+ /** Mode for object generation. Use "json" for models that do not support tools. */
65
+ mode?: ("auto" | "tool" | "json") | undefined;
66
+ /** Maximum number of tokens to generate */
67
+ maxTokens?: number | undefined;
68
+ /** Sampling temperature between 0 and 2 */
69
+ temperature?: number | undefined;
70
+ }
71
+ export type OllamaGenerateObjectOutput = {
72
+ /** The generated structured object */
73
+ object: any;
74
+ /** The reason the model stopped generating */
75
+ finishReason: string;
76
+ /** Token usage statistics */
77
+ usage: {
78
+ /** Number of tokens in the prompt */
79
+ promptTokens: number;
80
+ /** Number of tokens in the completion */
81
+ completionTokens: number;
82
+ /** Total number of tokens used */
83
+ totalTokens: number;
84
+ };
85
+ }
86
+ export type OllamaGenerateTextInput = {
87
+ /** The Ollama model to use (e.g. "llama3.2", "phi3:mini") */
88
+ model: string;
89
+ /** The prompt to generate text from */
90
+ prompt?: string | undefined;
91
+ /** A list of messages comprising the conversation so far */
92
+ messages?: {
93
+ /** The role of the message author */
94
+ role: "system" | "user" | "assistant";
95
+ /** The contents of the message */
96
+ content: string;
97
+ }[] | undefined;
98
+ /** System message to set the behavior of the model */
99
+ system?: string | undefined;
100
+ /** Maximum number of tokens to generate */
101
+ maxTokens?: number | undefined;
102
+ /** Sampling temperature between 0 and 2 */
103
+ temperature?: number | undefined;
104
+ /** Nucleus sampling parameter */
105
+ topP?: number | undefined;
106
+ /** Random seed for reproducible results */
107
+ seed?: number | undefined;
108
+ }
109
+ export type OllamaGenerateTextOutput = {
110
+ /** The generated text */
111
+ text: string;
112
+ /** The reason the model stopped generating */
113
+ finishReason: string;
114
+ /** Token usage statistics */
115
+ usage: {
116
+ /** Number of tokens in the prompt */
117
+ promptTokens: number;
118
+ /** Number of tokens in the completion */
119
+ completionTokens: number;
120
+ /** Total number of tokens used */
121
+ totalTokens: number;
122
+ };
123
+ }
124
+ export type VariableSchema_ollama_base_url = string
125
+
126
+ interface RPCHandler<I, O> {
127
+ input: I;
128
+ output: O;
129
+ }
130
+
131
+ export type RPCMap = {
132
+ readonly 'ollamaEmbedMany': RPCHandler<OllamaEmbedManyInput, OllamaEmbedManyOutput>,
133
+ readonly 'ollamaEmbed': RPCHandler<OllamaEmbedInput, OllamaEmbedOutput>,
134
+ readonly 'ollamaGenerateObject': RPCHandler<OllamaGenerateObjectInput, OllamaGenerateObjectOutput>,
135
+ readonly 'ollamaGenerateText': RPCHandler<OllamaGenerateTextInput, OllamaGenerateTextOutput>,
136
+ };
137
+
138
+
139
+
140
+ // No addon packages, use RPCMap directly
141
+ export type FlattenedRPCMap = RPCMap
142
+
143
+ type IsAny<T> = 0 extends (1 & T) ? true : false
144
+ type IsVoidishInput<T> = IsAny<T> extends true
145
+ ? false
146
+ : [T] extends [void | null | undefined]
147
+ ? true
148
+ : false
149
+
150
+
151
+ export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
152
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
153
+ ? [name: Name]
154
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
155
+ ) => Promise<FlattenedRPCMap[Name]['output']>
156
+
157
+ export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
158
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
159
+ ? [name: Name]
160
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
161
+ ) => Promise<FlattenedRPCMap[Name]['output']>
162
+
163
+ import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
164
+
165
+ import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
166
+
167
+
168
+ type FlattenedAgentMap = AgentMap
169
+
170
+
171
+ import type { PikkuRPC } from '@pikku/core/rpc'
172
+
173
+ interface AIAgentInput {
174
+ message: string
175
+ threadId: string
176
+ resourceId: string
177
+ }
178
+
179
+ export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
180
+ name: Name,
181
+ input: FlattenedWorkflowMap[Name]['input'],
182
+ options?: { startNode?: string }
183
+ ) => Promise<{ runId: string }>
184
+
185
+ export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
186
+ name: Name,
187
+ input: FlattenedWorkflowMap[Name]['input']
188
+ ) => Promise<FlattenedWorkflowMap[Name]['output']>
189
+
190
+ export type TypedWorkflowStatus = (
191
+ workflowName: string,
192
+ runId: string
193
+ ) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
194
+
195
+ type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
196
+ ? (name: string, input: AIAgentInput) => Promise<any>
197
+ : <Name extends keyof FlattenedAgentMap>(
198
+ name: Name,
199
+ input: AIAgentInput
200
+ ) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
201
+
202
+ type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
203
+ ? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
204
+ : <Name extends keyof FlattenedAgentMap>(
205
+ name: Name,
206
+ input: AIAgentInput,
207
+ options?: { requiresToolApproval?: 'all' | 'explicit' | false }
208
+ ) => Promise<void>
209
+
210
+ export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
211
+
@@ -0,0 +1,207 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.96
3
+ */
4
+ /**
5
+ * This provides the structure needed for typescript to be aware of RPCs and their return types
6
+ */
7
+
8
+
9
+
10
+
11
+
12
+ export type OllamaEmbedInput = {
13
+ /** The Ollama embedding model to use (e.g. "nomic-embed-text", "mxbai-embed-large") */
14
+ model: string;
15
+ /** The text to embed */
16
+ value: string;
17
+ }
18
+ export type OllamaEmbedManyInput = {
19
+ /** The Ollama embedding model to use (e.g. "nomic-embed-text", "mxbai-embed-large") */
20
+ model: string;
21
+ /** The texts to embed */
22
+ values: string[];
23
+ }
24
+ export type OllamaEmbedManyOutput = {
25
+ /** The embedding vectors */
26
+ embeddings: number[][];
27
+ /** Token usage statistics */
28
+ usage: {
29
+ /** Number of tokens used */
30
+ tokens: number;
31
+ };
32
+ }
33
+ export type OllamaEmbedOutput = {
34
+ /** The embedding vector */
35
+ embedding: number[];
36
+ /** Token usage statistics */
37
+ usage: {
38
+ /** Number of tokens used */
39
+ tokens: number;
40
+ };
41
+ }
42
+ export type OllamaGenerateObjectInput = {
43
+ /** The Ollama model to use (e.g. "llama3.2", "phi3:mini") */
44
+ model: string;
45
+ /** The prompt to generate a structured object from */
46
+ prompt?: string | undefined;
47
+ /** A list of messages comprising the conversation so far */
48
+ messages?: {
49
+ /** The role of the message author */
50
+ role: "system" | "user" | "assistant";
51
+ /** The contents of the message */
52
+ content: string;
53
+ }[] | undefined;
54
+ /** System message to set the behavior of the model */
55
+ system?: string | undefined;
56
+ /** JSON Schema describing the expected output object */
57
+ schema: {
58
+ [key: string]: any;
59
+ };
60
+ /** Optional name for the schema */
61
+ schemaName?: string | undefined;
62
+ /** Optional description of what the schema represents */
63
+ schemaDescription?: string | undefined;
64
+ /** Mode for object generation. Use "json" for models that do not support tools. */
65
+ mode?: ("auto" | "tool" | "json") | undefined;
66
+ /** Maximum number of tokens to generate */
67
+ maxTokens?: number | undefined;
68
+ /** Sampling temperature between 0 and 2 */
69
+ temperature?: number | undefined;
70
+ }
71
+ export type OllamaGenerateObjectOutput = {
72
+ /** The generated structured object */
73
+ object: any;
74
+ /** The reason the model stopped generating */
75
+ finishReason: string;
76
+ /** Token usage statistics */
77
+ usage: {
78
+ /** Number of tokens in the prompt */
79
+ promptTokens: number;
80
+ /** Number of tokens in the completion */
81
+ completionTokens: number;
82
+ /** Total number of tokens used */
83
+ totalTokens: number;
84
+ };
85
+ }
86
+ export type OllamaGenerateTextInput = {
87
+ /** The Ollama model to use (e.g. "llama3.2", "phi3:mini") */
88
+ model: string;
89
+ /** The prompt to generate text from */
90
+ prompt?: string | undefined;
91
+ /** A list of messages comprising the conversation so far */
92
+ messages?: {
93
+ /** The role of the message author */
94
+ role: "system" | "user" | "assistant";
95
+ /** The contents of the message */
96
+ content: string;
97
+ }[] | undefined;
98
+ /** System message to set the behavior of the model */
99
+ system?: string | undefined;
100
+ /** Maximum number of tokens to generate */
101
+ maxTokens?: number | undefined;
102
+ /** Sampling temperature between 0 and 2 */
103
+ temperature?: number | undefined;
104
+ /** Nucleus sampling parameter */
105
+ topP?: number | undefined;
106
+ /** Random seed for reproducible results */
107
+ seed?: number | undefined;
108
+ }
109
+ export type OllamaGenerateTextOutput = {
110
+ /** The generated text */
111
+ text: string;
112
+ /** The reason the model stopped generating */
113
+ finishReason: string;
114
+ /** Token usage statistics */
115
+ usage: {
116
+ /** Number of tokens in the prompt */
117
+ promptTokens: number;
118
+ /** Number of tokens in the completion */
119
+ completionTokens: number;
120
+ /** Total number of tokens used */
121
+ totalTokens: number;
122
+ };
123
+ }
124
+ export type VariableSchema_ollama_base_url = string
125
+
126
+ interface RPCHandler<I, O> {
127
+ input: I;
128
+ output: O;
129
+ }
130
+
131
+ export type RPCMap = {
132
+ };
133
+
134
+
135
+
136
+ // No addon packages, use RPCMap directly
137
+ export type FlattenedRPCMap = RPCMap
138
+
139
+ type IsAny<T> = 0 extends (1 & T) ? true : false
140
+ type IsVoidishInput<T> = IsAny<T> extends true
141
+ ? false
142
+ : [T] extends [void | null | undefined]
143
+ ? true
144
+ : false
145
+
146
+
147
+ export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
148
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
149
+ ? [name: Name]
150
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
151
+ ) => Promise<FlattenedRPCMap[Name]['output']>
152
+
153
+ export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
154
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
155
+ ? [name: Name]
156
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
157
+ ) => Promise<FlattenedRPCMap[Name]['output']>
158
+
159
+ import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
160
+
161
+ import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
162
+
163
+
164
+ type FlattenedAgentMap = AgentMap
165
+
166
+
167
+ import type { PikkuRPC } from '@pikku/core/rpc'
168
+
169
+ interface AIAgentInput {
170
+ message: string
171
+ threadId: string
172
+ resourceId: string
173
+ }
174
+
175
+ export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
176
+ name: Name,
177
+ input: FlattenedWorkflowMap[Name]['input'],
178
+ options?: { startNode?: string }
179
+ ) => Promise<{ runId: string }>
180
+
181
+ export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
182
+ name: Name,
183
+ input: FlattenedWorkflowMap[Name]['input']
184
+ ) => Promise<FlattenedWorkflowMap[Name]['output']>
185
+
186
+ export type TypedWorkflowStatus = (
187
+ workflowName: string,
188
+ runId: string
189
+ ) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
190
+
191
+ type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
192
+ ? (name: string, input: AIAgentInput) => Promise<any>
193
+ : <Name extends keyof FlattenedAgentMap>(
194
+ name: Name,
195
+ input: AIAgentInput
196
+ ) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
197
+
198
+ type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
199
+ ? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
200
+ : <Name extends keyof FlattenedAgentMap>(
201
+ name: Name,
202
+ input: AIAgentInput,
203
+ options?: { requiresToolApproval?: 'all' | 'explicit' | false }
204
+ ) => Promise<void>
205
+
206
+ export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
207
+
@@ -0,0 +1,6 @@
1
+ {
2
+ "ollamaEmbedMany": "ollamaEmbedMany",
3
+ "ollamaEmbed": "ollamaEmbed",
4
+ "ollamaGenerateObject": "ollamaGenerateObject",
5
+ "ollamaGenerateText": "ollamaGenerateText"
6
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.96
3
+ */
4
+ import { pikkuState } from '@pikku/core/internal'
5
+ import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' }
6
+ pikkuState('@pikku/addon-ollama', 'rpc', 'meta', metaData as Record<string, string>)
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.96
3
+ */
4
+ import { pikkuState } from '@pikku/core/internal'
5
+ import type { FunctionsMeta } from '@pikku/core'
6
+ import '../function/pikku-functions-meta.gen.js'
7
+ import metaData from './pikku-scenario-functions-meta.gen.json' with { type: 'json' }
8
+
9
+ pikkuState('@pikku/addon-ollama', 'function', 'meta', {
10
+ ...pikkuState('@pikku/addon-ollama', 'function', 'meta'),
11
+ ...(metaData as FunctionsMeta),
12
+ })
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.96
3
+ */
4
+ export {}