mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-03 08:12:39 +00:00
Update AMP to AOP
This commit is contained in:
@@ -6,7 +6,7 @@ The GenerateCrewaiAutomationTool integrates with CrewAI Studio API to generate c
|
||||
|
||||
## Environment Variables
|
||||
|
||||
Set your CrewAI Personal Access Token (CrewAI AMP > Settings > Account > Personal Access Token):
|
||||
Set your CrewAI Personal Access Token (CrewAI AOP > Settings > Account > Personal Access Token):
|
||||
|
||||
```bash
|
||||
export CREWAI_PERSONAL_ACCESS_TOKEN="your_personal_access_token_here"
|
||||
@@ -47,4 +47,4 @@ task = Task(
|
||||
|
||||
crew = Crew(agents=[agent], tasks=[task])
|
||||
result = crew.kickoff()
|
||||
```
|
||||
```
|
||||
|
||||
@@ -11,7 +11,7 @@ class GenerateCrewaiAutomationToolSchema(BaseModel):
|
||||
)
|
||||
organization_id: str | None = Field(
|
||||
default=None,
|
||||
description="The identifier for the CrewAI AMP organization. If not specified, a default organization will be used.",
|
||||
description="The identifier for the CrewAI AOP organization. If not specified, a default organization will be used.",
|
||||
)
|
||||
|
||||
|
||||
@@ -25,11 +25,11 @@ class GenerateCrewaiAutomationTool(BaseTool):
|
||||
args_schema: type[BaseModel] = GenerateCrewaiAutomationToolSchema
|
||||
crewai_enterprise_url: str = Field(
|
||||
default_factory=lambda: os.getenv("CREWAI_PLUS_URL", "https://app.crewai.com"),
|
||||
description="The base URL of CrewAI AMP. If not provided, it will be loaded from the environment variable CREWAI_PLUS_URL with default https://app.crewai.com.",
|
||||
description="The base URL of CrewAI AOP. If not provided, it will be loaded from the environment variable CREWAI_PLUS_URL with default https://app.crewai.com.",
|
||||
)
|
||||
personal_access_token: str | None = Field(
|
||||
default_factory=lambda: os.getenv("CREWAI_PERSONAL_ACCESS_TOKEN"),
|
||||
description="The user's Personal Access Token to access CrewAI AMP API. If not provided, it will be loaded from the environment variable CREWAI_PERSONAL_ACCESS_TOKEN.",
|
||||
description="The user's Personal Access Token to access CrewAI AOP API. If not provided, it will be loaded from the environment variable CREWAI_PERSONAL_ACCESS_TOKEN.",
|
||||
)
|
||||
env_vars: list[EnvVar] = Field(
|
||||
default_factory=lambda: [
|
||||
|
||||
Reference in New Issue
Block a user