fast-agent-mcp 0.2.14__py3-none-any.whl → 0.2.16__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.
- {fast_agent_mcp-0.2.14.dist-info → fast_agent_mcp-0.2.16.dist-info}/METADATA +1 -1
- {fast_agent_mcp-0.2.14.dist-info → fast_agent_mcp-0.2.16.dist-info}/RECORD +9 -9
- mcp_agent/config.py +4 -7
- mcp_agent/core/enhanced_prompt.py +6 -5
- mcp_agent/core/interactive_prompt.py +70 -50
- mcp_agent/llm/providers/augmented_llm_generic.py +4 -2
- {fast_agent_mcp-0.2.14.dist-info → fast_agent_mcp-0.2.16.dist-info}/WHEEL +0 -0
- {fast_agent_mcp-0.2.14.dist-info → fast_agent_mcp-0.2.16.dist-info}/entry_points.txt +0 -0
- {fast_agent_mcp-0.2.14.dist-info → fast_agent_mcp-0.2.16.dist-info}/licenses/LICENSE +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: fast-agent-mcp
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.16
|
4
4
|
Summary: Define, Prompt and Test MCP enabled Agents and Workflows
|
5
5
|
Author-email: Shaun Smith <fastagent@llmindset.co.uk>, Sarmad Qadri <sarmad@lastmileai.dev>
|
6
6
|
License: Apache License
|
@@ -1,6 +1,6 @@
|
|
1
1
|
mcp_agent/__init__.py,sha256=-AIoeL4c9UAp_P4U0z-uIWTTmQWdihOis5nbQ5L_eao,1664
|
2
2
|
mcp_agent/app.py,sha256=jBmzYM_o50g8vhlTgkkf5TGiBWNbXWViYnd0WANbpzo,10276
|
3
|
-
mcp_agent/config.py,sha256=
|
3
|
+
mcp_agent/config.py,sha256=Fr29xaR6nkEPv6dt5XFMNg4vjh6IeyaFmRC1T0cxk-Y,12088
|
4
4
|
mcp_agent/console.py,sha256=Gjf2QLFumwG1Lav__c07X_kZxxEUSkzV-1_-YbAwcwo,813
|
5
5
|
mcp_agent/context.py,sha256=pp_F1Q1jgAxGrRccSZJutn1JUxYfVue-St3S8tUyptM,7903
|
6
6
|
mcp_agent/context_dependent.py,sha256=QXfhw3RaQCKfscEEBRGuZ3sdMWqkgShz2jJ1ivGGX1I,1455
|
@@ -30,11 +30,11 @@ mcp_agent/core/agent_app.py,sha256=5nQJNo8DocIRWiX4pVKAHUZF8s6HWpc-hJnfzl_1v1c,9
|
|
30
30
|
mcp_agent/core/agent_types.py,sha256=jAYYpcya_Gvc_PtEXmJh7_HgvgIUQx4so_5M-pkpBoM,1459
|
31
31
|
mcp_agent/core/direct_decorators.py,sha256=4e_C4_UGnqSnu8y4Wjb6px_9XMktBxebzr91v57MKb4,14450
|
32
32
|
mcp_agent/core/direct_factory.py,sha256=rsnxnjvslur7fuptCQfCkUTFbwguVM-FU1Yh6AJOsjg,17842
|
33
|
-
mcp_agent/core/enhanced_prompt.py,sha256=
|
33
|
+
mcp_agent/core/enhanced_prompt.py,sha256=kEgeD7F1s8LRZDc3Xr6CIxQxewxXy9z-0xZsxfIblsY,18851
|
34
34
|
mcp_agent/core/error_handling.py,sha256=xoyS2kLe0eG0bj2eSJCJ2odIhGUve2SbDR7jP-A-uRw,624
|
35
35
|
mcp_agent/core/exceptions.py,sha256=ENAD_qGG67foxy6vDkIvc-lgopIUQy6O7zvNPpPXaQg,2289
|
36
36
|
mcp_agent/core/fastagent.py,sha256=T2kyq32wBJCOj13Zy1G_XJjQZb1S4HVdx3OBzmEMHBg,18644
|
37
|
-
mcp_agent/core/interactive_prompt.py,sha256=
|
37
|
+
mcp_agent/core/interactive_prompt.py,sha256=9s5c-XXGAKAqYh1SUVQIMRGFIcxfFjkaPmke1tyInaA,23854
|
38
38
|
mcp_agent/core/mcp_content.py,sha256=2D7KHY9mG_vxoDwFLKvsPQV9VRIzHItM7V-jcEnACh8,8878
|
39
39
|
mcp_agent/core/prompt.py,sha256=qnintOUGEoDPYLI9bu9G2OlgVMCe5ZPUZilgMzydXhc,7919
|
40
40
|
mcp_agent/core/request_params.py,sha256=bEjWo86fqxdiWm2U5nPDd1uCUpcIQO9oiCinhB8lQN0,1185
|
@@ -62,7 +62,7 @@ mcp_agent/llm/providers/__init__.py,sha256=heVxtmuqFJOnjjxHz4bWSqTAxXoN1E8twC_gQ
|
|
62
62
|
mcp_agent/llm/providers/anthropic_utils.py,sha256=vYDN5G5jKMhD2CQg8veJYab7tvvzYkDMq8M1g_hUAQg,3275
|
63
63
|
mcp_agent/llm/providers/augmented_llm_anthropic.py,sha256=8AyO8iaSjhLpU3uAaqlN2lJyo8KduUmVUlqtUU_GBuE,13752
|
64
64
|
mcp_agent/llm/providers/augmented_llm_deepseek.py,sha256=S6_sSV07RhpcqWXi5M8uUQLNhw_Lc0nePtgVwrxCAho,1287
|
65
|
-
mcp_agent/llm/providers/augmented_llm_generic.py,sha256=
|
65
|
+
mcp_agent/llm/providers/augmented_llm_generic.py,sha256=5Uq8ZBhcFuQTt7koP_5ykolREh2iWu8zKhNbh3pM9lQ,1210
|
66
66
|
mcp_agent/llm/providers/augmented_llm_openai.py,sha256=jwV-_GmGMg-nNGVcG_P0i5J5PIj30sOoGxrWT6RUbZI,17244
|
67
67
|
mcp_agent/llm/providers/augmented_llm_openrouter.py,sha256=V_TlVKm92GHBxYIo6gpvH_6cAaIdppS25Tz6x5T7LW0,2341
|
68
68
|
mcp_agent/llm/providers/multipart_converter_anthropic.py,sha256=t5lHYGfFUacJldnrVtMNW-8gEMoto8Y7hJkDrnyZR-Y,16650
|
@@ -143,8 +143,8 @@ mcp_agent/resources/examples/workflows/parallel.py,sha256=n0dFN26QvYd2wjgohcaUBf
|
|
143
143
|
mcp_agent/resources/examples/workflows/router.py,sha256=E4x_-c3l4YW9w1i4ARcDtkdeqIdbWEGfsMzwLYpdbVc,1677
|
144
144
|
mcp_agent/resources/examples/workflows/short_story.txt,sha256=X3y_1AyhLFN2AKzCKvucJtDgAFIJfnlbsbGZO5bBWu0,1187
|
145
145
|
mcp_agent/ui/console_display.py,sha256=TVGDtJ37hc6UG0ei9g7ZPZZfFNeS1MYozt-Mx8HsPCk,9752
|
146
|
-
fast_agent_mcp-0.2.
|
147
|
-
fast_agent_mcp-0.2.
|
148
|
-
fast_agent_mcp-0.2.
|
149
|
-
fast_agent_mcp-0.2.
|
150
|
-
fast_agent_mcp-0.2.
|
146
|
+
fast_agent_mcp-0.2.16.dist-info/METADATA,sha256=8Ed0qKTHlBEYhMa5HleFhAtZjrmV-Kq0Sir2RMO9yW0,29940
|
147
|
+
fast_agent_mcp-0.2.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
148
|
+
fast_agent_mcp-0.2.16.dist-info/entry_points.txt,sha256=bRniFM5zk3Kix5z7scX0gf9VnmGQ2Cz_Q1Gh7Ir4W00,186
|
149
|
+
fast_agent_mcp-0.2.16.dist-info/licenses/LICENSE,sha256=cN3FxDURL9XuzE5mhK9L2paZo82LTfjwCYVT7e3j0e4,10939
|
150
|
+
fast_agent_mcp-0.2.16.dist-info/RECORD,,
|
mcp_agent/config.py
CHANGED
@@ -149,15 +149,16 @@ class GenericSettings(BaseModel):
|
|
149
149
|
base_url: str | None = None
|
150
150
|
|
151
151
|
model_config = ConfigDict(extra="allow", arbitrary_types_allowed=True)
|
152
|
-
|
152
|
+
|
153
153
|
|
154
154
|
class OpenRouterSettings(BaseModel):
|
155
155
|
"""
|
156
156
|
Settings for using OpenRouter models via its OpenAI-compatible API.
|
157
157
|
"""
|
158
|
+
|
158
159
|
api_key: str | None = None
|
159
|
-
|
160
|
-
base_url: str | None = None
|
160
|
+
|
161
|
+
base_url: str | None = None # Optional override, defaults handled in provider
|
161
162
|
|
162
163
|
model_config = ConfigDict(extra="allow", arbitrary_types_allowed=True)
|
163
164
|
|
@@ -294,8 +295,6 @@ class Settings(BaseSettings):
|
|
294
295
|
while current_dir != current_dir.parent:
|
295
296
|
for filename in [
|
296
297
|
"fastagent.config.yaml",
|
297
|
-
"mcp-agent.config.yaml",
|
298
|
-
"mcp_agent.config.yaml",
|
299
298
|
]:
|
300
299
|
config_path = current_dir / filename
|
301
300
|
if config_path.exists():
|
@@ -367,8 +366,6 @@ def get_settings(config_path: str | None = None) -> Settings:
|
|
367
366
|
while current_dir != current_dir.parent and not found_secrets:
|
368
367
|
for secrets_filename in [
|
369
368
|
"fastagent.secrets.yaml",
|
370
|
-
"mcp-agent.secrets.yaml",
|
371
|
-
"mcp_agent.secrets.yaml",
|
372
369
|
]:
|
373
370
|
secrets_file = current_dir / secrets_filename
|
374
371
|
if secrets_file.exists():
|
@@ -14,6 +14,7 @@ from prompt_toolkit.key_binding import KeyBindings
|
|
14
14
|
from prompt_toolkit.styles import Style
|
15
15
|
from rich import print as rich_print
|
16
16
|
|
17
|
+
from mcp_agent.core.agent_types import AgentType
|
17
18
|
from mcp_agent.core.exceptions import PromptExitError
|
18
19
|
|
19
20
|
# Get the application version
|
@@ -86,7 +87,7 @@ class AgentCompleter(Completer):
|
|
86
87
|
for agent in self.agents:
|
87
88
|
if agent.lower().startswith(agent_name.lower()):
|
88
89
|
# Get agent type or default to "Agent"
|
89
|
-
agent_type = self.agent_types.get(agent,
|
90
|
+
agent_type = self.agent_types.get(agent, AgentType.BASIC).value
|
90
91
|
yield Completion(
|
91
92
|
agent,
|
92
93
|
start_position=-len(agent_name),
|
@@ -149,7 +150,7 @@ async def get_enhanced_input(
|
|
149
150
|
show_stop_hint: bool = False,
|
150
151
|
multiline: bool = False,
|
151
152
|
available_agent_names: List[str] = None,
|
152
|
-
agent_types: dict = None,
|
153
|
+
agent_types: dict[str, AgentType] = None,
|
153
154
|
is_human_input: bool = False,
|
154
155
|
toolbar_color: str = "ansiblue",
|
155
156
|
) -> str:
|
@@ -430,18 +431,18 @@ async def get_argument_input(
|
|
430
431
|
async def handle_special_commands(command, agent_app=None):
|
431
432
|
"""
|
432
433
|
Handle special input commands.
|
433
|
-
|
434
|
+
|
434
435
|
Args:
|
435
436
|
command: The command to handle, can be string or dictionary
|
436
437
|
agent_app: Optional agent app reference
|
437
|
-
|
438
|
+
|
438
439
|
Returns:
|
439
440
|
True if command was handled, False if not, or a dict with action info
|
440
441
|
"""
|
441
442
|
# Quick guard for empty or None commands
|
442
443
|
if not command:
|
443
444
|
return False
|
444
|
-
|
445
|
+
|
445
446
|
# If command is already a dictionary, it has been pre-processed
|
446
447
|
# Just return it directly (like when /prompts converts to select_prompt dict)
|
447
448
|
if isinstance(command, dict):
|
@@ -20,6 +20,7 @@ from rich import print as rich_print
|
|
20
20
|
from rich.console import Console
|
21
21
|
from rich.table import Table
|
22
22
|
|
23
|
+
from mcp_agent.core.agent_types import AgentType
|
23
24
|
from mcp_agent.core.enhanced_prompt import (
|
24
25
|
get_argument_input,
|
25
26
|
get_enhanced_input,
|
@@ -36,14 +37,14 @@ class InteractivePrompt:
|
|
36
37
|
This is extracted from the original AgentApp implementation to support DirectAgentApp.
|
37
38
|
"""
|
38
39
|
|
39
|
-
def __init__(self, agent_types: Optional[Dict[str,
|
40
|
+
def __init__(self, agent_types: Optional[Dict[str, AgentType]] = None) -> None:
|
40
41
|
"""
|
41
42
|
Initialize the interactive prompt.
|
42
43
|
|
43
44
|
Args:
|
44
45
|
agent_types: Dictionary mapping agent names to their types for display
|
45
46
|
"""
|
46
|
-
self.agent_types = agent_types or {}
|
47
|
+
self.agent_types: Dict[str, AgentType] = agent_types or {}
|
47
48
|
|
48
49
|
async def prompt_loop(
|
49
50
|
self,
|
@@ -97,7 +98,7 @@ class InteractivePrompt:
|
|
97
98
|
|
98
99
|
# Handle special commands - pass "True" to enable agent switching
|
99
100
|
command_result = await handle_special_commands(user_input, True)
|
100
|
-
|
101
|
+
|
101
102
|
# Check if we should switch agents
|
102
103
|
if isinstance(command_result, dict):
|
103
104
|
if "switch_agent" in command_result:
|
@@ -113,11 +114,13 @@ class InteractivePrompt:
|
|
113
114
|
# Use the list_prompts_func directly
|
114
115
|
await self._list_prompts(list_prompts_func, agent)
|
115
116
|
continue
|
116
|
-
elif "select_prompt" in command_result and (
|
117
|
+
elif "select_prompt" in command_result and (
|
118
|
+
list_prompts_func and apply_prompt_func
|
119
|
+
):
|
117
120
|
# Handle prompt selection, using both list_prompts and apply_prompt
|
118
121
|
prompt_name = command_result.get("prompt_name")
|
119
122
|
prompt_index = command_result.get("prompt_index")
|
120
|
-
|
123
|
+
|
121
124
|
# If a specific index was provided (from /prompt <number>)
|
122
125
|
if prompt_index is not None:
|
123
126
|
# First get a list of all prompts to look up the index
|
@@ -125,20 +128,29 @@ class InteractivePrompt:
|
|
125
128
|
if not all_prompts:
|
126
129
|
rich_print("[yellow]No prompts available[/yellow]")
|
127
130
|
continue
|
128
|
-
|
131
|
+
|
129
132
|
# Check if the index is valid
|
130
133
|
if 1 <= prompt_index <= len(all_prompts):
|
131
134
|
# Get the prompt at the specified index (1-based to 0-based)
|
132
135
|
selected_prompt = all_prompts[prompt_index - 1]
|
133
136
|
# Use the already created namespaced_name to ensure consistency
|
134
|
-
await self._select_prompt(
|
137
|
+
await self._select_prompt(
|
138
|
+
list_prompts_func,
|
139
|
+
apply_prompt_func,
|
140
|
+
agent,
|
141
|
+
selected_prompt["namespaced_name"],
|
142
|
+
)
|
135
143
|
else:
|
136
|
-
rich_print(
|
144
|
+
rich_print(
|
145
|
+
f"[red]Invalid prompt number: {prompt_index}. Valid range is 1-{len(all_prompts)}[/red]"
|
146
|
+
)
|
137
147
|
# Show the prompt list for convenience
|
138
148
|
await self._list_prompts(list_prompts_func, agent)
|
139
149
|
else:
|
140
150
|
# Use the name-based selection
|
141
|
-
await self._select_prompt(
|
151
|
+
await self._select_prompt(
|
152
|
+
list_prompts_func, apply_prompt_func, agent, prompt_name
|
153
|
+
)
|
142
154
|
continue
|
143
155
|
|
144
156
|
# Skip further processing if command was handled
|
@@ -158,11 +170,11 @@ class InteractivePrompt:
|
|
158
170
|
async def _get_all_prompts(self, list_prompts_func, agent_name):
|
159
171
|
"""
|
160
172
|
Get a list of all available prompts.
|
161
|
-
|
173
|
+
|
162
174
|
Args:
|
163
175
|
list_prompts_func: Function to get available prompts
|
164
176
|
agent_name: Name of the agent
|
165
|
-
|
177
|
+
|
166
178
|
Returns:
|
167
179
|
List of prompt info dictionaries, sorted by server and name
|
168
180
|
"""
|
@@ -171,7 +183,7 @@ class InteractivePrompt:
|
|
171
183
|
# the agent_name parameter should never be used as a server name
|
172
184
|
prompt_servers = await list_prompts_func(None)
|
173
185
|
all_prompts = []
|
174
|
-
|
186
|
+
|
175
187
|
# Process the returned prompt servers
|
176
188
|
if prompt_servers:
|
177
189
|
# First collect all prompts
|
@@ -179,44 +191,51 @@ class InteractivePrompt:
|
|
179
191
|
if prompts_info and hasattr(prompts_info, "prompts") and prompts_info.prompts:
|
180
192
|
for prompt in prompts_info.prompts:
|
181
193
|
# Use the SEP constant for proper namespacing
|
182
|
-
all_prompts.append(
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
194
|
+
all_prompts.append(
|
195
|
+
{
|
196
|
+
"server": server_name,
|
197
|
+
"name": prompt.name,
|
198
|
+
"namespaced_name": f"{server_name}{SEP}{prompt.name}",
|
199
|
+
"description": getattr(prompt, "description", "No description"),
|
200
|
+
"arg_count": len(getattr(prompt, "arguments", [])),
|
201
|
+
"arguments": getattr(prompt, "arguments", []),
|
202
|
+
}
|
203
|
+
)
|
190
204
|
elif isinstance(prompts_info, list) and prompts_info:
|
191
205
|
for prompt in prompts_info:
|
192
206
|
if isinstance(prompt, dict) and "name" in prompt:
|
193
|
-
all_prompts.append(
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
207
|
+
all_prompts.append(
|
208
|
+
{
|
209
|
+
"server": server_name,
|
210
|
+
"name": prompt["name"],
|
211
|
+
"namespaced_name": f"{server_name}{SEP}{prompt['name']}",
|
212
|
+
"description": prompt.get("description", "No description"),
|
213
|
+
"arg_count": len(prompt.get("arguments", [])),
|
214
|
+
"arguments": prompt.get("arguments", []),
|
215
|
+
}
|
216
|
+
)
|
201
217
|
else:
|
202
|
-
all_prompts.append(
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
218
|
+
all_prompts.append(
|
219
|
+
{
|
220
|
+
"server": server_name,
|
221
|
+
"name": str(prompt),
|
222
|
+
"namespaced_name": f"{server_name}{SEP}{str(prompt)}",
|
223
|
+
"description": "No description",
|
224
|
+
"arg_count": 0,
|
225
|
+
"arguments": [],
|
226
|
+
}
|
227
|
+
)
|
228
|
+
|
211
229
|
# Sort prompts by server and name for consistent ordering
|
212
230
|
all_prompts.sort(key=lambda p: (p["server"], p["name"]))
|
213
|
-
|
231
|
+
|
214
232
|
return all_prompts
|
215
|
-
|
233
|
+
|
216
234
|
except Exception as e:
|
217
235
|
import traceback
|
218
236
|
|
219
237
|
from rich import print as rich_print
|
238
|
+
|
220
239
|
rich_print(f"[red]Error getting prompts: {e}[/red]")
|
221
240
|
rich_print(f"[dim]{traceback.format_exc()}[/dim]")
|
222
241
|
return []
|
@@ -238,11 +257,11 @@ class InteractivePrompt:
|
|
238
257
|
try:
|
239
258
|
# Directly call the list_prompts function for this agent
|
240
259
|
rich_print(f"\n[bold]Fetching prompts for agent [cyan]{agent_name}[/cyan]...[/bold]")
|
241
|
-
|
260
|
+
|
242
261
|
# Get all prompts using the helper function - pass None as server name
|
243
262
|
# to get prompts from all available servers
|
244
263
|
all_prompts = await self._get_all_prompts(list_prompts_func, None)
|
245
|
-
|
264
|
+
|
246
265
|
if all_prompts:
|
247
266
|
# Create a table for better display
|
248
267
|
table = Table(title="Available MCP Prompts")
|
@@ -251,7 +270,7 @@ class InteractivePrompt:
|
|
251
270
|
table.add_column("Prompt Name", style="bright_blue")
|
252
271
|
table.add_column("Description")
|
253
272
|
table.add_column("Args", justify="center")
|
254
|
-
|
273
|
+
|
255
274
|
# Add prompts to table
|
256
275
|
for i, prompt in enumerate(all_prompts):
|
257
276
|
table.add_row(
|
@@ -259,11 +278,11 @@ class InteractivePrompt:
|
|
259
278
|
prompt["server"],
|
260
279
|
prompt["name"],
|
261
280
|
prompt["description"],
|
262
|
-
str(prompt["arg_count"])
|
281
|
+
str(prompt["arg_count"]),
|
263
282
|
)
|
264
|
-
|
283
|
+
|
265
284
|
console.print(table)
|
266
|
-
|
285
|
+
|
267
286
|
# Add usage instructions
|
268
287
|
rich_print("\n[bold]Usage:[/bold]")
|
269
288
|
rich_print(" • Use [cyan]/prompt <number>[/cyan] to select a prompt by number")
|
@@ -272,10 +291,13 @@ class InteractivePrompt:
|
|
272
291
|
rich_print("[yellow]No prompts available[/yellow]")
|
273
292
|
except Exception as e:
|
274
293
|
import traceback
|
294
|
+
|
275
295
|
rich_print(f"[red]Error listing prompts: {e}[/red]")
|
276
296
|
rich_print(f"[dim]{traceback.format_exc()}[/dim]")
|
277
297
|
|
278
|
-
async def _select_prompt(
|
298
|
+
async def _select_prompt(
|
299
|
+
self, list_prompts_func, apply_prompt_func, agent_name, requested_name=None
|
300
|
+
) -> None:
|
279
301
|
"""
|
280
302
|
Select and apply a prompt.
|
281
303
|
|
@@ -293,7 +315,7 @@ class InteractivePrompt:
|
|
293
315
|
try:
|
294
316
|
# Get all available prompts directly from the list_prompts function
|
295
317
|
rich_print(f"\n[bold]Fetching prompts for agent [cyan]{agent_name}[/cyan]...[/bold]")
|
296
|
-
# IMPORTANT: list_prompts_func gets MCP server prompts, not agent prompts
|
318
|
+
# IMPORTANT: list_prompts_func gets MCP server prompts, not agent prompts
|
297
319
|
# So we pass None to get prompts from all servers, not using agent_name as server name
|
298
320
|
prompt_servers = await list_prompts_func(None)
|
299
321
|
|
@@ -514,9 +536,7 @@ class InteractivePrompt:
|
|
514
536
|
|
515
537
|
# Apply the prompt
|
516
538
|
namespaced_name = selected_prompt["namespaced_name"]
|
517
|
-
rich_print(
|
518
|
-
f"\n[bold]Applying prompt [cyan]{namespaced_name}[/cyan]...[/bold]"
|
519
|
-
)
|
539
|
+
rich_print(f"\n[bold]Applying prompt [cyan]{namespaced_name}[/cyan]...[/bold]")
|
520
540
|
|
521
541
|
# Call apply_prompt function with the prompt name and arguments
|
522
542
|
await apply_prompt_func(namespaced_name, arg_values, agent_name)
|
@@ -10,8 +10,10 @@ DEFAULT_OLLAMA_API_KEY = "ollama"
|
|
10
10
|
|
11
11
|
|
12
12
|
class GenericAugmentedLLM(OpenAIAugmentedLLM):
|
13
|
-
def __init__(self, *args,
|
14
|
-
super().__init__(
|
13
|
+
def __init__(self, *args, **kwargs) -> None:
|
14
|
+
super().__init__(
|
15
|
+
*args, provider=Provider.GENERIC, **kwargs
|
16
|
+
) # Properly pass args and kwargs to parent
|
15
17
|
|
16
18
|
def _initialize_default_params(self, kwargs: dict) -> RequestParams:
|
17
19
|
"""Initialize Generic parameters"""
|
File without changes
|
File without changes
|
File without changes
|