Commit Graph

13 Commits

Author SHA1 Message Date
Arya Soni 3c564e285c Bug: Deprecation Version Mismatch (#613) 2025-12-03 14:56:13 +01:00
Pietro Zullo 18f51eddb8 Feat: python/restructure (#318)
* move: session

* move: client

* move:config

* move: exceptions

* move: connectors -> client.connectors

* move: task_managers -> client.task_managers

* move: observability -> agents.observability

* move: middleware -> client.middleware

* move: managers -> agents.managers

* move: auth -> client.auth

* move: adapters -> agents.adapters

* test: bc test

* test: bc test

* chore: remove relative imports

* fix tests

* chore: update docs

* chore: deprecation warnings

* chore: fix dangerous non absolute import

* fix: remove legacy imports

* telemetry
2025-10-17 20:09:19 +02:00
Luigi Pederzani bb5de3af95 fix: Return tool result in standard format (#288)
* return tool result directly

* fix type
2025-10-07 14:07:23 +02:00
Vincenzo Reina 3f6cb669c1 fix: accept empty tool result (#273) 2025-09-23 19:14:19 +02:00
Amrithesh Kakkoth c60bbf5e17 Fix enum validation issue in jsonschema_to_pydantic (#270)
* Fix enum validation issue in jsonschema_to_pydantic

- Enhanced fix_schema method to automatically add 'type': 'string' to enum fields without explicit type
- This resolves validation errors when passing string values to enum fields in FastMCP tools
- Added comprehensive unit tests for enum handling scenarios
- Fix is backward compatible and preserves existing functionality
- Resolves issue where enum fields without explicit type caused Pydantic validation errors

* Fix linting issues

- Remove whitespace from blank lines
- Sort imports according to project standards
- All ruff checks now pass

* Apply ruff formatting to test file

- Format test_enum_handling.py according to project standards
- All formatting checks now pass

* Fix enum validation test to reflect actual jsonschema-pydantic behavior

- Replace test that expected strict enum validation with test that verifies valid values are accepted
- jsonschema-pydantic doesn't enforce strict enum validation as expected
- Focus on testing that our fix allows valid enum values to pass validation
- This addresses the test failure in CI

---------

Co-authored-by: Amrithesh Kakkoth <amritheshkakkoth@gmail.com>
2025-09-23 14:20:31 +02:00
Pietro Zullo 0c6c7663d3 chore: cleanup (#225)
* Honor deprecation

* Better handling of access methods when method is not supported by server
2025-08-10 11:48:55 -07:00
Vincenzo Reina e0face5986 feat: Improve error handling (#215)
* Add error helper function

* Update error formatting for adapters

* Add custom args for error and add formatted in tools

* Add docs in error formatting and improve observability

* Fix and add more properties on adapters

* Fix on folder name, conflict with utils file

* Final fix for the utils problem

* Try to sort imports in correct order

* Add line at end of the error formatting file

* Fix with imports with ruff

* Fix also ruff formatting error
2025-08-07 12:50:14 -07:00
NandhuKishore24 288b943741 Fixing Disallowed tool issue #62 (#151) 2025-07-03 18:04:21 -07:00
Pietro Zullo 8a32d3c23c fix: pre commit run all files (#135)
* Set line lenght to 120

* Run pre commit all files
2025-06-18 10:12:58 +02:00
pietrozullo af945d7e8a Feature: support Resources & Prompts (#80)
* Add connector hooks to resources and propts

* Adapter implementation for resources and tools, treated them as tools

* Move unpacking responsibility to adapters

* Update unittests

* Separate unit and integration

* Fix initialization logic

* Fixed tests with capability check

* Removed tool reference from session
2025-05-15 16:29:55 +02:00
pietrozullo b4e26a46a4 Feat/search (#56)
* Move server manager to manager

* update imports

* Search tool with full indexing

* Use tool search in sevrer manager -- rebase

* Simplified server manager

* WIP: tool search with fastemebed

* Import changes and adapter repr

* Update server manager API

* Implemented search tool, single tool usage tool, and separated tools into their own implementations, decoupled manager from tools

* Separate piproject and ruff config

* Remove sentence transformers - use fastembed

* Added search extra - update isntall in test action

* Small refactor

* docs
2025-04-22 17:50:16 +02:00
pietrozullo 5d836656e7 Feat/expose tools (#45)
* Abstract tool adapter

* Adapted API users

* Documentations

* PR template
2025-04-19 15:47:29 +02:00
pietrozullo 98f7dc90f7 Langchain adapter 2025-04-15 18:22:34 +02:00