LlamaIndex tools for the OptionsAhoy equity-compensation calculators.
Project description
llama-index-tools-optionsahoy
LlamaIndex tools for the OptionsAhoy equity-compensation calculators. OptionsAhoyToolSpec
exposes one tool per OptionsAhoy REST endpoint, built on top of the keyless
optionsahoy client. No application programming interface (API) key is
required.
Covered calculators: incentive stock option (ISO) / alternative minimum tax (AMT) optimizer, non-qualified stock options (NSO), restricted stock units (RSU) sell-versus-hold, single-stock concentration, protective put hedge pricing, qualified small business stock (QSBS), and funding a cash goal from equity.
Install
From this repository, install both packages editable:
pip install -e integrations/python/optionsahoy
pip install -e integrations/python/llama-index-tools-optionsahoy
Usage
from llama_index.tools.optionsahoy import OptionsAhoyToolSpec
spec = OptionsAhoyToolSpec()
tools = spec.to_tool_list() # one FunctionTool per endpoint
# Hand to any LlamaIndex agent:
# from llama_index.core.agent import ReActAgent
# agent = ReActAgent.from_tools(tools, llm=...)
# or call a tool directly:
qsbs = next(t for t in tools if t.metadata.name == "qsbs_check")
result = qsbs.call(
acquisitionDate="2018-01-01",
saleDate="2026-02-01",
entityType="us-c-corp",
acquisitionMethod="original-issuance",
assetCategory="under-50m",
industry="tech-software",
activeBusiness="yes",
adjustedBasis=10000,
expectedGain=2000000,
stateCode="CA",
ordinaryIncome=250000,
filingStatus="single",
)
print(result.raw_output)
Pass your own configured client with OptionsAhoyToolSpec(client=OptionsAhoyClient(...)).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_tools_optionsahoy-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_tools_optionsahoy-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75bd5da544cac71a4b71c2dac5cf4065f5129d86e0c153907b12df5ba3b3545a
|
|
| MD5 |
fdbcbf04b5b6eb8ffa6a98c15f3563f2
|
|
| BLAKE2b-256 |
3f0b51bdf86c4dccf3eeefe8d2dbc2e784ae2856a0f7a3ab53cb7fb9e626121a
|
Provenance
The following attestation bundles were made for llama_index_tools_optionsahoy-0.1.0.tar.gz:
Publisher:
publish-python.yml on AlvisoOculus/optionsahoy-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_tools_optionsahoy-0.1.0.tar.gz -
Subject digest:
75bd5da544cac71a4b71c2dac5cf4065f5129d86e0c153907b12df5ba3b3545a - Sigstore transparency entry: 1810477843
- Sigstore integration time:
-
Permalink:
AlvisoOculus/optionsahoy-mcp@5d33e5ffd9853a9111cafebd3171b34bf7a88d51 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AlvisoOculus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@5d33e5ffd9853a9111cafebd3171b34bf7a88d51 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file llama_index_tools_optionsahoy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_optionsahoy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a35afdbc6afff4fef31e45329d1f057ce2a952f4dbc413d58c15a5cc3d5560e
|
|
| MD5 |
05456f6af4faaf277f618400a56e63e2
|
|
| BLAKE2b-256 |
8cbe446a1c23faa5a01f63cb8902af2cb2965d8897dd06685b53899af009709a
|
Provenance
The following attestation bundles were made for llama_index_tools_optionsahoy-0.1.0-py3-none-any.whl:
Publisher:
publish-python.yml on AlvisoOculus/optionsahoy-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_tools_optionsahoy-0.1.0-py3-none-any.whl -
Subject digest:
9a35afdbc6afff4fef31e45329d1f057ce2a952f4dbc413d58c15a5cc3d5560e - Sigstore transparency entry: 1810477871
- Sigstore integration time:
-
Permalink:
AlvisoOculus/optionsahoy-mcp@5d33e5ffd9853a9111cafebd3171b34bf7a88d51 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AlvisoOculus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@5d33e5ffd9853a9111cafebd3171b34bf7a88d51 -
Trigger Event:
workflow_dispatch
-
Statement type: