Skip to content

0.1.1

Choose a tag to compare

@captainpacket captainpacket released this 07 Sep 14:38
· 64 commits to main since this release
pip install forward-sdk==0.1.1

Forward AI

Ask a question about a network in plain language and get an answer grounded in one snapshot, with the tools Forward called to reach it.

answer = client.ai.ask("Why can nyc-fw01 not reach the database subnet?")
print(answer.answer.summary)

A conversation stays pinned to its snapshot, so a follow-up is answered against the same model as the first question. Chats can be listed, renamed, deleted, and exported as a Markdown, HTML or JSON transcript.

This reverses an earlier decision to leave Forward AI out of scope. It is gated twice over: absent from Forward's published API, and requiring the AI_ALLOWED organization property, so most organizations are refused with a 403. That refusal arrives as an ordinary ForwardPermissionError carrying Forward's own sentence rather than a status invented by the SDK. See the guide.

Also

client.nqe.repo.source(path) returns a query's committed source, fetching with the flag a caller would otherwise have to remember and failing loudly when Forward returns none. Previously the source read as None when with_source=True had been forgotten, which looks like an empty query rather than a missing argument.