Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Main project configuration using a **flat resource model**. Agents, memories, an
"build": "CodeZip",
"entrypoint": "main.py",
"codeLocation": "app/MyAgent/",
"runtimeVersion": "PYTHON_3_12"
"runtimeVersion": "PYTHON_3_13"
}
],
"memories": [
Expand Down Expand Up @@ -187,7 +187,7 @@ on the next deployment.
"build": "CodeZip",
"entrypoint": "main.py",
"codeLocation": "app/MyAgent/",
"runtimeVersion": "PYTHON_3_12",
"runtimeVersion": "PYTHON_3_13",
"networkMode": "PUBLIC",
"envVars": [{ "name": "MY_VAR", "value": "my-value" }],
"instrumentation": {
Expand Down
2 changes: 1 addition & 1 deletion docs/container-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ In `agentcore.json`, set `"build": "Container"`:
"build": "Container",
"entrypoint": "main.py",
"codeLocation": "app/MyAgent/",
"runtimeVersion": "PYTHON_3_12"
"runtimeVersion": "PYTHON_3_13"
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ describe('mapGenerateConfigToAgent', () => {
expect(result.name).toBe('TestProject');
expect(result.build).toBe('CodeZip');
expect(result.entrypoint).toBe('main.py');
expect(result.runtimeVersion).toBe('PYTHON_3_12');
expect(result.runtimeVersion).toBe('PYTHON_3_13');
expect(result.networkMode).toBe('PUBLIC');
expect(result.protocol).toBe('HTTP');
});
Expand Down
2 changes: 1 addition & 1 deletion src/cli/primitives/AgentPrimitive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export class AgentPrimitive extends BasePrimitive<AddAgentOptions, RemovableReso
build: options.buildType,
entrypoint: (options.entrypoint ?? 'main.py') as FilePath,
codeLocation: codeLocation as DirectoryPath,
runtimeVersion: 'PYTHON_3_12',
runtimeVersion: 'PYTHON_3_13',
protocol,
networkMode,
...(networkMode === 'VPC' &&
Expand Down
2 changes: 1 addition & 1 deletion src/cli/tui/screens/agent/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ export const NETWORK_MODE_OPTIONS = [
{ id: 'VPC', title: 'VPC', description: 'Attach to your VPC' },
] as const;

export const DEFAULT_PYTHON_VERSION: PythonRuntime = 'PYTHON_3_12';
export const DEFAULT_PYTHON_VERSION: PythonRuntime = 'PYTHON_3_13';
export const DEFAULT_ENTRYPOINT = 'main.py';
2 changes: 1 addition & 1 deletion src/cli/tui/screens/generate/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { NetworkMode, PythonRuntime } from '../../../../schema';
*/

/** Default Python runtime version for new agents */
export const DEFAULT_PYTHON_VERSION: PythonRuntime = 'PYTHON_3_12';
export const DEFAULT_PYTHON_VERSION: PythonRuntime = 'PYTHON_3_13';

/** Default network mode for agent runtimes */
export const DEFAULT_NETWORK_MODE: NetworkMode = 'PUBLIC';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/packaging/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function packRuntime(spec: AgentEnvSpec, options?: PackageOptions):
* Defaults to Python if no runtimeVersion is specified.
*/
export function packCodeZipSync(config: CodeBundleConfig | AgentEnvSpec, options?: PackageOptions): ArtifactResult {
const runtimeVersion = config.runtimeVersion ?? 'PYTHON_3_12';
const runtimeVersion = config.runtimeVersion ?? 'PYTHON_3_13';
const packager = getCodeZipPackager(runtimeVersion);
return packager.packCodeZip(config as AgentEnvSpec, options);
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/packaging/python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class PythonCodeZipPackager implements RuntimePackager {
*/
export class PythonCodeZipPackagerSync implements CodeZipPackager {
packCodeZip(config: AgentEnvSpec, options: PackageOptions = {}): ArtifactResult {
const runtimeVersion = config.runtimeVersion ?? 'PYTHON_3_12';
const runtimeVersion = config.runtimeVersion ?? 'PYTHON_3_13';

if (!isPythonRuntimeVersion(runtimeVersion)) {
throw new PackagingError(`Python packager only supports Python runtimes. Received: ${runtimeVersion}`);
Expand Down
2 changes: 1 addition & 1 deletion src/tui-harness/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export async function createMinimalProjectDir(
build: 'CodeZip',
entrypoint: 'main.py:handler',
codeLocation: 'app/TestAgent',
runtimeVersion: 'PYTHON_3_12',
runtimeVersion: 'PYTHON_3_13',
});

// Create the agent code directory so the CLI does not complain.
Expand Down
Loading