Commit Graph

80 Commits

Author SHA1 Message Date
UnaiAlias 1c79507140
CAI 1.1.5 release (#455) 2026-06-05 13:43:19 +02:00
Víctor Mayoral Vilches ccf823a2d5 Document --continue mode
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-11-14 12:41:43 +01:00
Ameer Pornillos 5d892a9267 Added additional prompt injections PoCs 15 and 16 (#276)
* Added prompt injections PoCs

* Mitigate PoCs 15 and 16

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>

---------

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
Co-authored-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-10-08 16:23:59 +02:00
Víctor Mayoral Vilches bfb1281096 Prompt injection mitigation (#249)
* Reproduce prompt injection flaw in CAI

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>

* Mitigate prompt injection

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>

* Add a second PoC, refactor and propose a message when guardrails are triggered

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>

* Add CAI_GUARDRAILS and 2 additional PoCs

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>

* Mitigate PoC 3

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>

* Mitigate PoC 4

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>

* Add and mitigate PoCs 5 and 6

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>

* Add PoCs 7 to 10

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>

* Test and mitigate PoCs 7 to 10

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>

* Add PoCs 11 to 14

Inspired by 'Embrade The Red' research and also by 'The Month of AI bugs'

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>

* Mitigate PoCs 11 to 14

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>

---------

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-08-28 20:25:24 +02:00
Víctor Mayoral Vilches 04359a07f3 Revert "Apply code formatting with make format" 2025-06-14 09:51:19 +00:00
Li 63435f3721 Add new example file handoffs and tools 2025-05-13 14:18:03 +00:00
Mery-Sanz 7fe22d7312 merge with reset-v0.4.0 2025-05-07 10:36:30 +02:00
Mery-Sanz 56e6fcf1a4 fix agent command 2025-05-05 10:30:46 +02:00
lidia9 d778e2bc9e FIX guardrails.py 2025-05-02 16:29:59 +02:00
lidia9 a02f6475ee LLM_as_judge.py - Some fixes for qwen to work - I commit plenty of prints for the future, they will be all removed 2025-04-30 16:55:11 +02:00
lidia9 f6cc6e1283 LLM AS A JUDGE - works for anthropic 2025-04-30 16:00:50 +02:00
lidia9 27a09c576e small fix - now llm as judge works for openai llms 2025-04-30 15:08:24 +02:00
Mery-Sanz 89293adb9e test functionalities 2025-04-29 10:30:34 +02:00
Mery-Sanz 016c27c4af fix agent and add primary test 2025-04-22 16:32:26 +02:00
Mery-Sanz 30782863d6 fix tools 2025-04-22 13:35:42 +02:00
Víctor Mayoral Vilches e8e05e9e5a Fix streaming responses in CAI and examples
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-04-03 10:53:33 +02:00
Víctor Mayoral Vilches b2233b76d1 CLI output operational
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-04-03 08:19:42 +02:00
Víctor Mayoral Vilches 5b29fbe4db Fix docs
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-04-02 16:48:23 +02:00
Víctor Mayoral Vilches 0877dfda81 Address issues with litellm and agents SDK
Squeezed in some additional features such as:
- updated get_version()
- various examples for streaming and non-streaming testing

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-04-02 14:03:00 +02:00
Víctor Mayoral Vilches 69abd9e1d1 OLLAMA models working
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-31 21:13:15 +02:00
Víctor Mayoral Vilches d1fd6623e5 Merge remote-tracking branch 'origin/main' into cai 2025-03-31 13:21:34 +02:00
Víctor Mayoral Vilches aef3f5e73c Streaming now working for OLLAMA models, but not the rest. Figure it out
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-30 09:21:25 +02:00
Víctor Mayoral Vilches cff20480b7 Made local models work by switching into litellm python APIs
Still some issues with stream versions which needs further
investigation

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-29 20:17:42 +01:00
Víctor Mayoral Vilches 944128583c CLI responding, but only to proprietary models
Need to investigate why self-hosted models via OLLAMA fail API-wise

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-28 09:48:16 +01:00
amri369 1683606b6f Hotfix mcp example (#365)
Small typo in uv command fixed
2025-03-27 13:05:30 -04:00
Víctor Mayoral Vilches ac4797cec6 Re-structure under sdk/agents, get CLI mockup
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-27 14:31:38 +01:00
Víctor Mayoral Vilches 21048444c6 Minor changes for alignment
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-26 18:55:21 +01:00
Rohan Mehta aeda40c10f MCP example for SSE (#354)
Simple example with a local SSE server.
2025-03-26 12:56:35 -04:00
Víctor Mayoral Vilches adb358baae Update docs to integrate CAI, minor refinements
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-26 12:41:45 +01:00
Rohan Mehta 013d8ae9d2 Adding Git MCP server example (#343)
- Adding new example showing a single agent interacting with local MCP
server for git
2025-03-25 19:54:59 -04:00
Rohan Mehta b870b90471 [5/n] MCP tracing (#342)
## Summary:

Adds tracing and tests for tracing.
- Tools are added to the agents
- Theres a span for the mcp tools lookup
- Functions have MCP data

## Test Plan:

Unit tests
.
2025-03-25 19:54:28 -04:00
Dmitry Pimenov d53411ba6a added readme, fixed typo 2025-03-25 16:52:52 -07:00
Dmitry Pimenov 3587502c69 fixing lint issues 2025-03-25 16:34:00 -07:00
Dmitry Pimenov 788b4faba6 adding Git MCP server example 2025-03-25 16:30:50 -07:00
Rohan Mehta 6cb8b1ceaa [5/n] MCP tracing
## Summary:

Adds tracing and tests for tracing.
- Tools are added to the agents
- Theres a span for the mcp tools lookup
- Functions have MCP data

## Test Plan:

Unit tests
.
2025-03-25 19:28:48 -04:00
Dominik Kundel d639ebdf91 fix(examples): make sure audio playback finishes 2025-03-25 12:11:33 -07:00
Rohan Mehta 069e41a08d [3/n] Add an MCP stdio example
### Summary:
Spins up a stdio server with some local files, then asks the model questions.

### Test Plan:
Run the example, see it work.
2025-03-25 13:24:18 -04:00
Víctor Mayoral Vilches cd6d218933 Adapt litellm example
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-24 19:49:51 +01:00
Víctor Mayoral Vilches 147fc8142e Initial re-structuring towards CAI
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-24 19:47:41 +01:00
Víctor Mayoral Vilches 1618434aa9 Fix error in example path
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-24 19:47:13 +01:00
Víctor Mayoral Vilches 8718a93155 Remove independent and isolated model tests
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-24 18:43:46 +01:00
Víctor Mayoral Vilches 0f8c357231 Restore structure and place litellm integraton under model_providers
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-24 18:39:17 +01:00
Víctor Mayoral Vilches 09c2beefdc Merge branch 'main' of https://github.com/openai/openai-agents-python 2025-03-24 17:26:49 +01:00
Rohan Mehta 21a61969d9 Fix Typos (#258)
Noticed a bunch of typos when reading code, fixing.
2025-03-23 20:28:14 -04:00
Aviral Garg 8769a3ebf0 Fix circular dependency in voice streamed example with cleaner import pattern 2025-03-21 16:26:19 -07:00
Aviral Garg 75eec0aed6 Fix type-checking for circular dependency in voice streamed example 2025-03-21 16:18:04 -07:00
Aviral Garg ee971e73d2 Fix circular dependency in voice streamed example by renaming agents.py to my_workflow.py 2025-03-21 13:25:46 -07:00
Rohan Mehta ec66b71419 update tests 2025-03-20 13:08:38 -04:00
Dominik Kundel f476521c53 fix tests 2025-03-20 09:52:15 -07:00
Dominik Kundel 20f0793862 feat: add voice pipeline support
> Co-authored-by: rm@openai.com
2025-03-20 09:43:13 -07:00