Install
- Python
- TypeScript
0.6.0. The provider supports the 0.6.x SDK API.
Set COMPOSIO_API_KEY from your project settings and TYPESAFE_API_KEY from TypeSafe.
Ask for a decision
Fetch the tools you want Jev to choose between, then pass a request todecide. These Hacker News tools need no connected account.
- Python
- TypeScript
decide does not execute a tool. Inspect kind before you call execute:
Jev can fill enums, booleans, and arrays of enum values. Your code supplies free text, numbers, dates, IDs, and objects. For the request above, expect a partial call because
username is free text. The tool selection example completes and executes that call.
Provider specifics
Confidence.confidence is the score of the least certain judgement required for the decision. It is not a probability that the whole tool call is correct. Low routing confidence can produce abstain. Network failures and malformed responses throw errors instead.
Arguments. Arguments you pass to execute override Jev’s values. Get missing values from trusted application state or a user input, and validate them for the tool you selected. Do not silently replace missing values with guesses from suggestions.
Request and context. Pass a string, or an object with request and context. By default, tool selection sees request only. Argument questions can also see context, such as an email or a retrieved record.
Execution. Use composio.tools.get for concrete tool selection. Session meta tools have mostly open-ended arguments, so they leave more work for your code. Destructive decisions require explicit confirmation at execution: confirm: true in TypeScript or confirm=True in Python. Request that confirmation in your application before setting the flag.
Data sent to TypeSafe. The provider sends your request, context, tool names, descriptions, and enum values to TypeSafe. It does not add your Composio API key or connected account IDs to those requests.