|
2 | 2 | // Options used:
|
3 | 3 | // * runtime_path: "wit_bindgen_rt"
|
4 | 4 | // * with "golem:llm/llm@1.0.0" = "golem_llm::golem::llm::llm"
|
5 |
| -// * with "wasi:io/poll@0.2.0" = "golem_rust::wasm_rpc::wasi::io::poll" |
6 | 5 | // * generate_unused_types
|
7 |
| -use golem_rust::wasm_rpc::wasi::io::poll as __with_name0; |
8 |
| -use golem_llm::golem::llm::llm as __with_name1; |
| 6 | +use golem_llm::golem::llm::llm as __with_name0; |
9 | 7 | #[cfg(target_arch = "wasm32")]
|
10 | 8 | #[link_section = "component-type:wit-bindgen:0.36.0:golem:llm-anthropic@1.0.0:llm-library:encoded world"]
|
11 | 9 | #[doc(hidden)]
|
12 |
| -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 1894] = *b"\ |
13 |
| -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xe4\x0d\x01A\x02\x01\ |
14 |
| -A\x05\x01B\x0a\x04\0\x08pollable\x03\x01\x01h\0\x01@\x01\x04self\x01\0\x7f\x04\0\ |
15 |
| -\x16[method]pollable.ready\x01\x02\x01@\x01\x04self\x01\x01\0\x04\0\x16[method]p\ |
16 |
| -ollable.block\x01\x03\x01p\x01\x01py\x01@\x01\x02in\x04\0\x05\x04\0\x04poll\x01\x06\ |
17 |
| -\x03\0\x12wasi:io/poll@0.2.0\x05\0\x02\x03\0\0\x08pollable\x01BO\x02\x03\x02\x01\ |
18 |
| -\x01\x04\0\x08pollable\x03\0\0\x01m\x04\x04user\x09assistant\x06system\x04tool\x04\ |
19 |
| -\0\x04role\x03\0\x02\x01m\x06\x0finvalid-request\x15authentication-failed\x13rat\ |
20 |
| -e-limit-exceeded\x0einternal-error\x0bunsupported\x07unknown\x04\0\x0aerror-code\ |
21 |
| -\x03\0\x04\x01m\x06\x04stop\x06length\x0atool-calls\x0econtent-filter\x05error\x05\ |
22 |
| -other\x04\0\x0dfinish-reason\x03\0\x06\x01m\x03\x03low\x04high\x04auto\x04\0\x0c\ |
23 |
| -image-detail\x03\0\x08\x01k\x09\x01r\x02\x03urls\x06detail\x0a\x04\0\x09image-ur\ |
24 |
| -l\x03\0\x0b\x01q\x02\x04text\x01s\0\x05image\x01\x0c\0\x04\0\x0ccontent-part\x03\ |
25 |
| -\0\x0d\x01ks\x01p\x0e\x01r\x03\x04role\x03\x04name\x0f\x07content\x10\x04\0\x07m\ |
26 |
| -essage\x03\0\x11\x01r\x03\x04names\x0bdescription\x0f\x11parameters-schemas\x04\0\ |
27 |
| -\x0ftool-definition\x03\0\x13\x01r\x03\x02ids\x04names\x0earguments-jsons\x04\0\x09\ |
28 |
| -tool-call\x03\0\x15\x01ky\x01r\x04\x02ids\x04names\x0bresult-jsons\x11execution-\ |
29 |
| -time-ms\x17\x04\0\x0ctool-success\x03\0\x18\x01r\x04\x02ids\x04names\x0derror-me\ |
30 |
| -ssages\x0aerror-code\x0f\x04\0\x0ctool-failure\x03\0\x1a\x01q\x02\x07success\x01\ |
31 |
| -\x19\0\x05error\x01\x1b\0\x04\0\x0btool-result\x03\0\x1c\x01r\x02\x03keys\x05val\ |
32 |
| -ues\x04\0\x02kv\x03\0\x1e\x01kv\x01ps\x01k!\x01p\x14\x01p\x1f\x01r\x07\x05models\ |
33 |
| -\x0btemperature\x20\x0amax-tokens\x17\x0estop-sequences\"\x05tools#\x0btool-choi\ |
34 |
| -ce\x0f\x10provider-options$\x04\0\x06config\x03\0%\x01r\x03\x0cinput-tokens\x17\x0d\ |
35 |
| -output-tokens\x17\x0ctotal-tokens\x17\x04\0\x05usage\x03\0'\x01k\x07\x01k(\x01r\x05\ |
36 |
| -\x0dfinish-reason)\x05usage*\x0bprovider-id\x0f\x09timestamp\x0f\x16provider-met\ |
37 |
| -adata-json\x0f\x04\0\x11response-metadata\x03\0+\x01p\x16\x01r\x04\x02ids\x07con\ |
38 |
| -tent\x10\x0atool-calls-\x08metadata,\x04\0\x11complete-response\x03\0.\x01r\x03\x04\ |
39 |
| -code\x05\x07messages\x13provider-error-json\x0f\x04\0\x05error\x03\00\x01q\x03\x07\ |
40 |
| -message\x01/\0\x0ctool-request\x01-\0\x05error\x011\0\x04\0\x0achat-event\x03\02\ |
41 |
| -\x01k\x10\x01k-\x01r\x02\x07content4\x0atool-calls5\x04\0\x0cstream-delta\x03\06\ |
42 |
| -\x01q\x03\x05delta\x017\0\x06finish\x01,\0\x05error\x011\0\x04\0\x0cstream-event\ |
43 |
| -\x03\08\x04\0\x0bchat-stream\x03\x01\x01h:\x01p9\x01k<\x01@\x01\x04self;\0=\x04\0\ |
44 |
| -\x1c[method]chat-stream.get-next\x01>\x01@\x01\x04self;\0<\x04\0%[method]chat-st\ |
45 |
| -ream.blocking-get-next\x01?\x01i\x01\x01@\x01\x04self;\0\xc0\0\x04\0\x1d[method]\ |
46 |
| -chat-stream.subscribe\x01A\x01p\x12\x01@\x02\x08messages\xc2\0\x06config&\03\x04\ |
47 |
| -\0\x04send\x01C\x01o\x02\x16\x1d\x01p\xc4\0\x01@\x03\x08messages\xc2\0\x0ctool-r\ |
48 |
| -esults\xc5\0\x06config&\03\x04\0\x08continue\x01F\x01i:\x01@\x02\x08messages\xc2\ |
49 |
| -\0\x06config&\0\xc7\0\x04\0\x06stream\x01H\x04\0\x13golem:llm/llm@1.0.0\x05\x02\x04\ |
50 |
| -\0%golem:llm-anthropic/llm-library@1.0.0\x04\0\x0b\x11\x01\0\x0bllm-library\x03\0\ |
51 |
| -\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.220.0\x10wit-bi\ |
52 |
| -ndgen-rust\x060.36.0"; |
| 10 | +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 1668] = *b"\ |
| 11 | +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x82\x0c\x01A\x02\x01\ |
| 12 | +A\x02\x01BJ\x01m\x04\x04user\x09assistant\x06system\x04tool\x04\0\x04role\x03\0\0\ |
| 13 | +\x01m\x06\x0finvalid-request\x15authentication-failed\x13rate-limit-exceeded\x0e\ |
| 14 | +internal-error\x0bunsupported\x07unknown\x04\0\x0aerror-code\x03\0\x02\x01m\x06\x04\ |
| 15 | +stop\x06length\x0atool-calls\x0econtent-filter\x05error\x05other\x04\0\x0dfinish\ |
| 16 | +-reason\x03\0\x04\x01m\x03\x03low\x04high\x04auto\x04\0\x0cimage-detail\x03\0\x06\ |
| 17 | +\x01k\x07\x01r\x02\x03urls\x06detail\x08\x04\0\x09image-url\x03\0\x09\x01q\x02\x04\ |
| 18 | +text\x01s\0\x05image\x01\x0a\0\x04\0\x0ccontent-part\x03\0\x0b\x01ks\x01p\x0c\x01\ |
| 19 | +r\x03\x04role\x01\x04name\x0d\x07content\x0e\x04\0\x07message\x03\0\x0f\x01r\x03\ |
| 20 | +\x04names\x0bdescription\x0d\x11parameters-schemas\x04\0\x0ftool-definition\x03\0\ |
| 21 | +\x11\x01r\x03\x02ids\x04names\x0earguments-jsons\x04\0\x09tool-call\x03\0\x13\x01\ |
| 22 | +ky\x01r\x04\x02ids\x04names\x0bresult-jsons\x11execution-time-ms\x15\x04\0\x0cto\ |
| 23 | +ol-success\x03\0\x16\x01r\x04\x02ids\x04names\x0derror-messages\x0aerror-code\x0d\ |
| 24 | +\x04\0\x0ctool-failure\x03\0\x18\x01q\x02\x07success\x01\x17\0\x05error\x01\x19\0\ |
| 25 | +\x04\0\x0btool-result\x03\0\x1a\x01r\x02\x03keys\x05values\x04\0\x02kv\x03\0\x1c\ |
| 26 | +\x01kv\x01ps\x01k\x1f\x01p\x12\x01p\x1d\x01r\x07\x05models\x0btemperature\x1e\x0a\ |
| 27 | +max-tokens\x15\x0estop-sequences\x20\x05tools!\x0btool-choice\x0d\x10provider-op\ |
| 28 | +tions\"\x04\0\x06config\x03\0#\x01r\x03\x0cinput-tokens\x15\x0doutput-tokens\x15\ |
| 29 | +\x0ctotal-tokens\x15\x04\0\x05usage\x03\0%\x01k\x05\x01k&\x01r\x05\x0dfinish-rea\ |
| 30 | +son'\x05usage(\x0bprovider-id\x0d\x09timestamp\x0d\x16provider-metadata-json\x0d\ |
| 31 | +\x04\0\x11response-metadata\x03\0)\x01p\x14\x01r\x04\x02ids\x07content\x0e\x0ato\ |
| 32 | +ol-calls+\x08metadata*\x04\0\x11complete-response\x03\0,\x01r\x03\x04code\x03\x07\ |
| 33 | +messages\x13provider-error-json\x0d\x04\0\x05error\x03\0.\x01q\x03\x07message\x01\ |
| 34 | +-\0\x0ctool-request\x01+\0\x05error\x01/\0\x04\0\x0achat-event\x03\00\x01k\x0e\x01\ |
| 35 | +k+\x01r\x02\x07content2\x0atool-calls3\x04\0\x0cstream-delta\x03\04\x01q\x03\x05\ |
| 36 | +delta\x015\0\x06finish\x01*\0\x05error\x01/\0\x04\0\x0cstream-event\x03\06\x04\0\ |
| 37 | +\x0bchat-stream\x03\x01\x01h8\x01p7\x01k:\x01@\x01\x04self9\0;\x04\0\x1c[method]\ |
| 38 | +chat-stream.get-next\x01<\x01@\x01\x04self9\0:\x04\0%[method]chat-stream.blockin\ |
| 39 | +g-get-next\x01=\x01p\x10\x01@\x02\x08messages>\x06config$\01\x04\0\x04send\x01?\x01\ |
| 40 | +o\x02\x14\x1b\x01p\xc0\0\x01@\x03\x08messages>\x0ctool-results\xc1\0\x06config$\0\ |
| 41 | +1\x04\0\x08continue\x01B\x01i8\x01@\x02\x08messages>\x06config$\0\xc3\0\x04\0\x06\ |
| 42 | +stream\x01D\x04\0\x13golem:llm/llm@1.0.0\x05\0\x04\0%golem:llm-anthropic/llm-lib\ |
| 43 | +rary@1.0.0\x04\0\x0b\x11\x01\0\x0bllm-library\x03\0\0\0G\x09producers\x01\x0cpro\ |
| 44 | +cessed-by\x02\x0dwit-component\x070.220.0\x10wit-bindgen-rust\x060.36.0"; |
53 | 45 | #[inline(never)]
|
54 | 46 | #[doc(hidden)]
|
55 | 47 | pub fn __link_custom_section_describing_imports() {
|
|
0 commit comments