OIP vs LangChain Tools
Introduction to OIP vs LangChain Tools
OIP (Object Invocation Protocol) is a protocol specification that defines a work object as a unit of invocation, whereas LangChain tools are code-bound abstractions that operate on data.
Comparison of OIP and LangChain Tools
OIP operates on data-bound directory rows, whereas LangChain tools are bound to code.
Receipt Rule
The receipt rule for OIP is that every invocation appends to the ledger and returns a receipt at /api/dispatch?receipt=inv_ID.
Conformance Rule
The conformance rule for OIP is that every object must be invoked using the POST /api/dispatch or GET /api/dispatch?invoke=KEY&body=... route, and must return a receipt at /api/dispatch?receipt=inv_ID.
Example
An example of using OIP to invoke an object is to use the curl command to send a POST request to https://miscsubjects.com/api/dispatch with a JSON body containing the key and body of the object.