kcode-k1-chat-thread-actions 0.3.0

Synchronous CurrentTime launch for K1 chat threads
Documentation
1
2
3
4
5
6
7
8
9
# Public API

```rust
pub fn launch(name: &str, arguments: &str) -> Result<String, String>;
```

`CurrentTime` accepts JSON that parses as an object with no fields, including surrounding whitespace, and returns the current UTC timestamp. Malformed JSON, non-object JSON, and nonempty objects return exactly `invalid CurrentTime arguments`. Every other name returns exactly `unknown Ktool`.

`launch` is synchronous. Each invocation performs JSON validation and, for valid `CurrentTime`, one system-clock read and timestamp-formatting operation.