From 33695aa2fdc097b7eaff05fc6926551da01f4e21 Mon Sep 17 00:00:00 2001 From: LogCreative Date: Tue, 24 Sep 2024 12:52:41 +0800 Subject: [PATCH] docs: update "LLM-Connections" import and "Tasks" formatting (#1345) * Update Tasks.md Current formating of the page Tasks has been broken, fix the markdown formatting. * Update LLM-Connections.md LLM class has been moved to llm.py file --- docs/core-concepts/Tasks.md | 3 +-- docs/how-to/LLM-Connections.md | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/core-concepts/Tasks.md b/docs/core-concepts/Tasks.md index 0d82c3e76..38d3a21a0 100644 --- a/docs/core-concepts/Tasks.md +++ b/docs/core-concepts/Tasks.md @@ -1,4 +1,3 @@ -```markdown --- title: crewAI Tasks description: Detailed guide on managing and creating tasks within the crewAI framework, reflecting the latest codebase updates. @@ -314,4 +313,4 @@ save_output_task = Task( ## Conclusion -Tasks are the driving force behind the actions of agents in crewAI. By properly defining tasks and their outcomes, you set the stage for your AI agents to work effectively, either independently or as a collaborative unit. Equipping tasks with appropriate tools, understanding the execution process, and following robust validation practices are crucial for maximizing CrewAI's potential, ensuring agents are effectively prepared for their assignments and that tasks are executed as intended. \ No newline at end of file +Tasks are the driving force behind the actions of agents in crewAI. By properly defining tasks and their outcomes, you set the stage for your AI agents to work effectively, either independently or as a collaborative unit. Equipping tasks with appropriate tools, understanding the execution process, and following robust validation practices are crucial for maximizing CrewAI's potential, ensuring agents are effectively prepared for their assignments and that tasks are executed as intended. diff --git a/docs/how-to/LLM-Connections.md b/docs/how-to/LLM-Connections.md index d1cbd8c8c..28017c129 100644 --- a/docs/how-to/LLM-Connections.md +++ b/docs/how-to/LLM-Connections.md @@ -66,7 +66,8 @@ claude_agent = Agent( For more detailed configuration, use the LLM class: ```python -from crewai import Agent, LLM +from crewai import Agent +from crewai.llm import LLM llm = LLM( model="gpt-4", @@ -160,4 +161,4 @@ This is particularly useful when working with OpenAI-compatible APIs or when you ## Conclusion -By leveraging LiteLLM, CrewAI offers seamless integration with a vast array of LLMs. This flexibility allows you to choose the most suitable model for your specific needs, whether you prioritize performance, cost-efficiency, or local deployment. Remember to consult the [LiteLLM documentation](https://docs.litellm.ai/docs/) for the most up-to-date information on supported models and configuration options. \ No newline at end of file +By leveraging LiteLLM, CrewAI offers seamless integration with a vast array of LLMs. This flexibility allows you to choose the most suitable model for your specific needs, whether you prioritize performance, cost-efficiency, or local deployment. Remember to consult the [LiteLLM documentation](https://docs.litellm.ai/docs/) for the most up-to-date information on supported models and configuration options.