langchain/libs/community/langchain_community/agent_toolkits
Bharat b9746a6910
fixes#30182: update tool names to match OpenAI function name pattern (#30183)
The OpenAI API requires function names to match the pattern
'^[a-zA-Z0-9_-]+$'. This updates the JIRA toolkit's tool names to use
underscores instead of spaces to comply with this requirement and
prevent BadRequestError when using the tools with OpenAI functions.

Error fixed:
```
File "langgraph-bug-fix/.venv/lib/python3.13/site-packages/openai/_base_client.py", line 1023, in _request
    raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Error code: 400 - {'error': {'message': "Invalid 'tools[0].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$'.", 'type': 'invalid_request_error', 'param': 'tools[0].function.name', 'code': 'invalid_value'}}
During task with name 'agent' and id 'aedd7537-e8d5-6678-d0c5-98129586d3ac'
```

Issue:#30182
2025-03-08 20:48:25 -05:00
..
ainetwork multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
amadeus multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
cassandra_database multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
clickup docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
cogniswitch docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
connery multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
csv
file_management multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
financial_datasets multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
github community: adds support for getting github releases for the configured repository (#29318) 2025-01-22 15:45:52 +00:00
gitlab community: add method to create branch and list files for gitlab tool (#27883) 2024-12-12 19:11:35 +00:00
gmail multiple: update docs urls to latest 2 (#26837) 2024-09-30 17:37:07 -07:00
jira fixes#30182: update tool names to match OpenAI function name pattern (#30183) 2025-03-08 20:48:25 -05:00
json docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
multion multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
nasa docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
nla community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
office365 multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
openapi all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
playwright multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
polygon docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
powerbi community: set default output_token_limit value for PowerBIToolkit to fix validation error (#26308) 2024-11-04 14:34:27 +00:00
slack community[patch]: fix instantiation for Slack tools (#28990) 2025-01-02 16:14:17 +00:00
spark_sql multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
sql community[patch]: fix QuerySQLDatabaseTool name (#28659) 2024-12-12 19:16:03 -08:00
steam docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
xorbits
zapier docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
__init__.py
azure_ai_services.py docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
azure_cognitive_services.py docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
base.py docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
load_tools.py [WIP] chore: update ElevenLabs tool. (#29722) 2025-02-13 01:54:34 +00:00