Merge branch 'main' of github.com:crewAIInc/crewAI into feat/byoa

This commit is contained in:
lorenzejay
2025-04-16 12:08:13 -07:00
3 changed files with 35 additions and 1 deletions

33
.github/workflows/notify-downstream.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Notify Downstream
on:
push:
branches:
- main
permissions:
contents: read
jobs:
notify-downstream:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: app-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.OSS_SYNC_APP_ID }}
private_key: ${{ secrets.OSS_SYNC_APP_PRIVATE_KEY }}
- name: Notify Repo B
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.app-token.outputs.token }}
repository: ${{ secrets.OSS_SYNC_DOWNSTREAM_REPO }}
event-type: upstream-commit
client-payload: |
{
"commit_sha": "${{ github.sha }}"
}

View File

@@ -535,6 +535,7 @@ class Agent(BaseAgent):
verbose=self.verbose, verbose=self.verbose,
response_format=response_format, response_format=response_format,
i18n=self.i18n, i18n=self.i18n,
original_agent=self,
) )
return await lite_agent.kickoff_async(messages) return await lite_agent.kickoff_async(messages)

View File

@@ -21,7 +21,7 @@ class SQLiteFlowPersistence(FlowPersistence):
moderate performance requirements. moderate performance requirements.
""" """
db_path: str # Type annotation for instance variable db_path: str
def __init__(self, db_path: Optional[str] = None): def __init__(self, db_path: Optional[str] = None):
"""Initialize SQLite persistence. """Initialize SQLite persistence.