flyteplugins-codegen 2.3.6__py3-none-any.whl → 2.3.8__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.
- flyteplugins/codegen/auto_coder_agent.py +0 -5
- flyteplugins/codegen/execution/agent.py +0 -3
- flyteplugins/codegen/execution/docker.py +0 -3
- {flyteplugins_codegen-2.3.6.dist-info → flyteplugins_codegen-2.3.8.dist-info}/METADATA +1 -2
- {flyteplugins_codegen-2.3.6.dist-info → flyteplugins_codegen-2.3.8.dist-info}/RECORD +7 -7
- {flyteplugins_codegen-2.3.6.dist-info → flyteplugins_codegen-2.3.8.dist-info}/WHEEL +0 -0
- {flyteplugins_codegen-2.3.6.dist-info → flyteplugins_codegen-2.3.8.dist-info}/top_level.txt +0 -0
|
@@ -73,7 +73,6 @@ class AutoCoderAgent:
|
|
|
73
73
|
cache: CacheRequest for sandboxes: "auto", "override", or "disable". Defaults to "auto".
|
|
74
74
|
backend: Execution backend: "litellm" (default) or "claude".
|
|
75
75
|
agent_max_turns: Maximum agent turns when backend="claude". Defaults to 50.
|
|
76
|
-
block_network: Block all outbound network access in sandboxes. Defaults to False.
|
|
77
76
|
|
|
78
77
|
Example::
|
|
79
78
|
|
|
@@ -120,7 +119,6 @@ class AutoCoderAgent:
|
|
|
120
119
|
cache: str = "auto"
|
|
121
120
|
backend: Literal["litellm", "claude"] = "litellm"
|
|
122
121
|
agent_max_turns: int = 50
|
|
123
|
-
block_network: bool = False
|
|
124
122
|
|
|
125
123
|
@syncify
|
|
126
124
|
async def generate(
|
|
@@ -274,7 +272,6 @@ class AutoCoderAgent:
|
|
|
274
272
|
env_vars=self.env_vars,
|
|
275
273
|
secrets=self.secrets,
|
|
276
274
|
cache=self.cache,
|
|
277
|
-
block_network=self.block_network,
|
|
278
275
|
max_turns=self.agent_max_turns,
|
|
279
276
|
)
|
|
280
277
|
|
|
@@ -390,7 +387,6 @@ class _CodeGenSession:
|
|
|
390
387
|
self.env_vars = agent.env_vars
|
|
391
388
|
self.secrets = agent.secrets
|
|
392
389
|
self.cache = agent.cache
|
|
393
|
-
self.block_network = agent.block_network
|
|
394
390
|
self.image_config = agent.image_config
|
|
395
391
|
self.litellm_params = agent.litellm_params
|
|
396
392
|
|
|
@@ -611,7 +607,6 @@ class _CodeGenSession:
|
|
|
611
607
|
env_vars=self.env_vars,
|
|
612
608
|
secrets=self.secrets,
|
|
613
609
|
cache=self.cache,
|
|
614
|
-
block_network=self.block_network,
|
|
615
610
|
_attempt=attempt,
|
|
616
611
|
)
|
|
617
612
|
|
|
@@ -77,7 +77,6 @@ async def code_gen_eval_agent(
|
|
|
77
77
|
env_vars: Optional[dict[str, str]] = None,
|
|
78
78
|
secrets: Optional[list] = None,
|
|
79
79
|
cache: str = "auto",
|
|
80
|
-
block_network: bool = False,
|
|
81
80
|
max_turns: int = 50,
|
|
82
81
|
language: str = "python",
|
|
83
82
|
) -> CodeGenEvalResult:
|
|
@@ -105,7 +104,6 @@ async def code_gen_eval_agent(
|
|
|
105
104
|
env_vars: Optional environment variables to set in the sandbox
|
|
106
105
|
secrets: Optional secrets to make available in the sandbox
|
|
107
106
|
cache: Caching behavior for sandbox execution ("auto", "override", "disable")
|
|
108
|
-
block_network: Block all outbound network access in sandboxes. Defaults to False.
|
|
109
107
|
max_turns: Maximum number of agent turns before stopping (default: 50)
|
|
110
108
|
language: Programming language for code generation (default: "python")
|
|
111
109
|
|
|
@@ -191,7 +189,6 @@ async def code_gen_eval_agent(
|
|
|
191
189
|
env_vars=env_vars,
|
|
192
190
|
secrets=secrets,
|
|
193
191
|
cache=cache,
|
|
194
|
-
block_network=block_network,
|
|
195
192
|
_attempt=_exec_state["test_count"],
|
|
196
193
|
)
|
|
197
194
|
|
|
@@ -140,7 +140,6 @@ async def run_tests(
|
|
|
140
140
|
env_vars: Optional[dict[str, str]] = None,
|
|
141
141
|
secrets: Optional[list] = None,
|
|
142
142
|
cache: str = "auto",
|
|
143
|
-
block_network: bool = False,
|
|
144
143
|
_attempt: int = 1,
|
|
145
144
|
) -> RunResult:
|
|
146
145
|
"""Run pytest tests against code in an isolated container.
|
|
@@ -156,7 +155,6 @@ async def run_tests(
|
|
|
156
155
|
env_vars: Environment variables available inside the container.
|
|
157
156
|
secrets: Flyte secrets to mount.
|
|
158
157
|
cache: Cache behaviour — `"auto"`, `"override"`, or `"disable"`.
|
|
159
|
-
block_network: Block all outbound network access. Defaults to False.
|
|
160
158
|
_attempt: Differentiates repeated calls with the same base name.
|
|
161
159
|
|
|
162
160
|
Returns:
|
|
@@ -182,7 +180,6 @@ async def run_tests(
|
|
|
182
180
|
env_vars=env_vars,
|
|
183
181
|
secrets=secrets,
|
|
184
182
|
cache=cache,
|
|
185
|
-
block_network=block_network,
|
|
186
183
|
)
|
|
187
184
|
|
|
188
185
|
try:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flyteplugins-codegen
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.8
|
|
4
4
|
Summary: LLM-powered code generation and evaluation plugin for Flyte
|
|
5
5
|
Author-email: Samhita Alla <samhita@union.ai>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -178,7 +178,6 @@ result = await agent.generate.aio(prompt="...")
|
|
|
178
178
|
| `cache` | `str` | `"auto"` | CacheRequest for sandboxes: `"auto"`, `"override"`, or `"disable"` |
|
|
179
179
|
| `backend` | `str` | `"litellm"` | Execution backend: `"litellm"` or `"claude"` |
|
|
180
180
|
| `agent_max_turns` | `int` | `50` | Max turns when `backend="claude"` |
|
|
181
|
-
| `block_network` | `bool` | `False` | Block all outbound network access in sandboxes. Set to `True` to block network access. |
|
|
182
181
|
|
|
183
182
|
**`generate()` parameters (per-call):**
|
|
184
183
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
flyteplugins/codegen/__init__.py,sha256=jumoM0Po0Tx1KqatcdNi_Mk1MYCLcccnyjn6d1zurLQ,366
|
|
2
|
-
flyteplugins/codegen/auto_coder_agent.py,sha256=
|
|
2
|
+
flyteplugins/codegen/auto_coder_agent.py,sha256=8i7vVqnuoS0r9jOsoZlMh5Xyv0hqTf8IXa3_aMxXu3M,46015
|
|
3
3
|
flyteplugins/codegen/core/__init__.py,sha256=YjAN0PpvkhERFmlkEq78O2q92bmgyGAVttYXeDH_hyc,355
|
|
4
4
|
flyteplugins/codegen/core/types.py,sha256=kxAoKMu9tOTRNPBfiFC-dxMQOmeEawJAVRNKj42_3js,12274
|
|
5
5
|
flyteplugins/codegen/data/__init__.py,sha256=UDkKuvyBEZmsPaTR6yEexcQjLutMRxuV5-pWflGc_sI,670
|
|
6
6
|
flyteplugins/codegen/data/extraction.py,sha256=3jjm4REJYzl3U8FWv1Cys4FOuh2gG1Hv90OpdeiBlgs,10273
|
|
7
7
|
flyteplugins/codegen/data/schema.py,sha256=fAcT0upjXRFIDbLUolFiuPAJHWbVu5VmmBxWEW_-9uc,10300
|
|
8
8
|
flyteplugins/codegen/execution/__init__.py,sha256=3i4bP_xNp8ZgsolRI7ccUtkIW-h-1zCXFrjWfltVu3U,192
|
|
9
|
-
flyteplugins/codegen/execution/agent.py,sha256=
|
|
10
|
-
flyteplugins/codegen/execution/docker.py,sha256=
|
|
9
|
+
flyteplugins/codegen/execution/agent.py,sha256=k6H54H-W5DFrDvg6ezCw4oKaUM7mN8g7E38QWGFLFeY,27170
|
|
10
|
+
flyteplugins/codegen/execution/docker.py,sha256=vZtXhf4v5A0J2ZWPNT3aQIB5OzOPDEGfwGP7R7lJapE,7147
|
|
11
11
|
flyteplugins/codegen/generation/__init__.py,sha256=GkLiXfJeVQmLlHf4R08qzgUa5wYG97KseGjRtLCFZhU,1065
|
|
12
12
|
flyteplugins/codegen/generation/llm.py,sha256=FPBt1MlW_OjwtEEcnJhE62sYrbSK4tRB3UEk80cWvgQ,44229
|
|
13
13
|
flyteplugins/codegen/generation/prompts.py,sha256=-Qt8M_6bkS4Jwm-bCQnCGR-oKL_mWhryCc9_OUnvXPs,6344
|
|
14
|
-
flyteplugins_codegen-2.3.
|
|
15
|
-
flyteplugins_codegen-2.3.
|
|
16
|
-
flyteplugins_codegen-2.3.
|
|
17
|
-
flyteplugins_codegen-2.3.
|
|
14
|
+
flyteplugins_codegen-2.3.8.dist-info/METADATA,sha256=Uh9wDhfk5wEDYaxNnbIfPi-RWoOKojdiLcSQCVHVP1c,19094
|
|
15
|
+
flyteplugins_codegen-2.3.8.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
16
|
+
flyteplugins_codegen-2.3.8.dist-info/top_level.txt,sha256=cgd779rPu9EsvdtuYgUxNHHgElaQvPn74KhB5XSeMBE,13
|
|
17
|
+
flyteplugins_codegen-2.3.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|