Bläddra i källkod

Fix: Replace StrEnum with strenum in code_exec.py (#9376)

### What problem does this PR solve?

- The enum import was changed from Python's built-in StrEnum to the
strenum package.
- Fix error `Warning: Failed to import module code_exec: cannot import
name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)`

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.20.2
Liu An 2 månader sedan
förälder
incheckning
b9c4954c2f
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      agent/tools/code_exec.py

+ 1
- 1
agent/tools/code_exec.py Visa fil

@@ -17,7 +17,7 @@ import base64
import logging
import os
from abc import ABC
from enum import StrEnum
from strenum import StrEnum
from typing import Optional
from pydantic import BaseModel, Field, field_validator
from agent.tools.base import ToolParamBase, ToolBase, ToolMeta

Laddar…
Avbryt
Spara