https://linen.dev logo
Salesforce ToolKit Throwing Error
# 🖥│support-forum
c
Here is my code
Copy code
from composio import Composio
from composio_langchain import LangchainProvider

composio = Composio(api_key="<composio_api_key>", provider=LangchainProvider())

tools_salesforce = composio.tools.get(
    user_id='arian@hatz.ai',
    # tools=[
    #     "SALESFORCE_RETRIEVE_SPECIFIC_CONTACT_BY_ID",
    #     "SALESFORCE_RETRIEVE_CONTACT_INFO_WITH_STANDARD_RESPONSES",
    #     "SALESFORCE_RETRIEVE_LEAD_DATA_WITH_VARIOUS_RESPONSES"
    #     ]
    toolkits=["SALESFORCE"]
)
print(tools_salesforce)
and this is the error I'm getting https://cdn.discordapp.com/attachments/1396912916241846394/1396912918217363590/message.txt?ex=688861c9&is=68871049&hm=698b81788863308b4abc633cf8e696a61bcaf7ccb30b00cab885b441eac67aeb&
I'm changing my Composio API Key since it showed up in that error message no worrie's
I am actually getting this error with outher providers too like outlook
Copy code
File ~/Projects/pyprojects-misc/.venv/lib/python3.11/site-packages/composio/core/models/base.py:59, in trace_method.<locals>.trace_wrapper(self, *args, **kwargs)
     53     payload["error"] = {
     54         "name": e.__class__.__name__,
     55         "message": str(e),
     56         "stack": traceback.format_exc(),
     57     }
     58     event = ("error", payload)
---> 59     raise e
     60 finally:
     61     if event is not None:

File ~/Projects/pyprojects-misc/.venv/lib/python3.11/site-packages/composio/core/models/base.py:50, in trace_method.<locals>.trace_wrapper(self, *args, **kwargs)
     34 event = create_event(
     35     type="metric",
     36     functionName=name,
   (...)     47     },
     48 )
...
   2707 if is_keyword or not name.isidentifier():
-> 2708     raise ValueError('{!r} is not a valid parameter name'.format(name))
   2710 self._name = name

ValueError: '@odata.type' is not a valid parameter name
this is with Outlook
im using composio-langchain and composio
1.0.0rc10
I boiled it down that its the langchain provider thats erroring
if I remove the provider the errors stop
it works when I ask for individual tools
c
Hi, we’re looking into this issue and will keep you updated.
Thanks for bringing this to our attention! We were able to reproduce the issue on our end and will be working on a fix.
c
Thank you! Keep me posted please
c
This is now fixed
l
Do you need developer?