proscenium 0.0.12__py3-none-any.whl → 0.0.13__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.
@@ -48,23 +48,20 @@ from rich.panel import Panel
48
48
  from rich.table import Table
49
49
  from rich.text import Text
50
50
 
51
- from aisuite import Client
51
+ from aisuite import Client as AISuiteClient
52
52
  from aisuite.framework.message import ChatCompletionMessageToolCall
53
53
 
54
54
  from proscenium.verbs.display.tools import complete_with_tools_panel
55
55
 
56
56
  log = logging.getLogger(__name__)
57
57
 
58
- provider_configs = {
59
- # TODO expose this
60
- "ollama": {"timeout": 180},
61
- }
62
-
63
- client = Client(provider_configs=provider_configs)
64
-
65
58
 
66
59
  def complete_simple(
67
- model_id: str, system_prompt: str, user_prompt: str, **kwargs
60
+ chat_completion_client: AISuiteClient,
61
+ model_id: str,
62
+ system_prompt: str,
63
+ user_prompt: str,
64
+ **kwargs,
68
65
  ) -> str:
69
66
 
70
67
  console = kwargs.pop("console", None)
@@ -96,7 +93,7 @@ model_id: {model_id}
96
93
  )
97
94
  console.print(call_panel)
98
95
 
99
- response = client.chat.completions.create(
96
+ response = chat_completion_client.chat.completions.create(
100
97
  model=model_id, messages=messages, **kwargs
101
98
  )
102
99
  response = response.choices[0].message.content
@@ -152,6 +149,7 @@ def evaluate_tool_calls(tool_call_message, tool_map: dict) -> list[dict]:
152
149
 
153
150
 
154
151
  def complete_for_tool_applications(
152
+ chat_completion_client: AISuiteClient,
155
153
  model_id: str,
156
154
  messages: list,
157
155
  tool_desc_list: list,
@@ -169,7 +167,7 @@ def complete_for_tool_applications(
169
167
  )
170
168
  console.print(panel)
171
169
 
172
- response = client.chat.completions.create(
170
+ response = chat_completion_client.chat.completions.create(
173
171
  model=model_id,
174
172
  messages=messages,
175
173
  temperature=temperature,
@@ -180,6 +178,7 @@ def complete_for_tool_applications(
180
178
 
181
179
 
182
180
  def complete_with_tool_results(
181
+ chat_completion_client: AISuiteClient,
183
182
  model_id: str,
184
183
  messages: list,
185
184
  tool_call_message: dict,
@@ -202,7 +201,7 @@ def complete_with_tool_results(
202
201
  )
203
202
  console.print(panel)
204
203
 
205
- response = client.chat.completions.create(
204
+ response = chat_completion_client.chat.completions.create(
206
205
  model=model_id,
207
206
  messages=messages,
208
207
  )
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: proscenium
3
- Version: 0.0.12
4
- Summary: Declare AI Agent Scenes
3
+ Version: 0.0.13
4
+ Summary: Declare Collaborative, Asynchronous Human To Agent Interactions
5
5
  Author-email: Adam Pingel <oss@pingel.org>
6
6
  License-Expression: Apache-2.0
7
7
  Requires-Python: >=3.11
@@ -20,11 +20,13 @@ Requires-Dist: click>=8.2.0; extra == "test"
20
20
  Requires-Dist: pytest>=8.3.5; extra == "test"
21
21
  Requires-Dist: neo4j>=5.28.1; extra == "test"
22
22
  Requires-Dist: gofannon>=0.25.13; extra == "test"
23
- Requires-Dist: lapidarist>=0.0.2; extra == "test"
23
+ Requires-Dist: lapidarist>=0.0.4; extra == "test"
24
24
  Dynamic: license-file
25
25
 
26
26
  # Proscenium
27
27
 
28
+ [![PyPI version](https://img.shields.io/pypi/v/proscenium.svg)](https://pypi.org/project/proscenium/)
29
+ [![PyPI - Downloads](https://img.shields.io/pypi/dm/proscenium)](https://pypi.org/project/proscenium/)
28
30
  [![CI](https://github.com/The-AI-Alliance/proscenium/actions/workflows/pytest.yml/badge.svg)](https://github.com/The-AI-Alliance/proscenium/actions/workflows/pytest.yml)
29
31
  [![PyPI](https://img.shields.io/pypi/v/proscenium)](https://pypi.org/project/proscenium/)
30
32
  [![License](https://img.shields.io/github/license/The-AI-Alliance/proscenium)](https://github.com/The-AI-Alliance/proscenium/tree/main?tab=Apache-2.0-1-ov-file#readme)
@@ -11,16 +11,16 @@ proscenium/patterns/rag.py,sha256=iNPL7i8zfhEGIZAI7FjAs5yKgN1iV_E-PcJiQFrm7lE,23
11
11
  proscenium/patterns/tools.py,sha256=f2CD6f7CYiSs0Tm1Ff1sOL5Ti6DqJ5HQvMI7NmIgqNs,1740
12
12
  proscenium/util/__init__.py,sha256=FC1hjA37VvmVpF9-OlYNp9TjArH6etr6KiAvF9t_6lI,679
13
13
  proscenium/verbs/__init__.py,sha256=nDWNd6_TSf4vDQuHVBoAf4QfZCB3ZUFQ0M7XvifNJ-g,78
14
- proscenium/verbs/complete.py,sha256=Y1T49OfAV7K8p0DMzE4aVqtkgVfjUqb6IeOazzdYGow,5071
14
+ proscenium/verbs/complete.py,sha256=oRvIt6NR9yhzEHpT1BRKAmf05hVXI91v83A-7OSo-zs,5147
15
15
  proscenium/verbs/display.py,sha256=hHFmktyJtjYLi4I1-8HUfmsuoMTIxc6JFfczASBsCbI,260
16
16
  proscenium/verbs/invoke.py,sha256=-Bk7Pp0EEwRTS0MJUlViZeUNo8wxnDKJj5q78KU4CdM,339
17
17
  proscenium/verbs/remember.py,sha256=Hh9BDRAYf7MGeMD4MzU73p6Q28KrSiLWPx4GjTW1amQ,296
18
18
  proscenium/verbs/display/__init__.py,sha256=GXuvaMld8tzfJGngHdwVT-YLnuRmW2G0pMdti9Vj53s,238
19
19
  proscenium/verbs/display/chat.py,sha256=2THBUdhG3cIIVZOnJ_AMYL4nWXKFG2cuSkX6wkm48yQ,1148
20
20
  proscenium/verbs/display/tools.py,sha256=eR5g-r7MGKFZY0qg-ndkW3p0mfbupV0UaAUFqJPfnNM,1491
21
- proscenium-0.0.12.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
22
- proscenium-0.0.12.dist-info/METADATA,sha256=G_d8cWVfT-bv8zBlmgK0DejMHvFGrJSS09FZyIVTz0w,1984
23
- proscenium-0.0.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
- proscenium-0.0.12.dist-info/entry_points.txt,sha256=bbrDWv4WKIx9UROGXcyH0eo40F8SNpDQKvXxoE8BTHI,58
25
- proscenium-0.0.12.dist-info/top_level.txt,sha256=aiTgQy73e21wnSSxM5iICXmXT3zldN8cFKeXpvJ5Xx4,11
26
- proscenium-0.0.12.dist-info/RECORD,,
21
+ proscenium-0.0.13.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
22
+ proscenium-0.0.13.dist-info/METADATA,sha256=50Uqw56v2u2hdl8onbJWYfXSqPMgSdK_0Y6djW68OrA,2229
23
+ proscenium-0.0.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
+ proscenium-0.0.13.dist-info/entry_points.txt,sha256=bbrDWv4WKIx9UROGXcyH0eo40F8SNpDQKvXxoE8BTHI,58
25
+ proscenium-0.0.13.dist-info/top_level.txt,sha256=aiTgQy73e21wnSSxM5iICXmXT3zldN8cFKeXpvJ5Xx4,11
26
+ proscenium-0.0.13.dist-info/RECORD,,