@@ -417,15 +417,14 @@ The following tools/functions are currently provided by default
417417
418418* simple_calculator - which can solve simple arithmatic expressions
419419
420- * run_javascript_function_code - which can be used to run some javascript code in the browser
421- context.
420+ * run_javascript_function_code - which can be used to run ai generated or otherwise javascript code using browser's js capabilities.
422421
423422* data_store_get/set/delete/list - allows for a basic data store to be used.
424423
425- Currently the ai generated code / expression is run through a simple minded eval inside a web worker
426- mechanism. Use of WebWorker helps avoid exposing browser global scope to the generated code directly.
427- However any shared web worker scope isnt isolated. Either way always remember to cross check the tool
428- requests and generated responses when using tool calling.
424+ All of the above are run from inside web worker contexts. Currently the ai generated code / expression
425+ is run through a simple minded eval inside a web worker mechanism. Use of WebWorker helps avoid exposing
426+ browser global scope to the generated code directly. However any shared web worker scope isnt isolated.
427+ Either way always remember to cross check the tool requests and generated responses when using tool calling.
429428
430429##### using bundled simpleproxy.py (helps bypass browser cors restriction, ...)
431430
@@ -551,12 +550,13 @@ A builtin data store related tool calls, inturn built on browser's indexedDB, wi
551550proxy / additional helper to handle the store. One could use the ai assistant to store ones (ie end
552551users) own data or data of ai model.
553552
553+ Trap http response errors and inform user the specific error returned by ai server.
554+
555+
554556#### ToDo
555557
556558Is the tool call promise land trap deep enough, need to think through and explore around this once later.
557559
558- Trap error responses.
559-
560560Handle multimodal handshaking with ai models.
561561
562562Add fetch_rss and may be different document formats processing related tool calling, in turn through
@@ -567,6 +567,8 @@ same when saved chat is loaded.
567567
568568MAYBE make the settings in general chat session specific, rather than the current global config flow.
569569
570+ Provide tool to allow for specified pdf files to be converted to equivalent plain text form, so that ai
571+ can be used to work with the content in those PDFs.
570572
571573### Debuging the handshake and beyond
572574
0 commit comments