knielsen404
8f9c28158d
add server and client name to policy get
2025-05-09 18:43:08 +02:00
Luca Beurer-Kellner
8988f9a7dd
verbose logging + loud exception failure
2025-05-08 18:33:44 +02:00
Luca Beurer-Kellner
cfacbde975
log version
2025-05-08 18:08:19 +02:00
Luca Beurer-Kellner
c2e9745163
line logging
2025-05-08 18:03:37 +02:00
Luca Beurer-Kellner
9fc384d629
mcp: make error reporting configurable
2025-05-08 15:24:59 +02:00
Luca Beurer-Kellner
85de70dcf1
Merge branch 'main' into mcp-metadata
2025-05-07 09:54:10 +02:00
Hemang
1f6e2ed7fb
Update streaming in anthropic route to handle chunks with incomplete events. Introduce an sse_buffer which keeps track of the current incomplete event from the last processed chunk.
2025-05-07 01:08:15 +05:30
Hemang
aec7808e3e
Fix broken integration tests.
2025-05-07 01:08:15 +05:30
Luca Beurer-Kellner
356d88a01e
list_tools as tool call
2025-05-06 20:55:29 +02:00
Luca Beurer-Kellner
1851cbe818
use empty object as parameters, if None
2025-05-06 18:05:29 +02:00
Luca Beurer-Kellner
483249761f
unify session metadata
2025-05-06 16:24:20 +02:00
Luca Beurer-Kellner
9cf6aa2607
nest extra mcp metadata in metadata object
2025-05-06 16:20:58 +02:00
Luca Beurer-Kellner
6ca07a5802
support for setting static metadata for MCP sessions
2025-05-06 16:17:19 +02:00
Luca Beurer-Kellner and GitHub
86ec75ba2d
use select() before readline ( #45 )
2025-05-06 16:07:50 +02:00
Luca Beurer-Kellner
a5f5ea42da
use select() before readline
2025-05-05 13:55:03 +02:00
Hemang
52f5359d36
Add MCP client and server names in trace metadata for Explorer.
2025-04-24 15:48:36 +02:00
Hemang
7287065940
Improve on request reads from byte by byte to line by line.
2025-04-24 15:48:36 +02:00
knielsen404
55874d552e
feat: append_and_push_trace uses configurable API URL
2025-04-23 13:08:57 +01:00
Kristian Nielsen and GitHub
ed63a4b592
fix typo ( #42 )
2025-04-23 09:28:45 +01:00
Marco Milanta
20d1e0afd4
fix: print breaks claude
2025-04-17 14:59:59 +02:00
Hemang Sarkar and GitHub
2b9785de11
Update README.md
2025-04-17 10:05:28 +02:00
Hemang
45d384b7a3
Update README for mcp.
2025-04-17 09:54:26 +02:00
Hemang
e8deb8feda
Rename dataset-name flag for MCP to project-name and change CLI command to run mcp
2025-04-17 07:15:28 +02:00
Hemang
2c34205c4c
Fix asyncio and threading. Dedupe annotations before pushing. Add README.
2025-04-17 07:15:28 +02:00
Hemang
66c6dcb8f9
Add mcp.py
2025-04-17 07:15:28 +02:00
Hemang
15210997a7
Add the invariant-gateway CLI script.
2025-04-17 07:15:28 +02:00
Hemang
5bf121bbda
Use pyproject.toml instead of requirements.txt and fix some broken tests.
2025-04-17 07:15:28 +02:00
Luca Beurer-Kellner
6b6f33bde6
fix: don't hardcode preview
2025-04-04 10:38:14 +02:00
Luca Beurer-Kellner and GitHub
c4dd3f3b19
Allow to specify different API keys for the guardrailing service ( #36 )
...
* minor refactor for getting invariant api keys for guardrailing
* allow different guardrailing api key
* tests
* fix comment + import
* improved unauthorized handling
2025-04-03 12:15:30 +02:00
Luca Beurer-Kellner and GitHub
e17b53b927
Extract guardrails from header if provided ( #33 )
...
* guardrails from header
* use in-file guardrails in client.py
* support case without request
* remove client script
* tests: guardrailing rule passed in header
* include checked guardrails in annotation extra metadata
* include guardrailing action
* update guardrail metadata
2025-04-03 08:56:15 +02:00
Hemang
760b739894
Correct user API GET call to fetch policies.
2025-04-03 00:02:19 +02:00
Hemang
6d3366b91b
Add OPTIONS preflight support for routes.
2025-04-02 22:42:22 +02:00
Marco Milanta
37005c03be
fix: add tests (and found bug)
2025-04-02 16:03:51 +02:00
Marco Milanta
7b6d77e0a5
feat: add litellm support
2025-04-02 15:22:39 +02:00
Hemang
f3a56e1e43
Add preguardrailing tests for guardrails pulled from explorer.
2025-04-02 13:40:52 +02:00
Hemang
55f0f741c0
Add tests for guardrails integration with explorer.
2025-04-02 13:40:52 +02:00
Hemang
9aef873a74
Correct header name before calling explorer to fetch guardrails.
2025-04-02 13:40:52 +02:00
Hemang
750c83d3f8
Add calls to execute logging guardrails before pushing to explorer.
2025-04-02 13:40:52 +02:00
Hemang
050ec1ba58
Fetch guardrails from explorer. These have higher precedence than than the guardrails from file.
2025-04-02 13:40:52 +02:00
Hemang
f45a973f51
Small formatting changes.
2025-04-02 13:40:52 +02:00
Luca Beurer-Kellner and GitHub
7c0bb957fb
Pipelined Guardrails ( #32 )
...
* initial draft: pipelined guardrails
* documentation on stream instrumentation
* more comments
* fix: return earlier
* non-streaming case
* handle non-streaming case
* fix more cases
* simplify request instrumentation
* improve comments
* fix import issues
* extend tests for input guardrailing
* anthropic integration of pipelined and pre-guardrailing
* fix gemini streamed refusal
2025-03-31 14:13:58 +02:00
Hemang
e55df73487
Add guardrails for gemini integration.
2025-03-27 12:26:17 +01:00
Hemang
8191c83c12
Revert "Add debug logs for metadata push."
...
This reverts commit f247682fa3 .
2025-03-26 19:57:00 +01:00
Hemang
f247682fa3
Add debug logs for metadata push.
2025-03-26 15:20:26 +01:00
Hemang
c9cdbd7eb5
Update metadata for gemini streaming case.
2025-03-25 11:49:07 +01:00
Hemang
3df9e73249
Add some tests for the Anthropic conversion functions. Add support for system message in Anthropic. Rename some variables.
2025-03-21 00:56:52 +01:00
Hemang
4a9930c30d
Add guardrails checks for Anthropic.
2025-03-21 00:56:52 +01:00
Hemang
781c6224d9
Anthropic with stream=False complains about content-length not matching with the response size.
2025-03-20 10:59:27 +01:00
Hemang
a4ee5f0c47
Add metadata before pushing to Explorer.
2025-03-20 10:59:27 +01:00
Hemang
ab3169938d
Add preload guardrails api call for anthropic and gemini.
2025-03-19 09:51:56 +01:00