graphcore-apps 0.5.0__py3-none-any.whl

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 (118) hide show
  1. agents/__init__.py +0 -0
  2. agents/apps.py +15 -0
  3. agents/authorization.py +62 -0
  4. agents/conf.py +78 -0
  5. agents/delegation.py +218 -0
  6. agents/entities/__init__.py +0 -0
  7. agents/entities/agent.py +16 -0
  8. agents/entities/conversation.py +23 -0
  9. agents/entities/instruction.py +7 -0
  10. agents/entities/message.py +30 -0
  11. agents/entities/profile.py +14 -0
  12. agents/entities/skill.py +8 -0
  13. agents/migrations/0001_initial.py +88 -0
  14. agents/migrations/0002_message_context_versions.py +16 -0
  15. agents/migrations/0003_compaction_threshold.py +21 -0
  16. agents/migrations/0004_agent_debug_context.py +16 -0
  17. agents/migrations/0005_conversation_last_active_at.py +34 -0
  18. agents/migrations/0006_tasks.py +21 -0
  19. agents/migrations/0007_agent_start_address.py +16 -0
  20. agents/migrations/__init__.py +0 -0
  21. agents/models.py +64 -0
  22. agents/persistence.py +18 -0
  23. agents/providers/__init__.py +0 -0
  24. agents/providers/anthropic.py +142 -0
  25. agents/providers/fake.py +51 -0
  26. agents/providers/google.py +186 -0
  27. agents/providers/openai.py +177 -0
  28. agents/providers/port.py +101 -0
  29. agents/providers/registry.py +40 -0
  30. agents/routes.py +5 -0
  31. agents/runtime/__init__.py +0 -0
  32. agents/runtime/compaction.py +29 -0
  33. agents/runtime/context.py +78 -0
  34. agents/runtime/dispatch.py +76 -0
  35. agents/runtime/effective_agent.py +70 -0
  36. agents/runtime/loop.py +454 -0
  37. agents/runtime/prompt.py +183 -0
  38. agents/runtime/resume.py +30 -0
  39. agents/runtime/tools.py +35 -0
  40. agents/specs/__init__.py +3 -0
  41. agents/specs/dsl.py +310 -0
  42. agents/specs/test_r01_agents.py +74 -0
  43. agents/specs/test_r02_conversations.py +146 -0
  44. agents/specs/test_r03_acts_as_the_sender.py +60 -0
  45. agents/specs/test_r04_context.py +63 -0
  46. agents/specs/test_r05_personal_configuration.py +86 -0
  47. agents/specs/test_r06_delegation.py +70 -0
  48. agents/specs/test_r07_sharing.py +103 -0
  49. agents/specs/test_r08_embedding.py +40 -0
  50. agents/specs/test_r09_finding.py +41 -0
  51. agents/specs/test_r10_clients.py +41 -0
  52. agents/strategies/__init__.py +0 -0
  53. agents/strategies/_schema.py +16 -0
  54. agents/strategies/agents.py +93 -0
  55. agents/strategies/context.py +45 -0
  56. agents/strategies/conversations.py +65 -0
  57. agents/strategies/instructions.py +62 -0
  58. agents/strategies/messages.py +56 -0
  59. agents/strategies/models.py +27 -0
  60. agents/strategies/profiles.py +43 -0
  61. agents/strategies/skills.py +47 -0
  62. agents/strategies/turn.py +47 -0
  63. agents/test_settings.py +6 -0
  64. agents/tests/__init__.py +0 -0
  65. agents/tests/support.py +94 -0
  66. agents/tests/test_agent_views.py +181 -0
  67. agents/tests/test_agents.py +166 -0
  68. agents/tests/test_anthropic_adapter.py +221 -0
  69. agents/tests/test_context.py +231 -0
  70. agents/tests/test_control.py +162 -0
  71. agents/tests/test_conversations.py +158 -0
  72. agents/tests/test_delegation.py +392 -0
  73. agents/tests/test_google_adapter.py +208 -0
  74. agents/tests/test_inspect.py +59 -0
  75. agents/tests/test_live_providers.py +69 -0
  76. agents/tests/test_openai_adapter.py +259 -0
  77. agents/tests/test_profiles.py +92 -0
  78. agents/tests/test_resumption.py +150 -0
  79. agents/tests/test_turns.py +230 -0
  80. agents/validation.py +48 -0
  81. agents_agent_frontend/__init__.py +3 -0
  82. agents_agent_frontend/agent_views.py +286 -0
  83. audio/__init__.py +0 -0
  84. audio/apps.py +14 -0
  85. audio/authorization.py +13 -0
  86. audio/conf.py +27 -0
  87. audio/entities/__init__.py +11 -0
  88. audio/entities/recording.py +10 -0
  89. audio/migrations/0001_initial.py +26 -0
  90. audio/migrations/__init__.py +0 -0
  91. audio/models.py +9 -0
  92. audio/persistence.py +6 -0
  93. audio/providers/__init__.py +0 -0
  94. audio/providers/fake.py +35 -0
  95. audio/providers/openai.py +50 -0
  96. audio/providers/port.py +31 -0
  97. audio/providers/registry.py +31 -0
  98. audio/specs/__init__.py +3 -0
  99. audio/specs/dsl.py +120 -0
  100. audio/specs/test_clients.py +20 -0
  101. audio/specs/test_dictation.py +87 -0
  102. audio/specs/test_privacy.py +45 -0
  103. audio/specs/test_vendor.py +59 -0
  104. audio/strategies/__init__.py +11 -0
  105. audio/strategies/recordings.py +88 -0
  106. audio/test_settings.py +6 -0
  107. audio/tests/__init__.py +0 -0
  108. audio/tests/test_openai_adapter.py +65 -0
  109. audio/tests/test_recordings.py +139 -0
  110. audio_agent_frontend/__init__.py +3 -0
  111. audio_agent_frontend/agent_views.py +11 -0
  112. graphcore_apps-0.5.0.dist-info/METADATA +14 -0
  113. graphcore_apps-0.5.0.dist-info/RECORD +118 -0
  114. graphcore_apps-0.5.0.dist-info/WHEEL +5 -0
  115. graphcore_apps-0.5.0.dist-info/entry_points.txt +7 -0
  116. graphcore_apps-0.5.0.dist-info/licenses/LICENSE +202 -0
  117. graphcore_apps-0.5.0.dist-info/licenses/NOTICE +2 -0
  118. graphcore_apps-0.5.0.dist-info/top_level.txt +4 -0
@@ -0,0 +1,65 @@
1
+ """The OpenAI adapter against the SDK itself, with the HTTP transport replaced."""
2
+ import httpx
3
+ from django.test import SimpleTestCase
4
+ from openai import DefaultAsyncHttpxClient
5
+
6
+ from audio.providers.openai import OpenAITranscriber
7
+ from audio.providers.port import ProviderError
8
+
9
+
10
+ def transcriber(handler) -> OpenAITranscriber:
11
+ client = DefaultAsyncHttpxClient(transport=httpx.MockTransport(handler))
12
+ return OpenAITranscriber('sk-test', 5, http_client=client)
13
+
14
+
15
+ def error(status: int, code: str, message: str = 'No.') -> httpx.Response:
16
+ return httpx.Response(status, json={"error": {"message": message, "type": code, "code": code}})
17
+
18
+
19
+ class OpenAITranscriberTests(SimpleTestCase):
20
+ async def test_the_audio_is_uploaded_as_a_named_file_and_the_text_returned(self):
21
+ sent = {}
22
+
23
+ def handler(request: httpx.Request) -> httpx.Response:
24
+ sent.update(url=str(request.url), body=request.content, auth=request.headers['authorization'])
25
+ return httpx.Response(200, json={"text": " Book the venue.\n"})
26
+
27
+ text = await transcriber(handler).transcribe('gpt-4o-mini-transcribe', b'AUDIO', 'audio/webm;codecs=opus', 'en')
28
+
29
+ self.assertEqual(text, 'Book the venue.')
30
+ self.assertEqual(sent['url'], 'https://api.openai.com/v1/audio/transcriptions')
31
+ self.assertEqual(sent['auth'], 'Bearer sk-test')
32
+ for part in (b'filename="audio.webm"', b'AUDIO', b'gpt-4o-mini-transcribe', b'name="language"\r\n\r\nen'):
33
+ self.assertIn(part, sent['body'])
34
+
35
+ async def test_an_unknown_audio_type_is_refused_before_any_call(self):
36
+ def handler(request):
37
+ raise AssertionError('called the vendor')
38
+
39
+ with self.assertRaises(ProviderError) as caught:
40
+ await transcriber(handler).transcribe('gpt-4o-mini-transcribe', b'AUDIO', 'video/quicktime')
41
+
42
+ self.assertEqual((caught.exception.code, caught.exception.retryable), ('unsupported_audio', False))
43
+
44
+ async def test_each_vendor_error_becomes_its_code(self):
45
+ cases = [
46
+ (error(429, 'rate_limit_exceeded'), 'rate_limit', True),
47
+ (error(500, 'server_error'), 'server_error', True),
48
+ (error(401, 'invalid_api_key'), 'auth', False),
49
+ (error(400, 'invalid_request_error'), 'bad_request', False),
50
+ ]
51
+ for response, code, retryable in cases:
52
+ with self.subTest(code=code), self.assertRaises(ProviderError) as caught:
53
+ await transcriber(lambda request, response=response: response).transcribe(
54
+ 'gpt-4o-mini-transcribe', b'AUDIO', 'audio/webm',
55
+ )
56
+ self.assertEqual((caught.exception.code, caught.exception.retryable), (code, retryable))
57
+
58
+ async def test_an_unreachable_vendor_is_retryable(self):
59
+ def handler(request):
60
+ raise httpx.ConnectError('down')
61
+
62
+ with self.assertRaises(ProviderError) as caught:
63
+ await transcriber(handler).transcribe('gpt-4o-mini-transcribe', b'AUDIO', 'audio/webm')
64
+
65
+ self.assertEqual((caught.exception.code, caught.exception.retryable), ('unreachable', True))
@@ -0,0 +1,139 @@
1
+ import base64
2
+
3
+ from django.test import override_settings
4
+
5
+ from graphcore.public.errors import Forbidden, InvalidRequest, StrategyFailed
6
+ from graphcore.public.testing import GraphCoreTestCase
7
+
8
+ from audio.entities.recording import Recording
9
+ from audio.providers import registry
10
+ from audio.providers.fake import FakeTranscriber
11
+ from audio.providers.port import ProviderError
12
+ from audio.strategies.recordings import OpenRecording, Transcribe
13
+
14
+ AUDIO = b'\x1aE\xdf\xa3 spoken words'
15
+ ENCODED = base64.b64encode(AUDIO).decode()
16
+
17
+
18
+ @override_settings(AUDIO_TRANSCRIPTION_MODEL='fake/listener')
19
+ class RecordingTestCase(GraphCoreTestCase):
20
+ def setUp(self):
21
+ super().setUp()
22
+ FakeTranscriber.reset()
23
+ registry.reset()
24
+
25
+ async def open(self, principal, purpose='agents.composer'):
26
+ completed = await self.run_strategy(principal, OpenRecording.request_constructor(purpose))
27
+ return completed.ret_val['recording_id']
28
+
29
+ async def transcribe(self, principal, recording_id, audio=ENCODED, mime_type='audio/webm', **fields):
30
+ return await self.run_strategy(
31
+ principal, Transcribe.request_constructor(recording_id, audio=audio, mime_type=mime_type, **fields),
32
+ )
33
+
34
+
35
+ class OpenRecordingTests(RecordingTestCase):
36
+ async def test_a_recording_is_top_level_and_owned_by_who_opened_it(self):
37
+ carl = await self.create_user('carl')
38
+
39
+ recording = await self.get_entity(carl, await self.open(carl))
40
+
41
+ self.assertIsInstance(recording, Recording)
42
+ self.assertEqual((recording.parent_id, recording.owner), (None, carl.principal_entity_id))
43
+ self.assertEqual((recording.purpose, recording.text, recording.take), ('agents.composer', '', 0))
44
+
45
+ async def test_opening_again_returns_the_same_recording_for_that_person_and_purpose(self):
46
+ carl = await self.create_user('carl')
47
+ dana = await self.create_user('dana')
48
+ first = await self.open(carl)
49
+
50
+ self.assertEqual(await self.open(carl), first)
51
+ self.assertNotEqual(await self.open(carl, purpose='notes.editor'), first)
52
+ self.assertNotEqual(await self.open(dana), first)
53
+
54
+
55
+ class TranscribeTests(RecordingTestCase):
56
+ async def test_the_spoken_words_become_the_text_and_a_new_take(self):
57
+ carl = await self.create_user('carl')
58
+ recording_id = await self.open(carl)
59
+ FakeTranscriber.play('Book the venue.', 'Then call the florist.')
60
+
61
+ first = await self.transcribe(carl, recording_id, language='en')
62
+ await self.transcribe(carl, recording_id, mime_type='audio/mp4')
63
+
64
+ self.assertEqual(first.ret_val, {'text': 'Book the venue.', 'take': 1})
65
+ recording = await self.get_entity(carl, recording_id)
66
+ self.assertEqual((recording.text, recording.take), ('Then call the florist.', 2))
67
+ self.assertEqual(FakeTranscriber.requests, [
68
+ {'model': 'listener', 'audio': AUDIO, 'mime_type': 'audio/webm', 'language': 'en'},
69
+ {'model': 'listener', 'audio': AUDIO, 'mime_type': 'audio/mp4', 'language': None},
70
+ ])
71
+
72
+ async def test_the_finished_request_does_not_keep_the_audio(self):
73
+ carl = await self.create_user('carl')
74
+
75
+ completed = await self.transcribe(carl, await self.open(carl))
76
+
77
+ self.assertEqual(completed.param_config['audio'], {'redacted': True, 'bytes': len(ENCODED)})
78
+ self.assertEqual(completed.param_config['mime_type'], 'audio/webm')
79
+
80
+ @override_settings(AUDIO_MAX_UPLOAD_BYTES=8)
81
+ async def test_audio_that_is_not_base64_or_empty_or_too_large_is_refused(self):
82
+ carl = await self.create_user('carl')
83
+ recording_id = await self.open(carl)
84
+
85
+ for audio in ('not base64!', '', ENCODED):
86
+ with self.subTest(audio=audio), self.assertRaises(InvalidRequest):
87
+ await self.transcribe(carl, recording_id, audio=audio)
88
+ self.assertEqual(FakeTranscriber.requests, [])
89
+
90
+ async def test_a_provider_failure_fails_the_run_and_leaves_the_recording(self):
91
+ carl = await self.create_user('carl')
92
+ recording_id = await self.open(carl)
93
+ FakeTranscriber.play(ProviderError('bad_request', 'Audio too short', retryable=False))
94
+
95
+ with self.assertRaisesRegex(StrategyFailed, 'bad_request: Audio too short'):
96
+ await self.transcribe(carl, recording_id)
97
+
98
+ recording = await self.get_entity(carl, recording_id)
99
+ self.assertEqual((recording.text, recording.take), ('', 0))
100
+
101
+ async def test_a_retryable_provider_failure_is_tried_again(self):
102
+ carl = await self.create_user('carl')
103
+ recording_id = await self.open(carl)
104
+ FakeTranscriber.play(ProviderError('rate_limit', 'Slow down', retryable=True), 'Second time lucky.')
105
+
106
+ completed = await self.transcribe(carl, recording_id)
107
+
108
+ self.assertEqual(completed.ret_val, {'text': 'Second time lucky.', 'take': 1})
109
+ self.assertEqual(len(FakeTranscriber.requests), 2)
110
+
111
+ @override_settings(AUDIO_TRANSCRIPTION_MODEL='openai/gpt-4o-mini-transcribe', OPENAI_API_KEY='')
112
+ async def test_a_missing_provider_key_is_named(self):
113
+ carl = await self.create_user('carl')
114
+ recording_id = await self.open(carl)
115
+
116
+ with self.assertRaisesRegex(StrategyFailed, 'OPENAI_API_KEY is not set'):
117
+ await self.transcribe(carl, recording_id)
118
+
119
+ async def test_a_recording_is_its_owners_alone(self):
120
+ carl = await self.create_user('carl')
121
+ dana = await self.create_user('dana')
122
+ recording_id = await self.open(carl)
123
+
124
+ with self.assertRaises(Forbidden):
125
+ await self.transcribe(dana, recording_id)
126
+ self.assertNotIsInstance(await self.get_entity(dana, recording_id), Recording)
127
+
128
+
129
+ class AgentViewTests(RecordingTestCase):
130
+ async def test_a_recording_reads_as_its_latest_text(self):
131
+ carl = await self.create_user('carl')
132
+ recording_id = await self.open(carl)
133
+ FakeTranscriber.play('Book the venue.')
134
+ await self.transcribe(carl, recording_id)
135
+
136
+ place = await self.open_place(carl, recording_id)
137
+
138
+ self.assertIn('Dictation for `agents.composer`, take 1.', place.text)
139
+ self.assertIn('Book the venue.', place.text)
@@ -0,0 +1,3 @@
1
+ # Agent views for the audio app. Every module in this package is
2
+ # imported at startup, and its module-level `@agent_view` functions are
3
+ # registered; `agent_views.py` is the conventional home for them.
@@ -0,0 +1,11 @@
1
+ """The audio app as places."""
2
+ from graphcore.agent_frontend import agent_view
3
+
4
+
5
+ @agent_view('audio.recording', default_for=['audio.Recording'])
6
+ async def recording(ctx, entity):
7
+ return [
8
+ f"Dictation for `{entity.purpose}`, take {entity.take}.",
9
+ entity.text or "Nothing dictated yet.",
10
+ "Recording needs a microphone, so it happens in the web app.",
11
+ ]
@@ -0,0 +1,14 @@
1
+ Metadata-Version: 2.4
2
+ Name: graphcore-apps
3
+ Version: 0.5.0
4
+ Summary: GraphCore built-in apps
5
+ License-Expression: Apache-2.0
6
+ Project-URL: Repository, https://github.com/graphcore-org/graphcore
7
+ Requires-Python: >=3.13
8
+ License-File: LICENSE
9
+ License-File: NOTICE
10
+ Requires-Dist: graphcore-kernel==0.5.0
11
+ Requires-Dist: anthropic<3,>=2
12
+ Requires-Dist: openai<3,>=2
13
+ Requires-Dist: google-genai<2,>=1
14
+ Dynamic: license-file
@@ -0,0 +1,118 @@
1
+ agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ agents/apps.py,sha256=mLoh_vA3jSTLExXkDOcJzCFJDWSFe9ZOdLzHw_5s5vg,630
3
+ agents/authorization.py,sha256=vsIWnF8VyBLDC-G2Enu2BBdSjurSf5ukiVbbw4TIq9s,2468
4
+ agents/conf.py,sha256=a1RL1AQ-1n8WY_gZmWhtwE839evW-TCed1OWsEzcfzA,2524
5
+ agents/delegation.py,sha256=qsdowc89VL5hwGm7U-sz-YsZdkCzoNkHsewNbfDTxWE,10734
6
+ agents/models.py,sha256=VD-Biv97o7TaWfeMVrEoIFPlQhtAPP6Yd7x8wFOJMRc,2854
7
+ agents/persistence.py,sha256=kQc60bYiHettl5wBpMbWqti08M03eVJt8agTni8gam0,756
8
+ agents/routes.py,sha256=DNbUXpBcjOBB9IebhIYzo7k6bgTR_cTv0-0clHyZzGU,143
9
+ agents/test_settings.py,sha256=hpGYjOs6yLMLo8PHctdUe-QIm4SY5a21naulrFg4bd0,294
10
+ agents/validation.py,sha256=uUTF8_ovkbaQ_-xfKT39yhCddgPO6HkT38X0YJiUor0,2067
11
+ agents/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
+ agents/entities/agent.py,sha256=ObUVNYq6p2pTz32r8lQLLZc5etEppBn4LXF-NarvUa0,433
13
+ agents/entities/conversation.py,sha256=9n345Q6wfxjM06Hg1KLCnRwr7HMRY7tPzWJAlnibShY,594
14
+ agents/entities/instruction.py,sha256=5AdiKA3c-1WUCK3HX6uzCU68ZhZ6XUMMZ7RaMuqVab8,148
15
+ agents/entities/message.py,sha256=Hg4XACW4tItnDXSRCx9LQE4DK-trRnpPZT-zexmfZqU,713
16
+ agents/entities/profile.py,sha256=eXolyvl6L-Gf6A6ihAL8wsndvhXDWWx1ioqYHC5oSRo,393
17
+ agents/entities/skill.py,sha256=3Yd2IbE4or8DiADZdzXR38zF4pfd2c3k-j7WP9cot18,168
18
+ agents/migrations/0001_initial.py,sha256=-7P4CsWOhpdf7o82g9laYt05WjViGMo1R22m16eNlCk,4839
19
+ agents/migrations/0002_message_context_versions.py,sha256=hz9Wf9qhzEd1vj8iqc8IPpfOIiQjZxw5lcIejr2iS3w,338
20
+ agents/migrations/0003_compaction_threshold.py,sha256=3zWxXlf6AVqa0oo8t_butoAZWvNr7mVn-QDd1U7kQwk,528
21
+ agents/migrations/0004_agent_debug_context.py,sha256=7QXCVS1O0KK4lfk03EJkDHNlt-_f5CYCZ5b5zg4YrAw,350
22
+ agents/migrations/0005_conversation_last_active_at.py,sha256=PBeWlhuvcd1-yk7ZOxYi8WsTx5thpDRE7U8O9jd4wEc,1258
23
+ agents/migrations/0006_tasks.py,sha256=xHYmmt5B21mz-TQ2FDEoMrRHzcu50iN2ljrxPKlTflw,531
24
+ agents/migrations/0007_agent_start_address.py,sha256=h_apNH6A7ZWePe1alC_DXW8AUk47KOLTXtGWpkYtOrM,345
25
+ agents/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
+ agents/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
+ agents/providers/anthropic.py,sha256=8afJukFZCW_73m9C85gIHlLYr9WiKuqKBAc8RYmFeaA,6827
28
+ agents/providers/fake.py,sha256=UO_WnbbcJrhApDYDBRzNBN5zxBoceVYVYHNyLLz1Z9E,1867
29
+ agents/providers/google.py,sha256=LMg0QR3w40_ruWPYvvecpzhHNbQe1bkUf2fE6bCEOKM,8297
30
+ agents/providers/openai.py,sha256=PSUD92Iw5PUHQzBzDPPZEFtWAwNPozeNbOOyA8ZIAww,8065
31
+ agents/providers/port.py,sha256=Lsba9-dRrXZkLa9_0lFCDqtCqxHWryaEcbf2AQx5EUc,2580
32
+ agents/providers/registry.py,sha256=0yjRL47Rh7fJ1mM0mzbY_CaLicZNVEIJjiKsqnmDWls,1490
33
+ agents/runtime/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
+ agents/runtime/compaction.py,sha256=IKlh33uN2CGC7ctCITqdTEfYP26K3ThyD12Eq6CReIU,1348
35
+ agents/runtime/context.py,sha256=t6A7_IbtojGqEgfCDH1_lmXx3yP1Z70C2s5LZMjgDEQ,3165
36
+ agents/runtime/dispatch.py,sha256=bf1jPozk8dXgQaOiOJFXZwUdIlUG9yKnBKgk28aCj_E,3088
37
+ agents/runtime/effective_agent.py,sha256=2rHbuoCYFcnqPE3LPfsQ7u-5DVWqs_IlapL7bCLOOp0,2780
38
+ agents/runtime/loop.py,sha256=9mT7wLqXVIzrbK8jhY74YNwhMPRJHruLrPek2kfwMEk,21674
39
+ agents/runtime/prompt.py,sha256=pvfz0M5qCBw48rWam6k_TOxg116uiBBEzHkgcUrynZM,8760
40
+ agents/runtime/resume.py,sha256=IvCaAfY26FqzTnfdRbxNfCaBN6_Gu8w5JsJsvPw_s5w,1462
41
+ agents/runtime/tools.py,sha256=MKXUDkhV967-dBreM5O-5w-_2UFCxcuTordkvPK7an4,1169
42
+ agents/specs/__init__.py,sha256=lJBkduGafU5SkWXoCg5usnAC4zqxUrPknZDOFHOlmH0,223
43
+ agents/specs/dsl.py,sha256=ZXG3r_RG1AsoxtgQ0Qq45SlifuI1hk0MW577klodd44,13596
44
+ agents/specs/test_r01_agents.py,sha256=0lux1gWfQ8IiZ2UDM3bszbPybCJ5cRFU2vuMtWYyNv8,3541
45
+ agents/specs/test_r02_conversations.py,sha256=YjA7Y4oqQFEMHKsqRMlPBX44GwrVWPEg4Vd-DXD7zHo,6100
46
+ agents/specs/test_r03_acts_as_the_sender.py,sha256=AbXRui8AcMXYUeAayRREJYi7tw62OdcbU7ktZLttY-A,2912
47
+ agents/specs/test_r04_context.py,sha256=U4PAviH5yiJzMXJ7I_pKAPN8nn7Axm19aGp4aMaUdZo,2771
48
+ agents/specs/test_r05_personal_configuration.py,sha256=_fkU_PLp5L7I4IRaG5lsfn0oKdlBYQLOeEOG-gtJ02E,3706
49
+ agents/specs/test_r06_delegation.py,sha256=yvKZGfobf9SaJnhqsMgScOErbqncWqUoFuXgjVtubrE,3448
50
+ agents/specs/test_r07_sharing.py,sha256=v--uM-GtLnKcQEpKa5VI6eAhqqY9TVU4UgSSopS9Xl8,4721
51
+ agents/specs/test_r08_embedding.py,sha256=JBNpvQYGL5yWpDL2Dim9_B8ktOtEy3hQ4XjDpnCb_Yg,1795
52
+ agents/specs/test_r09_finding.py,sha256=gL7rlkjeR6EHUxLvL26WJNxRYHo-SuZ_ojIzUr6J2NA,1564
53
+ agents/specs/test_r10_clients.py,sha256=dMx9G8hb0hxBOw4PL8tiAWBlVClR8Y_ONWzDn0lFV_Y,1755
54
+ agents/strategies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
+ agents/strategies/_schema.py,sha256=Zk3dZIOKUe3McWt-dnoO43n0-KER8mWcDU_1a981yXU,622
56
+ agents/strategies/agents.py,sha256=xS8yEDMClWXlZpdzQd-wPmtILFNPxaRWXNv1CmxZhG0,4216
57
+ agents/strategies/context.py,sha256=5qs8rhSMm3hmQh64qloPzlj5nmqY-Xlov6VFis8cf28,2162
58
+ agents/strategies/conversations.py,sha256=tyc8B6BLzzV6BOFrTBS2qNRbbNj8CeCnLGES1Jr8glc,2992
59
+ agents/strategies/instructions.py,sha256=DWwmWG-73tcYlkLGergXsEXAZDmuFhFDKW6rdBZ8kw4,2858
60
+ agents/strategies/messages.py,sha256=XOq3Sm78Lg5dK2nYeptKmgFt9QHbkoPqvfyBtJA_eBU,2883
61
+ agents/strategies/models.py,sha256=F3-opCjB637lScz-x6SOoxoUUAKfJ7smxhbs_Sg-mdI,1151
62
+ agents/strategies/profiles.py,sha256=xvxrMvtzboSO8oOeOXdOYClUeY8R7imPuejcnhOEht4,2095
63
+ agents/strategies/skills.py,sha256=RmTyeQt-QRHPekgLb3mzvJx5_pZKLVpIyhg4qCBIPdc,2022
64
+ agents/strategies/turn.py,sha256=h0zeLLNV_-ykywV02RWh1MAtRHqoMZ_EumhkHbpjccI,1899
65
+ agents/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
+ agents/tests/support.py,sha256=GlsfQ3sLX8udBRb7CTqKupM7Sj3axt8lHfX_fYeAe3A,4333
67
+ agents/tests/test_agent_views.py,sha256=iRzMFyxCr2PhEkvthR-8K7QqMmhQYjRP7XM-a07wGNU,9968
68
+ agents/tests/test_agents.py,sha256=7Eumv4fRHgsBJB84qry7IFHobgkQm1y902yHnnf85ds,8367
69
+ agents/tests/test_anthropic_adapter.py,sha256=uUhwPJNmEPNmqb0KA8GzQi7q-_AQq7G3b1Oqn9BCzjM,11628
70
+ agents/tests/test_context.py,sha256=0jJDVsb2VM4YhSMGUfB9w5o7liK0JvcEK9trEj9h30M,12415
71
+ agents/tests/test_control.py,sha256=yetrM2nEA-9gfMUE3zi7yIBrtV4P6J7Z9bf7E7vx05s,8021
72
+ agents/tests/test_conversations.py,sha256=hpwc2WzNrQQ-q8EEMLBNh_arOB5hRtCaY6beVsrPZLY,8619
73
+ agents/tests/test_delegation.py,sha256=VpyBR5T0-wajSRhYlYrjUhGNoE7-nYZKk9Cd5HDG3NM,20328
74
+ agents/tests/test_google_adapter.py,sha256=ZnnJnJGUeK3sJRn24DMW-I-oVPd9vohPwIlhhEzxjY4,10693
75
+ agents/tests/test_inspect.py,sha256=JJvM1dFfi1wjtDL0R5ddPj1h_aHQxNLIbB7G5f66BDE,3053
76
+ agents/tests/test_live_providers.py,sha256=KEtoaIS038JKrt4JcuZeCd1PkpDQTzqIiLC2eCCTeLU,3003
77
+ agents/tests/test_openai_adapter.py,sha256=9VVd6P8eQHRnfURj7ORFKiy0olwAKWPrtMf7f7n7yN0,13083
78
+ agents/tests/test_profiles.py,sha256=hiqTxxRn53XtYXonTdMEgH_3zAmiZqo9IejbnXDgBy4,4377
79
+ agents/tests/test_resumption.py,sha256=EPlPAshoRE0YnwZXDhp4PlFsiAK-_97JbfGf8KxSg4w,7017
80
+ agents/tests/test_turns.py,sha256=e65qMyvNSJm3dqdOGmqbiGd3lIzH7BW_NcgAPOJNpTo,11839
81
+ agents_agent_frontend/__init__.py,sha256=ozcmhnnWwG9jjuA2_4osAQTD2nLOJwiBcFpkDgr9Acw,204
82
+ agents_agent_frontend/agent_views.py,sha256=nVEpcldoKgl28NxuWPaL60wqBk5jQwzTGN4xpdLew8c,14781
83
+ audio/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
84
+ audio/apps.py,sha256=ZnbqM10srPPKKx1dkheBKFbukAaCzva3ExY8EhG8qHA,575
85
+ audio/authorization.py,sha256=01yWYqyXDCmMNnLbubcmZ05GWCm_PTnut719mNjt3qY,610
86
+ audio/conf.py,sha256=x8ImwW5GVXO-NVvMl6WtQhsPcFJlcsmo1zg7WPiyTPc,838
87
+ audio/models.py,sha256=sCdOJgVaPEDWFaPsgxn_LD78fiwOqdzJmI7KKdsLA_w,307
88
+ audio/persistence.py,sha256=eDXCS4x9FY8Mp5VifMpUGtAe3TAKKGhQhAk2a5agsg4,175
89
+ audio/test_settings.py,sha256=ttXU7HH8EpPaFbbeO9Nweze32ardC7PvEF1OnqjfOdA,291
90
+ audio/entities/__init__.py,sha256=pRiD0BkgO-KVz5Vsny5neB2rJtWxX5VuF524KWNcmIU,397
91
+ audio/entities/recording.py,sha256=zJaMPMJwzsTtTQr_HKSjf3EqGdTg4hZjEbZH7R1CZW4,271
92
+ audio/migrations/0001_initial.py,sha256=StZiTt6rHAGqWbpznEmoFXr3lyUaGff5NFtwK03yqBs,873
93
+ audio/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
94
+ audio/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
95
+ audio/providers/fake.py,sha256=KC9c8tcVD1k2vdDQ9CgFC9Fbq0TFzEDwjl2Peh9DC28,1288
96
+ audio/providers/openai.py,sha256=HUixAXpElhXjCZEj0H4PDZfla9bBtp_a-e4yOYlFNXQ,2288
97
+ audio/providers/port.py,sha256=W8zP3N5N1e2iTpqOID0L0R8zrUgGL6dF2nKAKU92dOY,1026
98
+ audio/providers/registry.py,sha256=Ii_M8XEiMtxZ2vrUjsTGGy96f5tMYu6acAd8h2cE1EA,1146
99
+ audio/specs/__init__.py,sha256=BvPz3nZglqaFsbSa6LjDs5G2vyuDaMlwUmQ0kAKDfDU,191
100
+ audio/specs/dsl.py,sha256=vEEJ8sd825vGtdJIrd60lZug5Gd42zppg1DzMdB6TMo,4608
101
+ audio/specs/test_clients.py,sha256=ZAe6z2OXlYvJRAHAenfwrvmQFMbUF0NUD5RC0mOmK7g,725
102
+ audio/specs/test_dictation.py,sha256=D6YLppn8V8lBKTCl1atLkzjxSPstRFunsw7ELrmqSn8,3366
103
+ audio/specs/test_privacy.py,sha256=Wt8fSKBOvqZk3VduzznlbxveXINsaN0IX3z5nCamCfM,1491
104
+ audio/specs/test_vendor.py,sha256=pVgJoSppJUpWNofLkm5M9BswELUH8XY2d-S7sA-DdKo,2239
105
+ audio/strategies/__init__.py,sha256=mqi2ur8Ctp7KIYdZDDvGJMCehOrBqxpnr9aT7cWrrRk,411
106
+ audio/strategies/recordings.py,sha256=aFAKoWnl4rz61lue245KnFSowNWsO7vvxQI2gHVnlEk,4007
107
+ audio/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
108
+ audio/tests/test_openai_adapter.py,sha256=WfEH7WJ0qzFpmsTqubv8WgCdgUVwbCF4iXUFyrRjLDY,3122
109
+ audio/tests/test_recordings.py,sha256=uxjRs0rAtIo0WzQs9a5GQ5PwNJoVTvEmdLNzc2kMyXI,6182
110
+ audio_agent_frontend/__init__.py,sha256=gPPvb46ES-ybdxHMyDk4wcvph3NMkcSY3_5w7J1a-H4,203
111
+ audio_agent_frontend/agent_views.py,sha256=IRJt3quv5MGVdf848jXz7D1DLI4NWYmnqTOnDVb4VJ0,383
112
+ graphcore_apps-0.5.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
113
+ graphcore_apps-0.5.0.dist-info/licenses/NOTICE,sha256=O2mV23MKwYlPOz9-8wsTSRNH3noH5-ie_sFFAvoOc_A,40
114
+ graphcore_apps-0.5.0.dist-info/METADATA,sha256=htWnZNkCZPQh9x9uSWHrddjnaoJz1jcdpLPuGLpmmG8,411
115
+ graphcore_apps-0.5.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
116
+ graphcore_apps-0.5.0.dist-info/entry_points.txt,sha256=W9TTjdO8XU3-BbDMGFyLXOaYBIwkWEeYjEanaPMKups,136
117
+ graphcore_apps-0.5.0.dist-info/top_level.txt,sha256=rU8quMDgA7VBvHUHggTVMAI5tPiyBjs2DEhxMIPSdug,56
118
+ graphcore_apps-0.5.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,7 @@
1
+ [graphcore.agent_frontends]
2
+ agents = agents_agent_frontend
3
+ audio = audio_agent_frontend
4
+
5
+ [graphcore.apps]
6
+ agents = agents
7
+ audio = audio
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,2 @@
1
+ GraphCore
2
+ Copyright 2026 Andrew Passero
@@ -0,0 +1,4 @@
1
+ agents
2
+ agents_agent_frontend
3
+ audio
4
+ audio_agent_frontend