Skip to content

v0.16.0.rc1 JSON Schemas & OpenAPI Specs

Pre-release
Pre-release
Compare
Choose a tag to compare
@kreneskyp kreneskyp released this 22 Jan 03:57
· 195 commits to master since this release
016adfc

This release focuses on a new data module that includes an API and storage for JSON Schemas & OpenAPI Specs. Both include components to utilize them in flows.

JSON Schemas #387 #299 #391 #393 #398 #399

Ix.-.Google.Chrome.2024-01-21.09-12-18.mp4

JSON Schemas may now be created through the UI. Schema objects are usable within the flow as an input or as a function with LLMs that support function calling.

Components:
  • SaveSchema - generate new schemas with the SaveSchema component
  • LoadSchema - loads schemas from the registry.
JSON Form inputs:
  • JSONSchemaSelect

OpenAPI Specs #387 #391 #394 #398 #408

drag-n-drop-open-api.mp4

OpenAPI specs may now be imported using a URL. Use them in flows as tools or as regular chains to interact with remote APIs.

The editor provides a viewer for the spec's endpoints and schemas. Action specs may be dragged onto a flow to create a preconfigured OpenAPI Request.

Components:
  • OpenAPI Request - load a schema and run a request.
JSON Form inputs:
  • OpenAPISchemaSelect
  • SchemaActionSelect
  • SchemaServer

Drag-n-drop objects #400 #405 #409

Many objects may now be dropped into the graph as preconfigured nodes. This is built on a new DraggableNode wrapper that simplified mapping types to nodes.

  • JSON schemas
  • OpenAPI specs & actions
  • Chains

Fixes for tabs and new chains #391 #395 #397

There were still quite a few gremlins in the new state management for tabs. This caused various issues with nodes not appearing when saved, values reverting after saving, crashes, etc. Many bugs were fixed during the testing of this version.

Misc

  • Most edits within the editor now show a toast message on success #396
  • Generalized react-select components and hooks for easier re-use #388
  • LangChain 0.1.0 #390
  • Add JSONSchemaDisplay for rendering specs #401
  • Nodes now appear mostly centered on the header when dropped #403
  • API endpoints have simplified operation_id for better integration with OpenAPI Request nodes #406
  • menu style now better configured #407