Native interface (advanced)
ISH has a Rust crate (ish-harness, re-exporting ish-core) and SDKs for
Python, TypeScript, Go, C#, and Java, plus a stable C ABI (ish.h). The SDKs
provide the same portable runtime capabilities through language-specific types
and callback conventions. Some conveniences are host-language adapters; the
conformance catalog documents which shared behaviors are directly exercised.
- Python
- TypeScript
- Rust
- Go
- C#
- Java
- C
from ish import abi_schema
print(abi_schema("agent.run"))
import { IshClient } from "ish-harness";
const client = new IshClient();
try {
console.log("ABI:", client.abiVersion);
const schema = client.schema("agent.run");
console.log(schema);
} finally {
client.close();
}
use ish_harness::ish_invoke_json;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let schema = ish_invoke_json("abi.schema", r#"{"operation":"agent.run"}"#)?;
println!("{schema}");
Ok(())
}
package main
import (
"fmt"
ish "github.com/ish-harness/ish-harness/sdks/go"
)
func main() {
client, err := ish.NewClient()
if err != nil {
panic(err)
}
defer client.Close()
schema, err := client.Schema("agent.run")
if err != nil {
panic(err)
}
fmt.Println(schema)
}
using System;
using Ish.Harness;
using var client = new IshClient();
var schema = client.Schema("agent.run");
Console.WriteLine(schema);
import io.github.ishharness.IshClient;
import java.nio.file.Path;
public class SchemaCheck {
public static void main(String[] args) {
try (var client = new IshClient(Path.of(System.getenv("ISH_NATIVE_LIBRARY")))) {
var schema = client.schema("agent.run");
System.out.println(schema);
}
}
}
#include "ish.h"
#include <stdio.h>
int main(void) {
uint32_t abi = ish_ffi_abi_version();
printf("ABI version: %u.%u\n", abi >> 16, abi & 0xffffu);
char *response = ish_ffi_call("abi.schema", "{\"operation\":\"agent.run\"}");
if (response != NULL) {
printf("%s\n", response);
ish_ffi_free(response);
}
return 0;
}
Calling the shared runtime
All SDKs and C ABI consumers connect to the same Rust runtime operation catalog
(inspectable via abi.schema and validated via abi.validate):
Use the language-specific API references for typed SDK entry points and host adapters.
Reference sources
Use the README for the SDK you are using as the primary API reference:
The example uses Python's public helper. The C ABI publishes the same operation schemas for low-level native integrations. Most application code should use the typed SDK methods; the raw C interface and operation catalog are optional details for people building bindings or debugging integrations.
API families
| API family | Guide |
|---|---|
| Agent execution and tools | Agents and tools |
| Context and documents | Context |
| Models and provider integrations | Models |
| Skills | Skills |
| Events and protocols | Events and protocols |
| Persistence and workflows | Persistence and workflows |
| Permissions and sandboxing | Permissions and sandboxes |
Conformance scope
The declared matrix contains 157 shared cases across Rust, Python, TypeScript, Go, C#, and Java (942 case-and-SDK evaluations). ABI 1.99 declares 361 operations and 208 published operation schemas. The regenerated inventories contain 6,490 SDK declarations and 2,330 Rust declarations, all mapped with zero unmapped items. The StorageConnector case covers connector-backed traces, spans, session messages, snapshot and approval-resume CAS transitions, checkpoint digest tampering, and post-close rejection; unified durable workflow control flow is covered across all six SDKs. This matrix supports claims about its declared contracts, not every possible input or external runtime environment.