gravity-schema 0.13.2__tar.gz → 0.13.3__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.
Files changed (139) hide show
  1. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/PKG-INFO +1 -1
  2. gravity_schema-0.13.3/gravity_schema/built_ins.py +194 -0
  3. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/googlecalendar.yaml +7 -4
  4. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/outlook.yaml +5 -3
  5. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/core_shapes.yaml +2 -0
  6. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/pyproject.toml +1 -1
  7. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_instance.py +4 -1
  8. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_vocabulary.py +9 -0
  9. gravity_schema-0.13.2/gravity_schema/built_ins.py +0 -85
  10. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/.gitignore +0 -0
  11. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/LICENSE +0 -0
  12. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/NOTICE +0 -0
  13. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/README.md +0 -0
  14. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/__init__.py +0 -0
  15. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/__main__.py +0 -0
  16. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/catalog.py +0 -0
  17. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/catalog.yaml +0 -0
  18. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/catalog_imported.yaml +0 -0
  19. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/contract.py +0 -0
  20. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/cron.py +0 -0
  21. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/describe.py +0 -0
  22. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/errors.py +0 -0
  23. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/export.py +0 -0
  24. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/gen_catalog.py +0 -0
  25. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/gen_vocabulary.py +0 -0
  26. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/instance.py +0 -0
  27. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/manifest.py +0 -0
  28. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/manifest_v2.py +0 -0
  29. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/rules.py +0 -0
  30. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/rules_cases.json +0 -0
  31. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/source_scan.py +0 -0
  32. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/specs.py +0 -0
  33. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/validation.py +0 -0
  34. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/__init__.py +0 -0
  35. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/__main__.py +0 -0
  36. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/capabilities.yaml +0 -0
  37. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/airtable.yaml +0 -0
  38. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/asana.yaml +0 -0
  39. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/browser_tool.yaml +0 -0
  40. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/composio_search.yaml +0 -0
  41. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/dropbox.yaml +0 -0
  42. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/exa.yaml +0 -0
  43. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/excel.yaml +0 -0
  44. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/firecrawl.yaml +0 -0
  45. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/github.yaml +0 -0
  46. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/gmail.yaml +0 -0
  47. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/googledocs.yaml +0 -0
  48. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/googledrive.yaml +0 -0
  49. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/googlesheets.yaml +0 -0
  50. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/googleslides.yaml +0 -0
  51. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/googletasks.yaml +0 -0
  52. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/hackernews.yaml +0 -0
  53. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/hubspot.yaml +0 -0
  54. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/instagram.yaml +0 -0
  55. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/jira.yaml +0 -0
  56. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/linear.yaml +0 -0
  57. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/linkedin.yaml +0 -0
  58. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/microsoft_teams.yaml +0 -0
  59. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/notion.yaml +0 -0
  60. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/perplexityai.yaml +0 -0
  61. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/pinterest.yaml +0 -0
  62. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/reddit.yaml +0 -0
  63. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/slack.yaml +0 -0
  64. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/tavily.yaml +0 -0
  65. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/connectors/youtube.yaml +0 -0
  66. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/generated_shapes.yaml +0 -0
  67. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/policy.yaml +0 -0
  68. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/airtable.json +0 -0
  69. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/asana.json +0 -0
  70. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/browser_tool.json +0 -0
  71. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/composio_search.json +0 -0
  72. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/dropbox.json +0 -0
  73. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/exa.json +0 -0
  74. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/excel.json +0 -0
  75. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/firecrawl.json +0 -0
  76. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/github.json +0 -0
  77. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/gmail.json +0 -0
  78. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/googlecalendar.json +0 -0
  79. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/googledocs.json +0 -0
  80. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/googledrive.json +0 -0
  81. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/googlesheets.json +0 -0
  82. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/googleslides.json +0 -0
  83. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/googletasks.json +0 -0
  84. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/hackernews.json +0 -0
  85. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/hubspot.json +0 -0
  86. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/instagram.json +0 -0
  87. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/jira.json +0 -0
  88. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/linear.json +0 -0
  89. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/linkedin.json +0 -0
  90. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/microsoft_teams.json +0 -0
  91. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/notion.json +0 -0
  92. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/outlook.json +0 -0
  93. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/perplexityai.json +0 -0
  94. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/pinterest.json +0 -0
  95. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/reddit.json +0 -0
  96. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/slack.json +0 -0
  97. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/tavily.json +0 -0
  98. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas/youtube.json +0 -0
  99. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/schemas.py +0 -0
  100. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/shapes.d/ochat.yaml +0 -0
  101. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/shapes.d/ocrm.yaml +0 -0
  102. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/shapes.d/ogh.yaml +0 -0
  103. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/shapes.d/oms.yaml +0 -0
  104. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/shapes.d/oweb.yaml +0 -0
  105. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/shapes.d/owork.yaml +0 -0
  106. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/shapes.d/shared.yaml +0 -0
  107. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/sync.py +0 -0
  108. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/verbs.d/ochat.yaml +0 -0
  109. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/verbs.d/ocrm.yaml +0 -0
  110. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/verbs.d/ogh.yaml +0 -0
  111. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/verbs.d/oms.yaml +0 -0
  112. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/verbs.d/oweb.yaml +0 -0
  113. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/verbs.d/owork.yaml +0 -0
  114. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/verbs.d/rchat.yaml +0 -0
  115. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/verbs.d/rfiles.yaml +0 -0
  116. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/verbs.d/rgh.yaml +0 -0
  117. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/verbs.d/rtrack.yaml +0 -0
  118. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/verbs.d/rwork.yaml +0 -0
  119. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/gravity_schema/vocabulary/verbs.yaml +0 -0
  120. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/schema/manifest.schema.json +0 -0
  121. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/conftest.py +0 -0
  122. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/fixtures/demo_manifests.yaml +0 -0
  123. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_accounts.py +0 -0
  124. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_actions_memory.py +0 -0
  125. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_catalog_parity.py +0 -0
  126. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_cron.py +0 -0
  127. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_describe.py +0 -0
  128. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_errors.py +0 -0
  129. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_generated_tables.py +0 -0
  130. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_json_schema.py +0 -0
  131. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_kind_outputs.py +0 -0
  132. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_manifest.py +0 -0
  133. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_manifest_v2.py +0 -0
  134. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_place_maker.py +0 -0
  135. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_rules.py +0 -0
  136. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_slots.py +0 -0
  137. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_source_scan.py +0 -0
  138. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_sync.py +0 -0
  139. {gravity_schema-0.13.2 → gravity_schema-0.13.3}/tests/test_validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: gravity-schema
3
- Version: 0.13.2
3
+ Version: 0.13.3
4
4
  Summary: Gravity agent manifest contract — models, validation, and JSON Schema export
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -0,0 +1,194 @@
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 ones 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
+ # Web search and reading on Gravity's accounts (0.13.3): no Exa or Tavily account for the user to connect.
81
+ "exa.search": {
82
+ "side_effect": "read",
83
+ "says": "Search the web with Exa",
84
+ "about": "Exa's web search on Gravity's account: up to 10 results (title, url, published date), without page "
85
+ "text (read pages with exa.contents). `category: company` keeps to companies' own homepages.",
86
+ # apps/agent-gateway: the EXA_SEARCH tool, run on Gravity's account (its v1 tool exa.search)
87
+ "inputs": {"query": "what to search for",
88
+ "numResults": "optional: how many results (1 to 10)",
89
+ "category": "optional: company, people, news, research paper, personal site, financial report "
90
+ "or github",
91
+ "includeDomains": "optional: only results from these domains (a list)",
92
+ "startPublishedDate": "optional: only pages published after this date (ISO 8601)"},
93
+ "words": ["search", "web", "exa", "company", "companies", "find", "lookalike", "people", "news", "lead"],
94
+ },
95
+ "exa.contents": {
96
+ "side_effect": "read",
97
+ "says": "Read web pages from Exa's index",
98
+ "about": "The text of up to 10 pages from Exa's index, on Gravity's account, for sites that refuse direct "
99
+ "reads. Check each URL's status: the call succeeds even when one page fails.",
100
+ # apps/agent-gateway: the EXA_GET_CONTENTS_ACTION tool, run on Gravity's account (its v1 tool exa.contents)
101
+ "inputs": {"urls": "the page URLs (a list, at most 10)",
102
+ "text": "optional: true (the default) for each page's text"},
103
+ "words": ["read", "page", "pages", "website", "content", "text", "exa", "blocked", "index"],
104
+ },
105
+ "tavily.search": {
106
+ "side_effect": "read",
107
+ "says": "Search the web or the news with Tavily",
108
+ "about": "Tavily's search on Gravity's account: results with title, url, a content snippet and a score. "
109
+ "`topic: news` with `days` for recent news; `search_depth: advanced` for harder questions.",
110
+ # apps/agent-gateway tavily.py TavilySearchTool (Tavily's API with Gravity's key)
111
+ "inputs": {"query": "what to search for",
112
+ "topic": "optional: general (the default) or news",
113
+ "search_depth": "optional: basic (the default) or advanced",
114
+ "max_results": "optional: how many results (1 to 20, default 5)",
115
+ "days": "optional: with topic news, how many days back",
116
+ "include_domains": "optional: only results from these domains (a list)",
117
+ "country": "optional: favour results from this country (its English name; general topic only)"},
118
+ "words": ["search", "web", "news", "tavily", "find", "recent", "funding", "launch"],
119
+ },
120
+ # The UK company register (Companies House), with Gravity's key (0.13.3). Free; UK companies only.
121
+ "companies_house.search": {
122
+ "side_effect": "read",
123
+ "says": "Find UK companies in the official register",
124
+ "about": "Companies House advanced search: UK companies by industry code (SIC), location, incorporation date "
125
+ "and status. Each item has the company number, name, status, SIC codes, incorporation date and "
126
+ "registered address.",
127
+ # apps/agent-gateway companies_house.py: GET /advanced-search/companies
128
+ "inputs": {"company_name_includes": "optional: words in the company name",
129
+ "sic_codes": "optional: industry codes, comma-separated (e.g. 87100 for nursing homes)",
130
+ "location": "optional: a town, city or postcode in the registered address",
131
+ "incorporated_from": "optional: incorporated on or after this date (YYYY-MM-DD)",
132
+ "incorporated_to": "optional: incorporated on or before this date (YYYY-MM-DD)",
133
+ "company_status": "optional: active (the default), dissolved...",
134
+ "size": "optional: how many (1 to 100, default 20)",
135
+ "start_index": "optional: skip this many, for the next page"},
136
+ "words": ["uk", "company", "companies", "register", "registry", "companies house", "sic", "firmographics"],
137
+ },
138
+ "companies_house.company": {
139
+ "side_effect": "read",
140
+ "says": "Read a UK company's register entry",
141
+ "about": "One UK company's Companies House profile by its company number: name, status, type, incorporation "
142
+ "date, SIC codes, registered office address and when its accounts are due.",
143
+ "inputs": {"company_number": "the Companies House company number (e.g. 08123456)"},
144
+ "words": ["uk", "company", "profile", "register", "companies house", "incorporated", "address"],
145
+ },
146
+ "companies_house.officers": {
147
+ "side_effect": "read",
148
+ "says": "List a UK company's directors",
149
+ "about": "A UK company's officers (directors and secretaries) from Companies House: name, role, appointed and "
150
+ "resigned dates, occupation and nationality.",
151
+ "inputs": {"company_number": "the Companies House company number"},
152
+ "words": ["uk", "directors", "officers", "owner", "founder", "people", "companies house", "leadership"],
153
+ },
154
+ "companies_house.filings": {
155
+ "side_effect": "read",
156
+ "says": "List a UK company's filings",
157
+ "about": "A UK company's filing history from Companies House, newest first: date, type and description. "
158
+ "`category: capital` shows new share allotments (a funding signal), `officers` director changes.",
159
+ "inputs": {"company_number": "the Companies House company number",
160
+ "category": "optional: capital, officers, accounts, confirmation-statement, incorporation...",
161
+ "items_per_page": "optional: how many (1 to 100, default 25)"},
162
+ "words": ["uk", "filings", "funding", "shares", "allotment", "directors", "companies house", "signal"],
163
+ },
164
+ # India's open government data (data.gov.in, Government Open Data Licence: credit the source), with Gravity's key.
165
+ "datagovin.udyam": {
166
+ "side_effect": "read",
167
+ "says": "Find Indian small businesses in the Udyam (MSME) register",
168
+ "about": "Records of the Udyam list of registered MSMEs on data.gov.in (about 45 million, updated daily): name, "
169
+ "address, pincode, activity (NIC) codes, registration date. No phone, email or website; many are sole "
170
+ "proprietors, so treat names as personal data. Answers carry the field names and the source page.",
171
+ # apps/agent-gateway vendor_search.py DataGovInTool (resource 8b68ae56-84cf-4728-a0a6-1be11028dea7)
172
+ "inputs": {"filters": "optional: field name -> exact value (an object), e.g. a state or district",
173
+ "limit": "optional: how many records (1 to 100, default 20)",
174
+ "offset": "optional: skip this many, for the next page"},
175
+ "words": ["india", "msme", "udyam", "small business", "sme", "register", "registry", "local"],
176
+ },
177
+ "datagovin.company_master": {
178
+ "side_effect": "read",
179
+ "says": "Look up Indian companies in the MCA company master data",
180
+ "about": "Records of the Registrar of Companies' company master data on data.gov.in (about 3.7 million): "
181
+ "CIN, name, status, class, authorised and paid-up capital, registered address, industrial activity, "
182
+ "registration date. No directors or LLPs. Answers carry the field names and the source page.",
183
+ # apps/agent-gateway vendor_search.py DataGovInTool (resource 4dbe5667-7b6b-41d7-82af-211562424d9a)
184
+ "inputs": {"filters": "optional: field name -> exact value (an object), e.g. a state or a company name",
185
+ "limit": "optional: how many records (1 to 100, default 20)",
186
+ "offset": "optional: skip this many, for the next page"},
187
+ "words": ["india", "company", "companies", "mca", "cin", "register", "registry", "roc", "firmographics"],
188
+ },
189
+ }
190
+
191
+
192
+ def binding_name(name: str) -> str:
193
+ """'supadata.get_transcript' -> 'built_ins.supadata_get_transcript'."""
194
+ return "built_ins." + name.replace(".", "_")
@@ -337,6 +337,7 @@ reads:
337
337
  description: description|clip(4000)
338
338
  calendar: ={target}
339
339
  link: htmlLink
340
+ video_link: hangoutLink ?? conferenceData.entryPoints[0].uri
340
341
  event.get:
341
342
  target: {resource: calendar, label: Calendar, required: false, default: primary}
342
343
  action: GOOGLECALENDAR_EVENTS_GET
@@ -463,12 +464,14 @@ writes:
463
464
  target: {resource: calendar, label: Calendar, required: false, default: primary}
464
465
  steps:
465
466
  - action: GOOGLECALENDAR_CREATE_EVENT
466
- # times as given: an offset (Z, +05:30) is kept, a time without one is read as UTC. No Meet link unless asked.
467
+ # times as given: an offset (Z, +05:30) is kept, a time without one is read as UTC. A Google Meet link only
468
+ # when asked (draft.video_call true); it comes back as video_link
467
469
  args: {calendar_id: "{target}", summary: "{draft.title}", start_datetime: "{draft.start}", end_datetime: "{draft.end}",
468
470
  attendees: "{draft.attendees}", location: "{draft.location}", description: "{draft.description}",
469
- create_meeting_room: false}
470
- save: {id: "data.response_data.id ?? data.id", link: "data.response_data.htmlLink ?? data.display_url ?? data.htmlLink"}
471
- returns: {id: id, title: draft.title, start: draft.start, link: link}
471
+ create_meeting_room: "{draft.video_call|bool ?? =false}"}
472
+ save: {id: "data.response_data.id ?? data.id", link: "data.response_data.htmlLink ?? data.display_url ?? data.htmlLink",
473
+ video_link: "data.response_data.hangoutLink ?? data.hangoutLink"}
474
+ returns: {id: id, title: draft.title, start: draft.start, link: link, video_link: video_link}
472
475
  read_back:
473
476
  action: GOOGLECALENDAR_EVENTS_GET
474
477
  args: {event_id: "{id}", calendar_id: "{target}"}
@@ -2762,9 +2762,11 @@ writes:
2762
2762
  args: {calendar_id: "{target}", user_id: me, subject: "{draft.title}", time_zone: UTC,
2763
2763
  start_datetime: "{draft.start|epoch_s|unix_to_iso|split(Z)|first}",
2764
2764
  end_datetime: "{draft.end|epoch_s|unix_to_iso|split(Z)|first}", is_all_day: "{draft.all_day}",
2765
- attendees_info: "{draft.attendees}", location: "{draft.location}", body: "{draft.description}"}
2766
- save: {id: data.id, link: data.webLink}
2767
- returns: {id: id, title: draft.title, start: draft.start, link: link}
2765
+ attendees_info: "{draft.attendees}", location: "{draft.location}", body: "{draft.description}",
2766
+ is_online_meeting: "{draft.video_call|bool}",
2767
+ online_meeting_provider: "{draft.video_call|bool|enum(true:teamsForBusiness)}"}
2768
+ save: {id: data.id, link: data.webLink, video_link: data.onlineMeeting.joinUrl}
2769
+ returns: {id: id, title: draft.title, start: draft.start, link: link, video_link: video_link}
2768
2770
  read_back:
2769
2771
  action: OUTLOOK_GET_EVENT
2770
2772
  args: {event_id: "{id}", user_id: me}
@@ -113,6 +113,8 @@ event:
113
113
  description: text?
114
114
  calendar: calendar?
115
115
  link: text?
116
+ video_call: bool?
117
+ video_link: text?
116
118
  states: [confirmed, tentative, canceled]
117
119
  filters: [text, calendar, attendee]
118
120
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "gravity-schema"
3
- version = "0.13.2"
3
+ version = "0.13.3"
4
4
  description = "Gravity agent manifest contract — models, validation, and JSON Schema export"
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -301,7 +301,10 @@ def test_built_ins_the_manifest_names_join_the_grant_and_the_bindings(manifest_v
301
301
 
302
302
 
303
303
  @pytest.mark.parametrize("name", ["web.fetch_proxied", "hunter.find_email", "hunter.verify_email",
304
- "treg.email_find", "scrapecreators.linkedin_profile"])
304
+ "treg.email_find", "scrapecreators.linkedin_profile", "exa.search", "exa.contents",
305
+ "tavily.search", "companies_house.search", "companies_house.company",
306
+ "companies_house.officers", "companies_house.filings", "datagovin.udyam",
307
+ "datagovin.company_master"])
305
308
  def test_gravitys_own_account_built_ins_are_reads_that_join_the_grant(manifest_v2_data, setup, name):
306
309
  from datetime import UTC, datetime
307
310
 
@@ -152,3 +152,12 @@ def test_exa_searches_companies_when_asked_for_the_company_kind():
152
152
  assert company["args"]["category"] == "company" and company["map"]["kind"] == "='company'"
153
153
  assert next(v for v in variants if not v.get("when"))["args"].get("category") is None # plain search unchanged
154
154
  assert "company" in VOCABULARY.shapes["web_result"].extra["kinds"]
155
+
156
+
157
+
158
+ def test_an_invite_gets_a_video_call_only_when_asked():
159
+ google = VOCABULARY.connectors["googlecalendar"].writes["event.create"]["steps"][0]["args"]
160
+ assert google["create_meeting_room"] == "{draft.video_call|bool ?? =false}"
161
+ outlook = VOCABULARY.connectors["outlook"].writes["event.create"]["steps"][0]["args"]
162
+ assert outlook["is_online_meeting"] == "{draft.video_call|bool}"
163
+ assert {"video_call", "video_link"} <= set(VOCABULARY.shapes["event"].fields)
@@ -1,85 +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
- # 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(".", "_")
File without changes
File without changes