Commit Graph

592 Commits

Author SHA1 Message Date
Mery-Sanz e8bb5ab241 add test 2025-04-22 16:48:12 +02:00
Mery-Sanz 016c27c4af fix agent and add primary test 2025-04-22 16:32:26 +02:00
lidia9 a47b61b96b FIX UI - CAI_STREAM=false - print messages well parsed & parsed tool calls 2025-04-22 12:59:42 +00:00
Mery-Sanz 30782863d6 fix tools 2025-04-22 13:35:42 +02:00
Víctor Mayoral Vilches 4305f41089 Merge branch 'test_ci' into 'v0.4.0'
Bring unite tests from 0.3.x

See merge request aliasrobotics/alias_research/cai!141
2025-04-22 07:39:16 +00:00
Víctor Mayoral Vilches 1522f2195c Merge branch 'v0.4.0_pricing' into 'v0.4.0'
Fix pricing for CAI_STREAM=true and CAI_STREAM=false

See merge request aliasrobotics/alias_research/cai!140
2025-04-22 07:38:48 +00:00
lidia9 fbbdc31ba6 removing prints from pricing changes 2025-04-22 07:15:01 +00:00
Mery-Sanz 91551f4693 delete some test because of the fail of api key 2025-04-15 17:18:16 +02:00
Mery-Sanz 3c3361280b .gitignore 2025-04-11 13:51:45 +02:00
Mery-Sanz 6bafa0235f test 2025-04-11 13:49:06 +02:00
Mery-Sanz 5cd571976a fix pipleines 2025-04-11 12:24:32 +02:00
Mery-Sanz bd33d3fd67 change gpt-4o and install in .yml 2025-04-11 11:38:21 +02:00
Lidia b1e60d0284 remove prints 2025-04-11 11:18:07 +02:00
Lidia 083d03c9a1 remove prints 2025-04-11 11:13:23 +02:00
Lidia 3919af91d7 FIX show pricing for CAI_STREAM=true 2025-04-11 11:02:30 +02:00
Mery-Sanz 58a0aaaae8 add piplines for ci test 2025-04-11 10:50:25 +02:00
Mery-Sanz c6e37fe081 fix 2025-04-11 10:08:55 +02:00
Mery-Sanz ed73fe1a08 try to add ci 2025-04-11 10:06:25 +02:00
Lidia 3000cdfea0 undo changes in openai_responses.py and leave it as it was originally in v0.4.0 2025-04-11 09:53:51 +02:00
Mery-Sanz 00a50a03ae fix test 2025-04-11 09:34:06 +02:00
Mery-Sanz 58985f9d57 fix mcp test 2025-04-11 08:24:26 +02:00
Mery-Sanz 99469a17e2 fix function schema test 2025-04-11 08:11:26 +02:00
Mery-Sanz f07059cbd5 fix some test 2025-04-11 08:04:19 +02:00
Mery-Sanz 7e3af1842a add coments and docstring 2025-04-10 09:57:35 +02:00
Mery-Sanz 2a32bd9e9b improve test 2025-04-10 09:42:16 +02:00
Mery-Sanz 75869265a5 add more test 2025-04-10 09:27:56 +02:00
Mery-Sanz 9532fe42f5 add new test and fix previous 2025-04-10 08:54:21 +02:00
Mery-Sanz 777ddaedd9 modify gitingore 2025-04-10 07:59:39 +02:00
Mery-Sanz 8a2778769d add test 2025-04-10 07:58:40 +02:00
Mery-Sanz 8aa1ae0424 final fix 2025-04-09 16:17:06 +02:00
Mery-Sanz 73de470fb0 fix more test 2025-04-09 16:07:58 +02:00
Mery-Sanz c083ecf69f fix more test 2025-04-09 15:59:24 +02:00
Mery-Sanz f88365b11d add 2 more test 2025-04-09 15:54:58 +02:00
Mery-Sanz 05fab61056 fix test_agent_runner 2025-04-09 15:51:05 +02:00
Lidia 23d2a0f22d FIX show pricing - calculate pricing 2025-04-09 15:48:59 +02:00
Mery-Sanz 4ae76ecd29 fix test_agent_hooks.py and reorganize imports 2025-04-09 15:46:53 +02:00
María Sanz Gómez ef64c7a1e4 fix tests/test_agent_config.py 2025-04-09 15:42:26 +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 7cda5445a4 Fix issue with instructions
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-04-02 07:28:27 +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
Eric Peter e891dfc314 Databricks MLflow tracing integration (#401) 2025-03-30 23:53:09 -04: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
Víctor Mayoral Vilches f0b93aec91 Fix paths in docs
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-28 08:35:25 +01:00
Víctor Mayoral Vilches d2d2ce535d Address error while streaming
[Error occurred during streaming: 1 validation error for ResponseUsage
input_tokens_details
  Input should be a valid dictionary or instance of InputTokensDetails [type=model_type, input_value=InputTokensDetails(prompt...ens=17, cached_tokens=0), input_type=InputTokensDetails]
    For further information visit https://errors.pydantic.dev/2.10/v/model_type]
Location: Traceback (most recent call last):
  File /Users/alias/Alias/research/openai-agents-python/src/cai/cli.py, line 209, in process_streamed_response
    async for event in result.stream_events():
  File /Users/alias/Alias/research/openai-agents-python/src/cai/sdk/agents/result.py, line 186, in stream_events
    raise self._stored_exception
  File /Users/alias/Alias/research/openai-agents-python/src/cai/sdk/agents/run.py, line 539, in _run_streamed_impl
    turn_result = await cls._run_single_turn_streamed(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File /Users/alias/Alias/research/openai-agents-python/src/cai/sdk/agents/run.py, line 641, in _run_single_turn_streamed
    async for event in model.stream_response(
  File /Users/alias/Alias/research/openai-agents-python/src/cai/sdk/agents/models/openai_chatcompletions.py, line 421, in stream_response
    ResponseUsage(
  File /Users/alias/Alias/research/openai-agents-python/env/lib/python3.12/site-packages/pydantic/main.py, line 214, in __init__
    validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for ResponseUsage
input_tokens_details
  Input should be a valid dictionary or instance of InputTokensDetails [type=model_type, input_value=InputTokensDetails(prompt...ens=17, cached_tokens=0), input_type=InputTokensDetails]
    For further information visit https://errors.pydantic.dev/2.10/v/model_type

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-28 08:35:11 +01:00