gravity-schema 0.13.0__tar.gz → 0.13.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/PKG-INFO +1 -1
- gravity_schema-0.13.2/gravity_schema/built_ins.py +85 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/exa.yaml +11 -4
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/core_shapes.yaml +2 -2
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/pyproject.toml +1 -1
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_instance.py +16 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_vocabulary.py +8 -0
- gravity_schema-0.13.0/gravity_schema/built_ins.py +0 -32
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/.gitignore +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/LICENSE +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/NOTICE +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/README.md +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/__init__.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/__main__.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/catalog.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/catalog.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/catalog_imported.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/contract.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/cron.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/describe.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/errors.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/export.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/gen_catalog.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/gen_vocabulary.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/instance.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/manifest.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/manifest_v2.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/rules.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/rules_cases.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/source_scan.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/specs.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/validation.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/__init__.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/__main__.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/capabilities.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/airtable.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/asana.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/browser_tool.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/composio_search.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/dropbox.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/excel.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/firecrawl.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/github.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/gmail.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/googlecalendar.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/googledocs.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/googledrive.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/googlesheets.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/googleslides.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/googletasks.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/hackernews.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/hubspot.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/instagram.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/jira.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/linear.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/linkedin.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/microsoft_teams.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/notion.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/outlook.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/perplexityai.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/pinterest.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/reddit.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/slack.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/tavily.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/youtube.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/generated_shapes.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/policy.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/airtable.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/asana.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/browser_tool.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/composio_search.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/dropbox.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/exa.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/excel.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/firecrawl.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/github.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/gmail.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/googlecalendar.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/googledocs.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/googledrive.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/googlesheets.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/googleslides.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/googletasks.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/hackernews.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/hubspot.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/instagram.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/jira.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/linear.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/linkedin.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/microsoft_teams.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/notion.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/outlook.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/perplexityai.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/pinterest.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/reddit.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/slack.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/tavily.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/youtube.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/shapes.d/ochat.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/shapes.d/ocrm.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/shapes.d/ogh.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/shapes.d/oms.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/shapes.d/oweb.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/shapes.d/owork.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/shapes.d/shared.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/sync.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/ochat.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/ocrm.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/ogh.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/oms.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/oweb.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/owork.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/rchat.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/rfiles.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/rgh.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/rtrack.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/rwork.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/schema/manifest.schema.json +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/conftest.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/fixtures/demo_manifests.yaml +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_accounts.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_actions_memory.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_catalog_parity.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_cron.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_describe.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_errors.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_generated_tables.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_json_schema.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_kind_outputs.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_manifest.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_manifest_v2.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_place_maker.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_rules.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_slots.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_source_scan.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_sync.py +0 -0
- {gravity_schema-0.13.0 → gravity_schema-0.13.2}/tests/test_validation.py +0 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"""Tools built into the gateway: no app the user connects, so no capability to pick an app for.
|
|
2
|
+
|
|
3
|
+
An agent names the ones it uses in its manifest (`built_ins: [supadata.get_transcript]`). Each one it names goes
|
|
4
|
+
into its runs' grant as (<name>, "built_in") and becomes a binding (`built_ins.<name>`), so the gateway lists and
|
|
5
|
+
runs a built-in only for a run whose grant holds it, like any capability. Builders find them with
|
|
6
|
+
`gravity capabilities` (listed after the shapes) and `gravity help <words>` (matched on `words`).
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from typing import Any
|
|
12
|
+
|
|
13
|
+
BUILT_IN_APP = "built_in"
|
|
14
|
+
|
|
15
|
+
BUILT_INS: dict[str, dict[str, Any]] = {
|
|
16
|
+
"supadata.get_transcript": {
|
|
17
|
+
"side_effect": "read",
|
|
18
|
+
"says": "Get the transcript of a YouTube video", # as users read it (describe.py)
|
|
19
|
+
"about": "The transcript of a YouTube video, fetched with the caller's own Supadata API key (`api_key`: "
|
|
20
|
+
"declare it as a `secret` input).",
|
|
21
|
+
# what the gateway's tool takes (apps/agent-gateway server.py SupadataTool; a gateway test keeps them equal)
|
|
22
|
+
"inputs": {"url": "the YouTube video URL",
|
|
23
|
+
"api_key": "the user's Supadata API key, from a `secret` input",
|
|
24
|
+
"text": "optional: plain text (true, the default) or timed segments (false)"},
|
|
25
|
+
"words": ["transcript", "transcripts", "youtube", "video", "videos", "captions", "subtitles", "supadata"],
|
|
26
|
+
},
|
|
27
|
+
# The four below run on Gravity's own accounts and are charged to the run's budget, as their v1 tools are.
|
|
28
|
+
"web.fetch_proxied": {
|
|
29
|
+
"side_effect": "read",
|
|
30
|
+
"says": "Read a web page through Gravity's proxies",
|
|
31
|
+
"about": "A public page or API read through Gravity's rotating proxies, for sites that refuse cloud addresses. "
|
|
32
|
+
"GET only; returns the final url, status, content_type and content.",
|
|
33
|
+
# apps/agent-gateway server.py ProxiedFetchTool
|
|
34
|
+
"inputs": {"url": "the http(s) URL to read",
|
|
35
|
+
"format": "optional: text (default, HTML reduced to readable text) or raw (the body as sent)",
|
|
36
|
+
"max_chars": "optional: cut the content at this many characters (default 50000, at most 200000)"},
|
|
37
|
+
"words": ["proxy", "proxied", "fetch", "scrape", "page", "website", "blocked", "refused"],
|
|
38
|
+
},
|
|
39
|
+
"hunter.find_email": {
|
|
40
|
+
"side_effect": "read",
|
|
41
|
+
"says": "Find a person's work email",
|
|
42
|
+
"about": "The most likely work email for a person from their name and company domain, with Hunter's confidence "
|
|
43
|
+
"score, on Gravity's account.",
|
|
44
|
+
# apps/agent-gateway: the HUNTER_EMAIL_FINDER tool, run on Gravity's account
|
|
45
|
+
"inputs": {"domain": "the company's domain",
|
|
46
|
+
"first_name": "the person's first name",
|
|
47
|
+
"last_name": "the person's last name",
|
|
48
|
+
"max_duration": "optional: seconds Hunter may take (3 to 20)"},
|
|
49
|
+
"words": ["email", "emails", "work", "find", "finder", "hunter", "lead", "leads", "contact", "prospect"],
|
|
50
|
+
},
|
|
51
|
+
"hunter.verify_email": {
|
|
52
|
+
"side_effect": "read",
|
|
53
|
+
"says": "Check an email address is deliverable",
|
|
54
|
+
"about": "Whether an email address is deliverable (valid, accept_all, risky or invalid) before writing to it, "
|
|
55
|
+
"on Gravity's Hunter account.",
|
|
56
|
+
# apps/agent-gateway: the HUNTER_EMAIL_VERIFIER tool, run on Gravity's account
|
|
57
|
+
"inputs": {"email": "the address to check"},
|
|
58
|
+
"words": ["email", "verify", "verifier", "deliverable", "bounce", "hunter", "check"],
|
|
59
|
+
},
|
|
60
|
+
"treg.email_find": {
|
|
61
|
+
"side_effect": "read",
|
|
62
|
+
"says": "Find and verify a person's work email",
|
|
63
|
+
"about": "A person's work email from their LinkedIn URL, or from a full name and the company's email domain, "
|
|
64
|
+
"verified in the same call, on Gravity's lookup account.",
|
|
65
|
+
# apps/agent-gateway treg.py TregEmailFindTool
|
|
66
|
+
"inputs": {"linkedin_url": "the person's LinkedIn profile URL",
|
|
67
|
+
"name": "the person's full name (with domain, instead of linkedin_url)",
|
|
68
|
+
"domain": "the company's email domain (with name, instead of linkedin_url)"},
|
|
69
|
+
"words": ["email", "emails", "work", "find", "verify", "treg", "lead", "leads", "contact", "prospect"],
|
|
70
|
+
},
|
|
71
|
+
"scrapecreators.linkedin_profile": {
|
|
72
|
+
"side_effect": "read",
|
|
73
|
+
"says": "Read a public LinkedIn profile",
|
|
74
|
+
"about": "One public LinkedIn person profile by URL (experience, education, about and recent activity), "
|
|
75
|
+
"without the person's or the user's login, on Gravity's ScrapeCreators account.",
|
|
76
|
+
# apps/agent-gateway: the SCRAPECREATORS_GET_LINKEDIN_PROFILE tool, run on Gravity's account
|
|
77
|
+
"inputs": {"url": "the LinkedIn profile URL"},
|
|
78
|
+
"words": ["linkedin", "profile", "person", "people", "experience", "lead", "leads", "prospect"],
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def binding_name(name: str) -> str:
|
|
84
|
+
"""'supadata.get_transcript' -> 'built_ins.supadata_get_transcript'."""
|
|
85
|
+
return "built_ins." + name.replace(".", "_")
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/exa.yaml
RENAMED
|
@@ -131,10 +131,17 @@ actions:
|
|
|
131
131
|
|
|
132
132
|
reads:
|
|
133
133
|
web_result.search:
|
|
134
|
-
action: EXA_SEARCH
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
- action: EXA_SEARCH
|
|
135
|
+
args: {query: "{filters.text}", numResults: 10, contents: {text: {maxCharacters: 500}}}
|
|
136
|
+
records: data.results[]
|
|
137
|
+
map: {title: title, url: url, kind: "='web'", snippet: "summary ?? text|clip(500)", published: publishedDate|iso, score: score}
|
|
138
|
+
# filters {kind: company}: Exa's company index, so results are companies' own homepages (verified live with an Exa key,
|
|
139
|
+
# 2026-11-02: "dental clinic in Pune" gave three clinic sites, no directories)
|
|
140
|
+
- when: {kind: company}
|
|
141
|
+
action: EXA_SEARCH
|
|
142
|
+
args: {query: "{filters.text}", category: company, numResults: 10, contents: {text: {maxCharacters: 500}}}
|
|
143
|
+
records: data.results[]
|
|
144
|
+
map: {title: title, url: url, kind: "='company'", snippet: "summary ?? text|clip(500)", published: publishedDate|iso, score: score}
|
|
138
145
|
web_page.get:
|
|
139
146
|
action: EXA_GET_CONTENTS_ACTION
|
|
140
147
|
args: {urls: ["{args.url}"], text: true}
|
|
@@ -252,7 +252,7 @@ video:
|
|
|
252
252
|
|
|
253
253
|
web_result:
|
|
254
254
|
kind: record
|
|
255
|
-
description: One result of a web search; a news, scholar or
|
|
255
|
+
description: One result of a web search; a news, scholar, image or company search gives results of that kind.
|
|
256
256
|
fields:
|
|
257
257
|
title: text
|
|
258
258
|
url: text
|
|
@@ -261,7 +261,7 @@ web_result:
|
|
|
261
261
|
source: text?
|
|
262
262
|
published: time?
|
|
263
263
|
score: number?
|
|
264
|
-
kinds: [web, news, scholar, image]
|
|
264
|
+
kinds: [web, news, scholar, image, company]
|
|
265
265
|
filters: [text, kind, site]
|
|
266
266
|
|
|
267
267
|
web_page:
|
|
@@ -300,6 +300,22 @@ def test_built_ins_the_manifest_names_join_the_grant_and_the_bindings(manifest_v
|
|
|
300
300
|
assert not any(n.startswith("built_ins.") for n in delivery_token_body(m, Instance.model_validate(setup))["bindings"])
|
|
301
301
|
|
|
302
302
|
|
|
303
|
+
@pytest.mark.parametrize("name", ["web.fetch_proxied", "hunter.find_email", "hunter.verify_email",
|
|
304
|
+
"treg.email_find", "scrapecreators.linkedin_profile"])
|
|
305
|
+
def test_gravitys_own_account_built_ins_are_reads_that_join_the_grant(manifest_v2_data, setup, name):
|
|
306
|
+
from datetime import UTC, datetime
|
|
307
|
+
|
|
308
|
+
from gravity_schema import BUILT_INS, run_token_body
|
|
309
|
+
from gravity_schema.built_ins import binding_name
|
|
310
|
+
|
|
311
|
+
assert BUILT_INS[name]["side_effect"] == "read" and BUILT_INS[name]["inputs"] and BUILT_INS[name]["words"]
|
|
312
|
+
manifest_v2_data["built_ins"] = [name]
|
|
313
|
+
body = run_token_body(validate_manifest(manifest_v2_data), Instance.model_validate(setup), now=datetime(2026, 11, 2, tzinfo=UTC))
|
|
314
|
+
assert [name, "built_in"] in body["grant"]
|
|
315
|
+
assert body["bindings"][binding_name(name)]["built_in"] == name
|
|
316
|
+
assert binding_name(name) not in body["approvals"]
|
|
317
|
+
|
|
318
|
+
|
|
303
319
|
def test_only_known_built_ins_can_be_named(manifest_v2_data):
|
|
304
320
|
manifest_v2_data["built_ins"] = ["shell.run"]
|
|
305
321
|
with pytest.raises(ManifestValidationError) as exc:
|
|
@@ -144,3 +144,11 @@ def test_a_designed_shape_has_the_same_fields_on_every_app(tmp_path):
|
|
|
144
144
|
assert any("'nothing_like_it' is not a generated shape" in p for p in problems)
|
|
145
145
|
assert any("branch_protection.Url is not a lowercase identifier" in p for p in problems)
|
|
146
146
|
assert any("branch_protection.rules has unknown type" in p for p in problems)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
def test_exa_searches_companies_when_asked_for_the_company_kind():
|
|
150
|
+
variants = VOCABULARY.connectors["exa"].reads["web_result.search"]
|
|
151
|
+
company = next(v for v in variants if v.get("when") == {"kind": "company"})
|
|
152
|
+
assert company["args"]["category"] == "company" and company["map"]["kind"] == "='company'"
|
|
153
|
+
assert next(v for v in variants if not v.get("when"))["args"].get("category") is None # plain search unchanged
|
|
154
|
+
assert "company" in VOCABULARY.shapes["web_result"].extra["kinds"]
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"""Tools built into the gateway: no app the user connects, so no capability to pick an app for.
|
|
2
|
-
|
|
3
|
-
An agent names the ones it uses in its manifest (`built_ins: [supadata.get_transcript]`). Each one it names goes
|
|
4
|
-
into its runs' grant as (<name>, "built_in") and becomes a binding (`built_ins.<name>`), so the gateway lists and
|
|
5
|
-
runs a built-in only for a run whose grant holds it, like any capability. Builders find them with
|
|
6
|
-
`gravity capabilities` (listed after the shapes) and `gravity help <words>` (matched on `words`).
|
|
7
|
-
"""
|
|
8
|
-
|
|
9
|
-
from __future__ import annotations
|
|
10
|
-
|
|
11
|
-
from typing import Any
|
|
12
|
-
|
|
13
|
-
BUILT_IN_APP = "built_in"
|
|
14
|
-
|
|
15
|
-
BUILT_INS: dict[str, dict[str, Any]] = {
|
|
16
|
-
"supadata.get_transcript": {
|
|
17
|
-
"side_effect": "read",
|
|
18
|
-
"says": "Get the transcript of a YouTube video", # as users read it (describe.py)
|
|
19
|
-
"about": "The transcript of a YouTube video, fetched with the caller's own Supadata API key (`api_key`: "
|
|
20
|
-
"declare it as a `secret` input).",
|
|
21
|
-
# what the gateway's tool takes (apps/agent-gateway server.py SupadataTool; a gateway test keeps them equal)
|
|
22
|
-
"inputs": {"url": "the YouTube video URL",
|
|
23
|
-
"api_key": "the user's Supadata API key, from a `secret` input",
|
|
24
|
-
"text": "optional: plain text (true, the default) or timed segments (false)"},
|
|
25
|
-
"words": ["transcript", "transcripts", "youtube", "video", "videos", "captions", "subtitles", "supadata"],
|
|
26
|
-
},
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
def binding_name(name: str) -> str:
|
|
31
|
-
"""'supadata.get_transcript' -> 'built_ins.supadata_get_transcript'."""
|
|
32
|
-
return "built_ins." + name.replace(".", "_")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/airtable.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/asana.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/dropbox.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/excel.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/firecrawl.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/github.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/gmail.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/googledocs.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/hackernews.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/hubspot.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/instagram.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/jira.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/linear.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/linkedin.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/notion.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/outlook.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/pinterest.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/reddit.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/slack.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/tavily.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/connectors/youtube.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/generated_shapes.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/airtable.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/asana.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/browser_tool.json
RENAMED
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/dropbox.json
RENAMED
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/excel.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/firecrawl.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/github.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/gmail.json
RENAMED
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/googledocs.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/googledrive.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/googlesheets.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/googleslides.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/googletasks.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/hackernews.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/hubspot.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/instagram.json
RENAMED
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/linear.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/linkedin.json
RENAMED
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/notion.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/outlook.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/perplexityai.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/pinterest.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/reddit.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/slack.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/tavily.json
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/schemas/youtube.json
RENAMED
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/shapes.d/ochat.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/shapes.d/ocrm.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/shapes.d/oweb.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/shapes.d/owork.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/shapes.d/shared.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/ochat.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/owork.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/rchat.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/rfiles.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/rtrack.yaml
RENAMED
|
File without changes
|
{gravity_schema-0.13.0 → gravity_schema-0.13.2}/gravity_schema/vocabulary/verbs.d/rwork.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|