camel package#
Subpackages#
- camel.agents package
- Subpackages
- Submodules
- camel.agents.base module
- camel.agents.chat_agent module
ChatAgent
ChatAgent.add_external_tool()
ChatAgent.add_model_scheduling_strategy()
ChatAgent.add_tool()
ChatAgent.astep()
ChatAgent.chat_history
ChatAgent.get_usage_dict()
ChatAgent.init_messages()
ChatAgent.output_language
ChatAgent.record_message()
ChatAgent.remove_external_tool()
ChatAgent.remove_tool()
ChatAgent.reset()
ChatAgent.step()
ChatAgent.system_message
ChatAgent.tool_dict
ChatAgent.update_memory()
- camel.agents.critic_agent module
- camel.agents.deductive_reasoner_agent module
- camel.agents.embodied_agent module
- camel.agents.knowledge_graph_agent module
- camel.agents.role_assignment_agent module
- camel.agents.search_agent module
- camel.agents.task_agent module
- Module contents
BaseAgent
BaseToolAgent
ChatAgent
ChatAgent.add_external_tool()
ChatAgent.add_model_scheduling_strategy()
ChatAgent.add_tool()
ChatAgent.astep()
ChatAgent.chat_history
ChatAgent.get_usage_dict()
ChatAgent.init_messages()
ChatAgent.output_language
ChatAgent.record_message()
ChatAgent.remove_external_tool()
ChatAgent.remove_tool()
ChatAgent.reset()
ChatAgent.step()
ChatAgent.system_message
ChatAgent.tool_dict
ChatAgent.update_memory()
CriticAgent
EmbodiedAgent
HuggingFaceToolAgent
KnowledgeGraphAgent
RoleAssignmentAgent
SearchAgent
TaskCreationAgent
TaskPlannerAgent
TaskPrioritizationAgent
TaskSpecifyAgent
- camel.configs package
- Submodules
- camel.configs.anthropic_config module
- camel.configs.base_config module
- camel.configs.gemini_config module
- camel.configs.groq_config module
GroqConfig
GroqConfig.frequency_penalty
GroqConfig.max_tokens
GroqConfig.model_computed_fields
GroqConfig.model_config
GroqConfig.model_fields
GroqConfig.n
GroqConfig.presence_penalty
GroqConfig.response_format
GroqConfig.stop
GroqConfig.stream
GroqConfig.temperature
GroqConfig.tool_choice
GroqConfig.top_p
GroqConfig.user
- camel.configs.litellm_config module
LiteLLMConfig
LiteLLMConfig.api_version
LiteLLMConfig.custom_llm_provider
LiteLLMConfig.deployment_id
LiteLLMConfig.extra_headers
LiteLLMConfig.frequency_penalty
LiteLLMConfig.logit_bias
LiteLLMConfig.logprobs
LiteLLMConfig.max_retries
LiteLLMConfig.max_tokens
LiteLLMConfig.mock_response
LiteLLMConfig.model_computed_fields
LiteLLMConfig.model_config
LiteLLMConfig.model_fields
LiteLLMConfig.n
LiteLLMConfig.presence_penalty
LiteLLMConfig.response_format
LiteLLMConfig.seed
LiteLLMConfig.stop
LiteLLMConfig.stream
LiteLLMConfig.stream_options
LiteLLMConfig.temperature
LiteLLMConfig.timeout
LiteLLMConfig.tool_choice
LiteLLMConfig.top_logprobs
LiteLLMConfig.top_p
LiteLLMConfig.user
- camel.configs.mistral_config module
MistralConfig
MistralConfig.fields_type_checking()
MistralConfig.max_tokens
MistralConfig.model_computed_fields
MistralConfig.model_config
MistralConfig.model_fields
MistralConfig.random_seed
MistralConfig.response_format
MistralConfig.safe_prompt
MistralConfig.stop
MistralConfig.temperature
MistralConfig.tool_choice
MistralConfig.top_p
- camel.configs.ollama_config module
- camel.configs.openai_config module
ChatGPTConfig
ChatGPTConfig.frequency_penalty
ChatGPTConfig.logit_bias
ChatGPTConfig.max_tokens
ChatGPTConfig.model_computed_fields
ChatGPTConfig.model_config
ChatGPTConfig.model_fields
ChatGPTConfig.n
ChatGPTConfig.presence_penalty
ChatGPTConfig.response_format
ChatGPTConfig.stop
ChatGPTConfig.stream
ChatGPTConfig.temperature
ChatGPTConfig.tool_choice
ChatGPTConfig.top_p
ChatGPTConfig.user
- camel.configs.reka_config module
- camel.configs.samba_config module
SambaCloudAPIConfig
SambaCloudAPIConfig.frequency_penalty
SambaCloudAPIConfig.logit_bias
SambaCloudAPIConfig.max_tokens
SambaCloudAPIConfig.model_computed_fields
SambaCloudAPIConfig.model_config
SambaCloudAPIConfig.model_fields
SambaCloudAPIConfig.n
SambaCloudAPIConfig.presence_penalty
SambaCloudAPIConfig.response_format
SambaCloudAPIConfig.stop
SambaCloudAPIConfig.stream
SambaCloudAPIConfig.temperature
SambaCloudAPIConfig.tool_choice
SambaCloudAPIConfig.top_p
SambaCloudAPIConfig.user
SambaVerseAPIConfig
SambaVerseAPIConfig.as_dict()
SambaVerseAPIConfig.max_tokens
SambaVerseAPIConfig.model_computed_fields
SambaVerseAPIConfig.model_config
SambaVerseAPIConfig.model_fields
SambaVerseAPIConfig.repetition_penalty
SambaVerseAPIConfig.stop
SambaVerseAPIConfig.stream
SambaVerseAPIConfig.temperature
SambaVerseAPIConfig.top_k
SambaVerseAPIConfig.top_p
- camel.configs.togetherai_config module
TogetherAIConfig
TogetherAIConfig.as_dict()
TogetherAIConfig.frequency_penalty
TogetherAIConfig.logit_bias
TogetherAIConfig.max_tokens
TogetherAIConfig.model_computed_fields
TogetherAIConfig.model_config
TogetherAIConfig.model_fields
TogetherAIConfig.n
TogetherAIConfig.presence_penalty
TogetherAIConfig.response_format
TogetherAIConfig.stop
TogetherAIConfig.stream
TogetherAIConfig.temperature
TogetherAIConfig.top_p
TogetherAIConfig.user
- camel.configs.vllm_config module
VLLMConfig
VLLMConfig.frequency_penalty
VLLMConfig.logit_bias
VLLMConfig.logprobs
VLLMConfig.max_tokens
VLLMConfig.model_computed_fields
VLLMConfig.model_config
VLLMConfig.model_fields
VLLMConfig.n
VLLMConfig.presence_penalty
VLLMConfig.response_format
VLLMConfig.stop
VLLMConfig.stream
VLLMConfig.temperature
VLLMConfig.top_logprobs
VLLMConfig.top_p
VLLMConfig.user
- camel.configs.zhipuai_config module
- Module contents
AIMLConfig
AnthropicConfig
BaseConfig
ChatGPTConfig
ChatGPTConfig.frequency_penalty
ChatGPTConfig.logit_bias
ChatGPTConfig.max_tokens
ChatGPTConfig.model_computed_fields
ChatGPTConfig.model_config
ChatGPTConfig.model_fields
ChatGPTConfig.n
ChatGPTConfig.presence_penalty
ChatGPTConfig.response_format
ChatGPTConfig.stop
ChatGPTConfig.stream
ChatGPTConfig.temperature
ChatGPTConfig.tool_choice
ChatGPTConfig.tools
ChatGPTConfig.top_p
ChatGPTConfig.user
CohereConfig
DeepSeekConfig
DeepSeekConfig.frequency_penalty
DeepSeekConfig.logprobs
DeepSeekConfig.max_tokens
DeepSeekConfig.model_computed_fields
DeepSeekConfig.model_config
DeepSeekConfig.model_fields
DeepSeekConfig.presence_penalty
DeepSeekConfig.response_format
DeepSeekConfig.stop
DeepSeekConfig.stream
DeepSeekConfig.temperature
DeepSeekConfig.tool_choice
DeepSeekConfig.top_logprobs
DeepSeekConfig.top_p
GeminiConfig
GroqConfig
GroqConfig.frequency_penalty
GroqConfig.max_tokens
GroqConfig.model_computed_fields
GroqConfig.model_config
GroqConfig.model_fields
GroqConfig.n
GroqConfig.presence_penalty
GroqConfig.response_format
GroqConfig.stop
GroqConfig.stream
GroqConfig.temperature
GroqConfig.tool_choice
GroqConfig.tools
GroqConfig.top_p
GroqConfig.user
InternLMConfig
LiteLLMConfig
LiteLLMConfig.api_version
LiteLLMConfig.custom_llm_provider
LiteLLMConfig.deployment_id
LiteLLMConfig.extra_headers
LiteLLMConfig.frequency_penalty
LiteLLMConfig.logit_bias
LiteLLMConfig.logprobs
LiteLLMConfig.max_retries
LiteLLMConfig.max_tokens
LiteLLMConfig.mock_response
LiteLLMConfig.model_computed_fields
LiteLLMConfig.model_config
LiteLLMConfig.model_fields
LiteLLMConfig.n
LiteLLMConfig.presence_penalty
LiteLLMConfig.response_format
LiteLLMConfig.seed
LiteLLMConfig.stop
LiteLLMConfig.stream
LiteLLMConfig.stream_options
LiteLLMConfig.temperature
LiteLLMConfig.timeout
LiteLLMConfig.tool_choice
LiteLLMConfig.tools
LiteLLMConfig.top_logprobs
LiteLLMConfig.top_p
LiteLLMConfig.user
MistralConfig
MistralConfig.fields_type_checking()
MistralConfig.max_tokens
MistralConfig.model_computed_fields
MistralConfig.model_config
MistralConfig.model_fields
MistralConfig.random_seed
MistralConfig.response_format
MistralConfig.safe_prompt
MistralConfig.stop
MistralConfig.temperature
MistralConfig.tool_choice
MistralConfig.tools
MistralConfig.top_p
MoonshotConfig
MoonshotConfig.frequency_penalty
MoonshotConfig.max_tokens
MoonshotConfig.model_computed_fields
MoonshotConfig.model_config
MoonshotConfig.model_fields
MoonshotConfig.n
MoonshotConfig.presence_penalty
MoonshotConfig.stop
MoonshotConfig.stream
MoonshotConfig.temperature
MoonshotConfig.tools
MoonshotConfig.top_p
NvidiaConfig
OllamaConfig
OllamaConfig.frequency_penalty
OllamaConfig.max_tokens
OllamaConfig.model_computed_fields
OllamaConfig.model_config
OllamaConfig.model_fields
OllamaConfig.presence_penalty
OllamaConfig.response_format
OllamaConfig.stop
OllamaConfig.stream
OllamaConfig.temperature
OllamaConfig.tools
OllamaConfig.top_p
QwenConfig
RekaConfig
RekaConfig.as_dict()
RekaConfig.frequency_penalty
RekaConfig.max_tokens
RekaConfig.model_computed_fields
RekaConfig.model_config
RekaConfig.model_fields
RekaConfig.presence_penalty
RekaConfig.seed
RekaConfig.stop
RekaConfig.temperature
RekaConfig.tools
RekaConfig.top_k
RekaConfig.top_p
RekaConfig.use_search_engine
SGLangConfig
SambaCloudAPIConfig
SambaCloudAPIConfig.frequency_penalty
SambaCloudAPIConfig.logit_bias
SambaCloudAPIConfig.max_tokens
SambaCloudAPIConfig.model_computed_fields
SambaCloudAPIConfig.model_config
SambaCloudAPIConfig.model_fields
SambaCloudAPIConfig.n
SambaCloudAPIConfig.presence_penalty
SambaCloudAPIConfig.response_format
SambaCloudAPIConfig.stop
SambaCloudAPIConfig.stream
SambaCloudAPIConfig.temperature
SambaCloudAPIConfig.tool_choice
SambaCloudAPIConfig.tools
SambaCloudAPIConfig.top_p
SambaCloudAPIConfig.user
SambaVerseAPIConfig
SambaVerseAPIConfig.as_dict()
SambaVerseAPIConfig.max_tokens
SambaVerseAPIConfig.model_computed_fields
SambaVerseAPIConfig.model_config
SambaVerseAPIConfig.model_fields
SambaVerseAPIConfig.repetition_penalty
SambaVerseAPIConfig.stop
SambaVerseAPIConfig.stream
SambaVerseAPIConfig.temperature
SambaVerseAPIConfig.tools
SambaVerseAPIConfig.top_k
SambaVerseAPIConfig.top_p
SiliconFlowConfig
SiliconFlowConfig.as_dict()
SiliconFlowConfig.frequency_penalty
SiliconFlowConfig.max_tokens
SiliconFlowConfig.model_computed_fields
SiliconFlowConfig.model_config
SiliconFlowConfig.model_fields
SiliconFlowConfig.n
SiliconFlowConfig.response_format
SiliconFlowConfig.stop
SiliconFlowConfig.stream
SiliconFlowConfig.temperature
SiliconFlowConfig.top_p
TogetherAIConfig
TogetherAIConfig.as_dict()
TogetherAIConfig.frequency_penalty
TogetherAIConfig.logit_bias
TogetherAIConfig.max_tokens
TogetherAIConfig.model_computed_fields
TogetherAIConfig.model_config
TogetherAIConfig.model_fields
TogetherAIConfig.n
TogetherAIConfig.presence_penalty
TogetherAIConfig.response_format
TogetherAIConfig.stop
TogetherAIConfig.stream
TogetherAIConfig.temperature
TogetherAIConfig.tools
TogetherAIConfig.top_p
TogetherAIConfig.user
VLLMConfig
VLLMConfig.frequency_penalty
VLLMConfig.logit_bias
VLLMConfig.logprobs
VLLMConfig.max_tokens
VLLMConfig.model_computed_fields
VLLMConfig.model_config
VLLMConfig.model_fields
VLLMConfig.n
VLLMConfig.presence_penalty
VLLMConfig.response_format
VLLMConfig.stop
VLLMConfig.stream
VLLMConfig.temperature
VLLMConfig.tools
VLLMConfig.top_logprobs
VLLMConfig.top_p
VLLMConfig.user
YiConfig
ZhipuAIConfig
- camel.embeddings package
- Submodules
- camel.embeddings.base module
- camel.embeddings.mistral_embedding module
- camel.embeddings.openai_embedding module
- camel.embeddings.sentence_transformers_embeddings module
- camel.embeddings.vlm_embedding module
- Module contents
- camel.interpreters package
- Submodules
- camel.interpreters.base module
- camel.interpreters.docker_interpreter module
- camel.interpreters.internal_python_interpreter module
- camel.interpreters.interpreter_error module
- camel.interpreters.ipython_interpreter module
- camel.interpreters.subprocess_interpreter module
- Module contents
- camel.loaders package
- Submodules
- camel.loaders.base_io module
- camel.loaders.firecrawl_reader module
- camel.loaders.jina_url_reader module
- camel.loaders.unstructured_io module
- Module contents
Apify
ChunkrReader
File
Firecrawl
JinaURLReader
MinerU
PandaReader
PandaReader.load()
PandaReader.read_clipboard()
PandaReader.read_csv()
PandaReader.read_excel()
PandaReader.read_feather()
PandaReader.read_hdf()
PandaReader.read_html()
PandaReader.read_json()
PandaReader.read_orc()
PandaReader.read_parquet()
PandaReader.read_pickle()
PandaReader.read_sas()
PandaReader.read_sql()
PandaReader.read_stata()
PandaReader.read_table()
UnstructuredIO
create_file()
create_file_from_raw_bytes()
- camel.memories package
- Subpackages
- Submodules
- camel.memories.agent_memories module
- camel.memories.base module
- camel.memories.records module
ContextRecord
MemoryRecord
MemoryRecord.message
MemoryRecord.role_at_backend
MemoryRecord.uuid
MemoryRecord.extra_info
MemoryRecord.extra_info
MemoryRecord.from_dict()
MemoryRecord.message
MemoryRecord.model_computed_fields
MemoryRecord.model_config
MemoryRecord.model_fields
MemoryRecord.role_at_backend
MemoryRecord.to_dict()
MemoryRecord.to_openai_message()
MemoryRecord.uuid
- Module contents
AgentMemory
BaseContextCreator
ChatHistoryBlock
ChatHistoryMemory
ContextRecord
LongtermAgentMemory
MemoryBlock
MemoryRecord
MemoryRecord.message
MemoryRecord.role_at_backend
MemoryRecord.uuid
MemoryRecord.extra_info
MemoryRecord.extra_info
MemoryRecord.from_dict()
MemoryRecord.message
MemoryRecord.model_computed_fields
MemoryRecord.model_config
MemoryRecord.model_fields
MemoryRecord.role_at_backend
MemoryRecord.to_dict()
MemoryRecord.to_openai_message()
MemoryRecord.uuid
ScoreBasedContextCreator
VectorDBBlock
VectorDBMemory
- camel.messages package
- Submodules
- camel.messages.base module
BaseMessage
BaseMessage.content
BaseMessage.create_new_instance()
BaseMessage.extract_text_and_code_prompts()
BaseMessage.from_sharegpt()
BaseMessage.image_detail
BaseMessage.image_list
BaseMessage.make_assistant_message()
BaseMessage.make_user_message()
BaseMessage.meta_dict
BaseMessage.parsed
BaseMessage.role_name
BaseMessage.role_type
BaseMessage.to_dict()
BaseMessage.to_openai_assistant_message()
BaseMessage.to_openai_message()
BaseMessage.to_openai_system_message()
BaseMessage.to_openai_user_message()
BaseMessage.to_sharegpt()
BaseMessage.video_bytes
BaseMessage.video_detail
- camel.messages.func_message module
FunctionCallingMessage
FunctionCallingMessage.args
FunctionCallingMessage.func_name
FunctionCallingMessage.result
FunctionCallingMessage.to_openai_assistant_message()
FunctionCallingMessage.to_openai_message()
FunctionCallingMessage.to_openai_tool_message()
FunctionCallingMessage.to_sharegpt()
FunctionCallingMessage.tool_call_id
- Module contents
AlpacaItem
BaseMessage
BaseMessage.content
BaseMessage.create_new_instance()
BaseMessage.extract_text_and_code_prompts()
BaseMessage.from_sharegpt()
BaseMessage.image_detail
BaseMessage.image_list
BaseMessage.make_assistant_message()
BaseMessage.make_user_message()
BaseMessage.meta_dict
BaseMessage.parsed
BaseMessage.role_name
BaseMessage.role_type
BaseMessage.to_dict()
BaseMessage.to_openai_assistant_message()
BaseMessage.to_openai_message()
BaseMessage.to_openai_system_message()
BaseMessage.to_openai_user_message()
BaseMessage.to_sharegpt()
BaseMessage.video_bytes
BaseMessage.video_detail
FunctionCallFormatter
FunctionCallingMessage
FunctionCallingMessage.args
FunctionCallingMessage.content
FunctionCallingMessage.func_name
FunctionCallingMessage.meta_dict
FunctionCallingMessage.result
FunctionCallingMessage.role_name
FunctionCallingMessage.role_type
FunctionCallingMessage.to_openai_assistant_message()
FunctionCallingMessage.to_openai_message()
FunctionCallingMessage.to_openai_tool_message()
FunctionCallingMessage.to_sharegpt()
FunctionCallingMessage.tool_call_id
HermesFunctionFormatter
OpenAISystemMessage
OpenAIToolMessageParam
OpenAIUserMessage
ShareGPTConversation
ShareGPTMessage
- camel.models package
- Submodules
- camel.models.anthropic_model module
- camel.models.azure_openai_model module
- camel.models.base_model module
- camel.models.gemini_model module
- camel.models.groq_model module
- camel.models.litellm_model module
- camel.models.mistral_model module
- camel.models.model_factory module
- camel.models.nemotron_model module
- camel.models.ollama_model module
- camel.models.open_source_model module
- camel.models.openai_compatible_model module
- camel.models.openai_model module
- camel.models.reka_model module
- camel.models.samba_model module
- camel.models.stub_model module
- camel.models.togetherai_model module
- camel.models.vllm_model module
- camel.models.zhipuai_model module
- Module contents
AIMLModel
AnthropicModel
AzureOpenAIModel
BaseModelBackend
CohereModel
DeepSeekModel
FishAudioModel
GeminiModel
GroqModel
InternLMModel
LiteLLMModel
MistralModel
ModelFactory
ModelManager
ModelProcessingError
MoonshotModel
NemotronModel
NvidiaModel
OllamaModel
OpenAIAudioModels
OpenAICompatibleModel
OpenAIModel
QwenModel
RekaModel
SGLangModel
SambaModel
StubModel
TogetherAIModel
VLLMModel
YiModel
ZhipuAIModel
- camel.prompts package
- Submodules
- camel.prompts.ai_society module
AISocietyPromptTemplateDict
AISocietyPromptTemplateDict.GENERATE_ASSISTANTS
AISocietyPromptTemplateDict.GENERATE_USERS
AISocietyPromptTemplateDict.GENERATE_TASKS
AISocietyPromptTemplateDict.TASK_SPECIFY_PROMPT
AISocietyPromptTemplateDict.ASSISTANT_PROMPT
AISocietyPromptTemplateDict.USER_PROMPT
AISocietyPromptTemplateDict.ASSISTANT_PROMPT
AISocietyPromptTemplateDict.CRITIC_PROMPT
AISocietyPromptTemplateDict.GENERATE_ASSISTANTS
AISocietyPromptTemplateDict.GENERATE_TASKS
AISocietyPromptTemplateDict.GENERATE_USERS
AISocietyPromptTemplateDict.TASK_SPECIFY_PROMPT
AISocietyPromptTemplateDict.USER_PROMPT
- camel.prompts.base module
CodePrompt
CodePrompt.code_type
CodePrompt.capitalize()
CodePrompt.casefold()
CodePrompt.center()
CodePrompt.code_type
CodePrompt.count()
CodePrompt.encode()
CodePrompt.endswith()
CodePrompt.execute()
CodePrompt.expandtabs()
CodePrompt.find()
CodePrompt.format()
CodePrompt.format_map()
CodePrompt.index()
CodePrompt.isalnum()
CodePrompt.isalpha()
CodePrompt.isascii()
CodePrompt.isdecimal()
CodePrompt.isdigit()
CodePrompt.isidentifier()
CodePrompt.islower()
CodePrompt.isnumeric()
CodePrompt.isprintable()
CodePrompt.isspace()
CodePrompt.istitle()
CodePrompt.isupper()
CodePrompt.join()
CodePrompt.ljust()
CodePrompt.lower()
CodePrompt.lstrip()
CodePrompt.maketrans()
CodePrompt.partition()
CodePrompt.removeprefix()
CodePrompt.removesuffix()
CodePrompt.replace()
CodePrompt.rfind()
CodePrompt.rindex()
CodePrompt.rjust()
CodePrompt.rpartition()
CodePrompt.rsplit()
CodePrompt.rstrip()
CodePrompt.set_code_type()
CodePrompt.split()
CodePrompt.splitlines()
CodePrompt.startswith()
CodePrompt.strip()
CodePrompt.swapcase()
CodePrompt.title()
CodePrompt.translate()
CodePrompt.upper()
CodePrompt.zfill()
TextPrompt
TextPrompt.key_words
TextPrompt.capitalize()
TextPrompt.casefold()
TextPrompt.center()
TextPrompt.count()
TextPrompt.encode()
TextPrompt.endswith()
TextPrompt.expandtabs()
TextPrompt.find()
TextPrompt.format()
TextPrompt.format_map()
TextPrompt.index()
TextPrompt.isalnum()
TextPrompt.isalpha()
TextPrompt.isascii()
TextPrompt.isdecimal()
TextPrompt.isdigit()
TextPrompt.isidentifier()
TextPrompt.islower()
TextPrompt.isnumeric()
TextPrompt.isprintable()
TextPrompt.isspace()
TextPrompt.istitle()
TextPrompt.isupper()
TextPrompt.join()
TextPrompt.key_words
TextPrompt.ljust()
TextPrompt.lower()
TextPrompt.lstrip()
TextPrompt.maketrans()
TextPrompt.partition()
TextPrompt.removeprefix()
TextPrompt.removesuffix()
TextPrompt.replace()
TextPrompt.rfind()
TextPrompt.rindex()
TextPrompt.rjust()
TextPrompt.rpartition()
TextPrompt.rsplit()
TextPrompt.rstrip()
TextPrompt.split()
TextPrompt.splitlines()
TextPrompt.startswith()
TextPrompt.strip()
TextPrompt.swapcase()
TextPrompt.title()
TextPrompt.translate()
TextPrompt.upper()
TextPrompt.zfill()
TextPromptDict
return_prompt_wrapper()
wrap_prompt_functions()
- camel.prompts.code module
CodePromptTemplateDict
CodePromptTemplateDict.GENERATE_LANGUAGES
CodePromptTemplateDict.GENERATE_DOMAINS
CodePromptTemplateDict.GENERATE_TASKS
CodePromptTemplateDict.TASK_SPECIFY_PROMPT
CodePromptTemplateDict.ASSISTANT_PROMPT
CodePromptTemplateDict.USER_PROMPT
CodePromptTemplateDict.ASSISTANT_PROMPT
CodePromptTemplateDict.GENERATE_DOMAINS
CodePromptTemplateDict.GENERATE_LANGUAGES
CodePromptTemplateDict.GENERATE_TASKS
CodePromptTemplateDict.TASK_SPECIFY_PROMPT
CodePromptTemplateDict.USER_PROMPT
- camel.prompts.evaluation module
- camel.prompts.generate_text_embedding_data module
- camel.prompts.image_craft module
- camel.prompts.misalignment module
MisalignmentPromptTemplateDict
MisalignmentPromptTemplateDict.DAN_PROMPT
MisalignmentPromptTemplateDict.GENERATE_TASKS
MisalignmentPromptTemplateDict.TASK_SPECIFY_PROMPT
MisalignmentPromptTemplateDict.ASSISTANT_PROMPT
MisalignmentPromptTemplateDict.USER_PROMPT
MisalignmentPromptTemplateDict.ASSISTANT_PROMPT
MisalignmentPromptTemplateDict.DAN_PROMPT
MisalignmentPromptTemplateDict.GENERATE_TASKS
MisalignmentPromptTemplateDict.TASK_SPECIFY_PROMPT
MisalignmentPromptTemplateDict.USER_PROMPT
- camel.prompts.multi_condition_image_craft module
- camel.prompts.object_recognition module
- camel.prompts.prompt_templates module
- camel.prompts.role_description_prompt_template module
RoleDescriptionPromptTemplateDict
RoleDescriptionPromptTemplateDict.ROLE_DESCRIPTION_PROMPT
RoleDescriptionPromptTemplateDict.ASSISTANT_PROMPT
RoleDescriptionPromptTemplateDict.USER_PROMPT
RoleDescriptionPromptTemplateDict.ASSISTANT_PROMPT
RoleDescriptionPromptTemplateDict.ROLE_DESCRIPTION_PROMPT
RoleDescriptionPromptTemplateDict.USER_PROMPT
- camel.prompts.solution_extraction module
- camel.prompts.task_prompt_template module
- camel.prompts.translation module
- camel.prompts.video_description_prompt module
- Module contents
AISocietyPromptTemplateDict
AISocietyPromptTemplateDict.GENERATE_ASSISTANTS
AISocietyPromptTemplateDict.GENERATE_USERS
AISocietyPromptTemplateDict.GENERATE_TASKS
AISocietyPromptTemplateDict.TASK_SPECIFY_PROMPT
AISocietyPromptTemplateDict.ASSISTANT_PROMPT
AISocietyPromptTemplateDict.USER_PROMPT
AISocietyPromptTemplateDict.ASSISTANT_PROMPT
AISocietyPromptTemplateDict.CRITIC_PROMPT
AISocietyPromptTemplateDict.GENERATE_ASSISTANTS
AISocietyPromptTemplateDict.GENERATE_TASKS
AISocietyPromptTemplateDict.GENERATE_USERS
AISocietyPromptTemplateDict.TASK_SPECIFY_PROMPT
AISocietyPromptTemplateDict.USER_PROMPT
CodePrompt
CodePrompt.code_type
CodePrompt.capitalize()
CodePrompt.casefold()
CodePrompt.center()
CodePrompt.code_type
CodePrompt.count()
CodePrompt.encode()
CodePrompt.endswith()
CodePrompt.execute()
CodePrompt.expandtabs()
CodePrompt.find()
CodePrompt.format()
CodePrompt.format_map()
CodePrompt.index()
CodePrompt.isalnum()
CodePrompt.isalpha()
CodePrompt.isascii()
CodePrompt.isdecimal()
CodePrompt.isdigit()
CodePrompt.isidentifier()
CodePrompt.islower()
CodePrompt.isnumeric()
CodePrompt.isprintable()
CodePrompt.isspace()
CodePrompt.istitle()
CodePrompt.isupper()
CodePrompt.join()
CodePrompt.ljust()
CodePrompt.lower()
CodePrompt.lstrip()
CodePrompt.maketrans()
CodePrompt.partition()
CodePrompt.removeprefix()
CodePrompt.removesuffix()
CodePrompt.replace()
CodePrompt.rfind()
CodePrompt.rindex()
CodePrompt.rjust()
CodePrompt.rpartition()
CodePrompt.rsplit()
CodePrompt.rstrip()
CodePrompt.set_code_type()
CodePrompt.split()
CodePrompt.splitlines()
CodePrompt.startswith()
CodePrompt.strip()
CodePrompt.swapcase()
CodePrompt.title()
CodePrompt.translate()
CodePrompt.upper()
CodePrompt.zfill()
CodePromptTemplateDict
CodePromptTemplateDict.GENERATE_LANGUAGES
CodePromptTemplateDict.GENERATE_DOMAINS
CodePromptTemplateDict.GENERATE_TASKS
CodePromptTemplateDict.TASK_SPECIFY_PROMPT
CodePromptTemplateDict.ASSISTANT_PROMPT
CodePromptTemplateDict.USER_PROMPT
CodePromptTemplateDict.ASSISTANT_PROMPT
CodePromptTemplateDict.GENERATE_DOMAINS
CodePromptTemplateDict.GENERATE_LANGUAGES
CodePromptTemplateDict.GENERATE_TASKS
CodePromptTemplateDict.TASK_SPECIFY_PROMPT
CodePromptTemplateDict.USER_PROMPT
EvaluationPromptTemplateDict
GenerateTextEmbeddingDataPromptTemplateDict
ImageCraftPromptTemplateDict
MisalignmentPromptTemplateDict
MisalignmentPromptTemplateDict.DAN_PROMPT
MisalignmentPromptTemplateDict.GENERATE_TASKS
MisalignmentPromptTemplateDict.TASK_SPECIFY_PROMPT
MisalignmentPromptTemplateDict.ASSISTANT_PROMPT
MisalignmentPromptTemplateDict.USER_PROMPT
MisalignmentPromptTemplateDict.ASSISTANT_PROMPT
MisalignmentPromptTemplateDict.DAN_PROMPT
MisalignmentPromptTemplateDict.GENERATE_TASKS
MisalignmentPromptTemplateDict.TASK_SPECIFY_PROMPT
MisalignmentPromptTemplateDict.USER_PROMPT
MultiConditionImageCraftPromptTemplateDict
ObjectRecognitionPromptTemplateDict
PersonaHubPrompt
PromptTemplateGenerator
RoleDescriptionPromptTemplateDict
RoleDescriptionPromptTemplateDict.ROLE_DESCRIPTION_PROMPT
RoleDescriptionPromptTemplateDict.ASSISTANT_PROMPT
RoleDescriptionPromptTemplateDict.USER_PROMPT
RoleDescriptionPromptTemplateDict.ASSISTANT_PROMPT
RoleDescriptionPromptTemplateDict.ROLE_DESCRIPTION_PROMPT
RoleDescriptionPromptTemplateDict.USER_PROMPT
SolutionExtractionPromptTemplateDict
TaskPromptTemplateDict
TextPrompt
TextPrompt.key_words
TextPrompt.capitalize()
TextPrompt.casefold()
TextPrompt.center()
TextPrompt.count()
TextPrompt.encode()
TextPrompt.endswith()
TextPrompt.expandtabs()
TextPrompt.find()
TextPrompt.format()
TextPrompt.format_map()
TextPrompt.index()
TextPrompt.isalnum()
TextPrompt.isalpha()
TextPrompt.isascii()
TextPrompt.isdecimal()
TextPrompt.isdigit()
TextPrompt.isidentifier()
TextPrompt.islower()
TextPrompt.isnumeric()
TextPrompt.isprintable()
TextPrompt.isspace()
TextPrompt.istitle()
TextPrompt.isupper()
TextPrompt.join()
TextPrompt.key_words
TextPrompt.ljust()
TextPrompt.lower()
TextPrompt.lstrip()
TextPrompt.maketrans()
TextPrompt.partition()
TextPrompt.removeprefix()
TextPrompt.removesuffix()
TextPrompt.replace()
TextPrompt.rfind()
TextPrompt.rindex()
TextPrompt.rjust()
TextPrompt.rpartition()
TextPrompt.rsplit()
TextPrompt.rstrip()
TextPrompt.split()
TextPrompt.splitlines()
TextPrompt.startswith()
TextPrompt.strip()
TextPrompt.swapcase()
TextPrompt.title()
TextPrompt.translate()
TextPrompt.upper()
TextPrompt.zfill()
TextPromptDict
TranslationPromptTemplateDict
VideoDescriptionPromptTemplateDict
- camel.responses package
- camel.retrievers package
- Submodules
- camel.retrievers.auto_retriever module
- camel.retrievers.base module
- camel.retrievers.bm25_retriever module
- camel.retrievers.cohere_rerank_retriever module
- camel.retrievers.vector_retriever module
- Module contents
- camel.societies package
- Submodules
- camel.societies.babyagi_playing module
- camel.societies.role_playing module
- Subpackages
- camel.societies.workforce package
- Submodules
- camel.societies.workforce.base module
- camel.societies.workforce.prompts module
- camel.societies.workforce.role_playing_worker module
- camel.societies.workforce.single_agent_worker module
- camel.societies.workforce.task_channel module
- camel.societies.workforce.utils module
- camel.societies.workforce.worker module
- camel.societies.workforce.workforce module
- Module contents
- camel.societies.workforce package
- Module contents
- camel.storages package
- Subpackages
- Module contents
BaseGraphStorage
BaseKeyValueStorage
BaseVectorStorage
InMemoryKeyValueStorage
JsonStorage
MilvusStorage
NebulaGraph
NebulaGraph.add_graph_elements()
NebulaGraph.add_node()
NebulaGraph.add_triplet()
NebulaGraph.delete_entity()
NebulaGraph.delete_triplet()
NebulaGraph.ensure_edge_type_exists()
NebulaGraph.ensure_tag_exists()
NebulaGraph.get_client
NebulaGraph.get_indexes()
NebulaGraph.get_node_properties()
NebulaGraph.get_relationship_properties()
NebulaGraph.get_relationship_types()
NebulaGraph.get_schema()
NebulaGraph.get_structured_schema
NebulaGraph.query()
NebulaGraph.refresh_schema()
Neo4jGraph
QdrantStorage
RedisStorage
VectorDBQuery
VectorDBQueryResult
VectorRecord
- camel.tasks package
- Submodules
- camel.tasks.task module
Task
Task.content
Task.id
Task.state
Task.type
Task.parent
Task.subtasks
Task.result
Task.add_subtask()
Task.additional_info
Task.compose()
Task.content
Task.decompose()
Task.failure_count
Task.from_message()
Task.get_depth()
Task.get_result()
Task.get_running_task()
Task.id
Task.model_computed_fields
Task.model_config
Task.model_fields
Task.parent
Task.remove_subtask()
Task.reset()
Task.result
Task.set_id()
Task.set_state()
Task.state
Task.subtasks
Task.to_message()
Task.to_string()
Task.type
Task.update_result()
TaskManager
TaskState
parse_response()
- camel.tasks.task_prompt module
- Module contents
Task
Task.content
Task.id
Task.state
Task.type
Task.parent
Task.subtasks
Task.result
Task.add_subtask()
Task.additional_info
Task.compose()
Task.content
Task.decompose()
Task.failure_count
Task.from_message()
Task.get_depth()
Task.get_result()
Task.get_running_task()
Task.id
Task.model_computed_fields
Task.model_config
Task.model_fields
Task.parent
Task.remove_subtask()
Task.reset()
Task.result
Task.set_id()
Task.set_state()
Task.state
Task.subtasks
Task.to_message()
Task.to_string()
Task.type
Task.update_result()
TaskManager
- camel.terminators package
- camel.toolkits package
- Submodules
- camel.toolkits.base module
- camel.toolkits.code_execution module
- camel.toolkits.dalle_toolkit module
- camel.toolkits.github_toolkit module
GithubToolkit
GithubToolkit.create_pull_request()
GithubToolkit.get_all_file_paths()
GithubToolkit.get_github_access_token()
GithubToolkit.get_issue_content()
GithubToolkit.get_issue_list()
GithubToolkit.get_pull_request_code()
GithubToolkit.get_pull_request_comments()
GithubToolkit.get_pull_request_list()
GithubToolkit.get_tools()
GithubToolkit.retrieve_file_content()
- camel.toolkits.google_maps_toolkit module
- camel.toolkits.linkedin_toolkit module
- camel.toolkits.math_toolkit module
- camel.toolkits.open_api_toolkit module
- camel.toolkits.openai_function module
FunctionTool
FunctionTool.async_call()
FunctionTool.get_function_description()
FunctionTool.get_function_name()
FunctionTool.get_openai_function_schema()
FunctionTool.get_openai_tool_schema()
FunctionTool.get_parameter()
FunctionTool.get_paramter_description()
FunctionTool.is_async
FunctionTool.parameters
FunctionTool.set_function_description()
FunctionTool.set_function_name()
FunctionTool.set_openai_function_schema()
FunctionTool.set_openai_tool_schema()
FunctionTool.set_parameter()
FunctionTool.set_paramter_description()
FunctionTool.synthesize_execution_output()
FunctionTool.synthesize_openai_tool_schema()
FunctionTool.validate_openai_tool_schema()
generate_docstring()
get_openai_function_schema()
get_openai_tool_schema()
sanitize_and_enforce_required()
- camel.toolkits.reddit_toolkit module
- camel.toolkits.retrieval_toolkit module
- camel.toolkits.search_toolkit module
- camel.toolkits.slack_toolkit module
- camel.toolkits.twitter_toolkit module
- camel.toolkits.weather_toolkit module
- Module contents
ArxivToolkit
AskNewsToolkit
AsyncAskNewsToolkit
BaseToolkit
CodeExecutionToolkit
DalleToolkit
DappierToolkit
FunctionTool
FunctionTool.async_call()
FunctionTool.get_function_description()
FunctionTool.get_function_name()
FunctionTool.get_openai_function_schema()
FunctionTool.get_openai_tool_schema()
FunctionTool.get_parameter()
FunctionTool.get_paramter_description()
FunctionTool.is_async
FunctionTool.parameters
FunctionTool.set_function_description()
FunctionTool.set_function_name()
FunctionTool.set_openai_function_schema()
FunctionTool.set_openai_tool_schema()
FunctionTool.set_parameter()
FunctionTool.set_paramter_description()
FunctionTool.synthesize_execution_output()
FunctionTool.synthesize_openai_tool_schema()
FunctionTool.validate_openai_tool_schema()
GithubToolkit
GithubToolkit.create_pull_request()
GithubToolkit.get_all_file_paths()
GithubToolkit.get_github_access_token()
GithubToolkit.get_issue_content()
GithubToolkit.get_issue_list()
GithubToolkit.get_pull_request_code()
GithubToolkit.get_pull_request_comments()
GithubToolkit.get_pull_request_list()
GithubToolkit.get_tools()
GithubToolkit.retrieve_file_content()
GoogleMapsToolkit
GoogleScholarToolkit
GoogleScholarToolkit.author_identifier
GoogleScholarToolkit.is_author_name
GoogleScholarToolkit.scholarly
GoogleScholarToolkit.author
GoogleScholarToolkit.author
GoogleScholarToolkit.get_author_detailed_info()
GoogleScholarToolkit.get_author_publications()
GoogleScholarToolkit.get_full_paper_content_by_link()
GoogleScholarToolkit.get_publication_by_title()
GoogleScholarToolkit.get_tools()
HumanToolkit
LinkedInToolkit
MathToolkit
MeshyToolkit
MinerUToolkit
NetworkXToolkit
NetworkXToolkit.add_edge()
NetworkXToolkit.add_node()
NetworkXToolkit.clear_graph()
NetworkXToolkit.compute_centrality()
NetworkXToolkit.deserialize_graph()
NetworkXToolkit.export_to_file()
NetworkXToolkit.get_edges()
NetworkXToolkit.get_nodes()
NetworkXToolkit.get_shortest_path()
NetworkXToolkit.get_tools()
NetworkXToolkit.import_from_file()
NetworkXToolkit.serialize_graph()
NotionToolkit
OpenAPIToolkit
OpenBBToolkit
OpenBBToolkit.get_available_indicators()
OpenBBToolkit.get_available_indices()
OpenBBToolkit.get_company_profile()
OpenBBToolkit.get_dividend_calendar()
OpenBBToolkit.get_earnings_calendar()
OpenBBToolkit.get_economic_calendar()
OpenBBToolkit.get_financial_attributes()
OpenBBToolkit.get_financial_metrics()
OpenBBToolkit.get_financial_statement()
OpenBBToolkit.get_historical_data()
OpenBBToolkit.get_indicator_data()
OpenBBToolkit.get_ipo_calendar()
OpenBBToolkit.get_market_data()
OpenBBToolkit.get_stock_quote()
OpenBBToolkit.get_tools()
OpenBBToolkit.screen_market()
OpenBBToolkit.search_equity()
OpenBBToolkit.search_etf()
OpenBBToolkit.search_filings()
OpenBBToolkit.search_financial_attributes()
OpenBBToolkit.search_institution()
RedditToolkit
RetrievalToolkit
SearchToolkit
SemanticScholarToolkit
SlackToolkit
StripeToolkit
StripeToolkit.logger
StripeToolkit.balance_get()
StripeToolkit.balance_transaction_list()
StripeToolkit.customer_get()
StripeToolkit.customer_list()
StripeToolkit.get_tools()
StripeToolkit.handle_exception()
StripeToolkit.payment_get()
StripeToolkit.payment_list()
StripeToolkit.refund_get()
StripeToolkit.refund_list()
SymPyToolkit
SymPyToolkit.check_continuity()
SymPyToolkit.compute_determinant()
SymPyToolkit.compute_eigenvalues()
SymPyToolkit.compute_eigenvectors()
SymPyToolkit.compute_inner_product()
SymPyToolkit.compute_inverse()
SymPyToolkit.compute_limit()
SymPyToolkit.compute_nullspace()
SymPyToolkit.compute_rank()
SymPyToolkit.definite_integral()
SymPyToolkit.differentiate()
SymPyToolkit.expand_expression()
SymPyToolkit.factor_expression()
SymPyToolkit.find_critical_points()
SymPyToolkit.find_roots()
SymPyToolkit.get_tools()
SymPyToolkit.handle_exception()
SymPyToolkit.integrate()
SymPyToolkit.polynomial_coefficients()
SymPyToolkit.polynomial_degree()
SymPyToolkit.polynomial_representation()
SymPyToolkit.reduce_inequalities()
SymPyToolkit.series_expansion()
SymPyToolkit.simplify_expression()
SymPyToolkit.solve_equation()
SymPyToolkit.solve_linear_system()
SymPyToolkit.solve_nonlinear_system()
SymPyToolkit.solve_univariate_inequality()
TwitterToolkit
VideoDownloaderToolkit
WeatherToolkit
ZapierToolkit
generate_docstring()
get_openai_function_schema()
get_openai_tool_schema()
- camel.types package
- Submodules
- camel.types.enums module
AudioModelType
EmbeddingModelType
EmbeddingModelType.JINA_CLIP_V2
EmbeddingModelType.JINA_COLBERT_V2
EmbeddingModelType.JINA_EMBEDDINGS_V2_BASE_CODE
EmbeddingModelType.JINA_EMBEDDINGS_V3
EmbeddingModelType.MISTRAL_EMBED
EmbeddingModelType.TEXT_EMBEDDING_3_LARGE
EmbeddingModelType.TEXT_EMBEDDING_3_SMALL
EmbeddingModelType.TEXT_EMBEDDING_ADA_2
EmbeddingModelType.is_jina
EmbeddingModelType.is_mistral
EmbeddingModelType.is_openai
EmbeddingModelType.output_dim
HuggingFaceRepoType
JinaReturnFormat
ModelPlatformType
ModelPlatformType.AIML
ModelPlatformType.ANTHROPIC
ModelPlatformType.AZURE
ModelPlatformType.COHERE
ModelPlatformType.DEEPSEEK
ModelPlatformType.DEFAULT
ModelPlatformType.GEMINI
ModelPlatformType.GROQ
ModelPlatformType.INTERNLM
ModelPlatformType.LITELLM
ModelPlatformType.MISTRAL
ModelPlatformType.MOONSHOT
ModelPlatformType.NVIDIA
ModelPlatformType.OLLAMA
ModelPlatformType.OPENAI
ModelPlatformType.OPENAI_COMPATIBLE_MODEL
ModelPlatformType.QWEN
ModelPlatformType.REKA
ModelPlatformType.SAMBA
ModelPlatformType.SGLANG
ModelPlatformType.SILICONFLOW
ModelPlatformType.TOGETHER
ModelPlatformType.VLLM
ModelPlatformType.YI
ModelPlatformType.ZHIPU
ModelPlatformType.is_aiml
ModelPlatformType.is_anthropic
ModelPlatformType.is_azure
ModelPlatformType.is_cohere
ModelPlatformType.is_deepseek
ModelPlatformType.is_gemini
ModelPlatformType.is_groq
ModelPlatformType.is_internlm
ModelPlatformType.is_litellm
ModelPlatformType.is_mistral
ModelPlatformType.is_moonshot
ModelPlatformType.is_nvidia
ModelPlatformType.is_ollama
ModelPlatformType.is_openai
ModelPlatformType.is_openai_compatible_model
ModelPlatformType.is_qwen
ModelPlatformType.is_reka
ModelPlatformType.is_samba
ModelPlatformType.is_sglang
ModelPlatformType.is_siliconflow
ModelPlatformType.is_together
ModelPlatformType.is_vllm
ModelPlatformType.is_yi
ModelPlatformType.is_zhipuai
OpenAIBackendRole
OpenAIImageType
OpenAIImageTypeMeta
OpenAIVisionDetailType
OpenAPIName
RoleType
StorageType
TaskType
TaskType.AI_SOCIETY
TaskType.CODE
TaskType.DEFAULT
TaskType.EVALUATION
TaskType.GENERATE_TEXT_EMBEDDING_DATA
TaskType.IMAGE_CRAFT
TaskType.MISALIGNMENT
TaskType.MULTI_CONDITION_IMAGE_CRAFT
TaskType.OBJECT_RECOGNITION
TaskType.ROLE_DESCRIPTION
TaskType.SOLUTION_EXTRACTION
TaskType.TRANSLATION
TaskType.VIDEO_DESCRIPTION
TerminationMode
VectorDistance
VoiceType
- camel.types.openai_types module
ChatCompletion
ChatCompletionAssistantMessageParam
ChatCompletionAssistantMessageParam.audio
ChatCompletionAssistantMessageParam.content
ChatCompletionAssistantMessageParam.function_call
ChatCompletionAssistantMessageParam.name
ChatCompletionAssistantMessageParam.refusal
ChatCompletionAssistantMessageParam.role
ChatCompletionAssistantMessageParam.tool_calls
ChatCompletionChunk
ChatCompletionChunk.choices
ChatCompletionChunk.created
ChatCompletionChunk.id
ChatCompletionChunk.model
ChatCompletionChunk.model_computed_fields
ChatCompletionChunk.model_config
ChatCompletionChunk.model_fields
ChatCompletionChunk.object
ChatCompletionChunk.service_tier
ChatCompletionChunk.system_fingerprint
ChatCompletionChunk.usage
ChatCompletionMessage
ChatCompletionMessageToolCall
ChatCompletionSystemMessageParam
ChatCompletionToolMessageParam
ChatCompletionUserMessageParam
Choice
CompletionUsage
NotGiven
ParsedChatCompletion
- Module contents
AudioModelType
ChatCompletion
ChatCompletionAssistantMessageParam
ChatCompletionAssistantMessageParam.audio
ChatCompletionAssistantMessageParam.content
ChatCompletionAssistantMessageParam.function_call
ChatCompletionAssistantMessageParam.name
ChatCompletionAssistantMessageParam.refusal
ChatCompletionAssistantMessageParam.role
ChatCompletionAssistantMessageParam.tool_calls
ChatCompletionChunk
ChatCompletionChunk.choices
ChatCompletionChunk.created
ChatCompletionChunk.id
ChatCompletionChunk.model
ChatCompletionChunk.model_computed_fields
ChatCompletionChunk.model_config
ChatCompletionChunk.model_fields
ChatCompletionChunk.object
ChatCompletionChunk.service_tier
ChatCompletionChunk.system_fingerprint
ChatCompletionChunk.usage
ChatCompletionMessage
ChatCompletionMessageToolCall
ChatCompletionSystemMessageParam
ChatCompletionToolMessageParam
ChatCompletionUserMessageParam
Choice
CompletionUsage
EmbeddingModelType
EmbeddingModelType.JINA_CLIP_V2
EmbeddingModelType.JINA_COLBERT_V2
EmbeddingModelType.JINA_EMBEDDINGS_V2_BASE_CODE
EmbeddingModelType.JINA_EMBEDDINGS_V3
EmbeddingModelType.MISTRAL_EMBED
EmbeddingModelType.TEXT_EMBEDDING_3_LARGE
EmbeddingModelType.TEXT_EMBEDDING_3_SMALL
EmbeddingModelType.TEXT_EMBEDDING_ADA_2
EmbeddingModelType.is_jina
EmbeddingModelType.is_mistral
EmbeddingModelType.is_openai
EmbeddingModelType.output_dim
HuggingFaceRepoType
ModelPlatformType
ModelPlatformType.AIML
ModelPlatformType.ANTHROPIC
ModelPlatformType.AZURE
ModelPlatformType.COHERE
ModelPlatformType.DEEPSEEK
ModelPlatformType.DEFAULT
ModelPlatformType.GEMINI
ModelPlatformType.GROQ
ModelPlatformType.INTERNLM
ModelPlatformType.LITELLM
ModelPlatformType.MISTRAL
ModelPlatformType.MOONSHOT
ModelPlatformType.NVIDIA
ModelPlatformType.OLLAMA
ModelPlatformType.OPENAI
ModelPlatformType.OPENAI_COMPATIBLE_MODEL
ModelPlatformType.QWEN
ModelPlatformType.REKA
ModelPlatformType.SAMBA
ModelPlatformType.SGLANG
ModelPlatformType.SILICONFLOW
ModelPlatformType.TOGETHER
ModelPlatformType.VLLM
ModelPlatformType.YI
ModelPlatformType.ZHIPU
ModelPlatformType.is_aiml
ModelPlatformType.is_anthropic
ModelPlatformType.is_azure
ModelPlatformType.is_cohere
ModelPlatformType.is_deepseek
ModelPlatformType.is_gemini
ModelPlatformType.is_groq
ModelPlatformType.is_internlm
ModelPlatformType.is_litellm
ModelPlatformType.is_mistral
ModelPlatformType.is_moonshot
ModelPlatformType.is_nvidia
ModelPlatformType.is_ollama
ModelPlatformType.is_openai
ModelPlatformType.is_openai_compatible_model
ModelPlatformType.is_qwen
ModelPlatformType.is_reka
ModelPlatformType.is_samba
ModelPlatformType.is_sglang
ModelPlatformType.is_siliconflow
ModelPlatformType.is_together
ModelPlatformType.is_vllm
ModelPlatformType.is_yi
ModelPlatformType.is_zhipuai
ModelType
ModelType.AIML_MISTRAL_7B_INSTRUCT
ModelType.AIML_MIXTRAL_8X7B
ModelType.CLAUDE_2_0
ModelType.CLAUDE_2_1
ModelType.CLAUDE_3_5_HAIKU
ModelType.CLAUDE_3_5_SONNET
ModelType.CLAUDE_3_HAIKU
ModelType.CLAUDE_3_OPUS
ModelType.CLAUDE_3_SONNET
ModelType.CLAUDE_INSTANT_1_2
ModelType.COHERE_COMMAND
ModelType.COHERE_COMMAND_LIGHT
ModelType.COHERE_COMMAND_NIGHTLY
ModelType.COHERE_COMMAND_R
ModelType.COHERE_COMMAND_R_PLUS
ModelType.DEEPSEEK_CHAT
ModelType.DEEPSEEK_REASONER
ModelType.DEFAULT
ModelType.GEMINI_1_5_FLASH
ModelType.GEMINI_1_5_PRO
ModelType.GEMINI_2_0_FLASH
ModelType.GEMINI_2_0_FLASH_LITE_PREVIEW
ModelType.GEMINI_2_0_FLASH_THINKING
ModelType.GEMINI_2_0_PRO_EXP
ModelType.GLM_3_TURBO
ModelType.GLM_4
ModelType.GLM_4V
ModelType.GLM_4V_FLASH
ModelType.GLM_4V_PLUS_0111
ModelType.GLM_4_AIR
ModelType.GLM_4_AIRX
ModelType.GLM_4_AIR_0111
ModelType.GLM_4_FLASH
ModelType.GLM_4_FLASHX
ModelType.GLM_4_LONG
ModelType.GLM_4_PLUS
ModelType.GLM_ZERO_PREVIEW
ModelType.GPT_3_5_TURBO
ModelType.GPT_4
ModelType.GPT_4O
ModelType.GPT_4O_MINI
ModelType.GPT_4_TURBO
ModelType.GROQ_GEMMA_2_9B_IT
ModelType.GROQ_LLAMA_3_1_8B
ModelType.GROQ_LLAMA_3_3_70B
ModelType.GROQ_LLAMA_3_3_70B_PREVIEW
ModelType.GROQ_LLAMA_3_70B
ModelType.GROQ_LLAMA_3_8B
ModelType.GROQ_MIXTRAL_8_7B
ModelType.INTERNLM2_5_LATEST
ModelType.INTERNLM2_PRO_CHAT
ModelType.INTERNLM3_8B_INSTRUCT
ModelType.INTERNLM3_LATEST
ModelType.MISTRAL_3B
ModelType.MISTRAL_7B
ModelType.MISTRAL_8B
ModelType.MISTRAL_CODESTRAL
ModelType.MISTRAL_CODESTRAL_MAMBA
ModelType.MISTRAL_LARGE
ModelType.MISTRAL_MIXTRAL_8x22B
ModelType.MISTRAL_MIXTRAL_8x7B
ModelType.MISTRAL_NEMO
ModelType.MISTRAL_PIXTRAL_12B
ModelType.MOONSHOT_V1_128K
ModelType.MOONSHOT_V1_32K
ModelType.MOONSHOT_V1_8K
ModelType.NVIDIA_LLAMA3_1_405B_INSTRUCT
ModelType.NVIDIA_LLAMA3_1_70B_INSTRUCT
ModelType.NVIDIA_LLAMA3_1_8B_INSTRUCT
ModelType.NVIDIA_LLAMA3_2_1B_INSTRUCT
ModelType.NVIDIA_LLAMA3_2_3B_INSTRUCT
ModelType.NVIDIA_LLAMA3_3_70B_INSTRUCT
ModelType.NVIDIA_LLAMA3_70B
ModelType.NVIDIA_MISTRAL_LARGE
ModelType.NVIDIA_MIXTRAL_8X7B
ModelType.NVIDIA_NEMOTRON_340B_INSTRUCT
ModelType.NVIDIA_NEMOTRON_340B_REWARD
ModelType.NVIDIA_YI_LARGE
ModelType.O1
ModelType.O1_MINI
ModelType.O1_PREVIEW
ModelType.O3_MINI
ModelType.QWEN_2_5_14B
ModelType.QWEN_2_5_32B
ModelType.QWEN_2_5_72B
ModelType.QWEN_2_5_CODER_32B
ModelType.QWEN_2_5_VL_72B
ModelType.QWEN_CODER_TURBO
ModelType.QWEN_LONG
ModelType.QWEN_MATH_PLUS
ModelType.QWEN_MATH_TURBO
ModelType.QWEN_MAX
ModelType.QWEN_PLUS
ModelType.QWEN_QVQ_72B
ModelType.QWEN_QWQ_32B
ModelType.QWEN_TURBO
ModelType.QWEN_VL_MAX
ModelType.QWEN_VL_PLUS
ModelType.REKA_CORE
ModelType.REKA_EDGE
ModelType.REKA_FLASH
ModelType.SAMBA_LLAMA_3_1_405B
ModelType.SAMBA_LLAMA_3_1_70B
ModelType.SAMBA_LLAMA_3_1_8B
ModelType.SGLANG_LLAMA_3_1_405B
ModelType.SGLANG_LLAMA_3_1_70B
ModelType.SGLANG_LLAMA_3_1_8B
ModelType.SGLANG_LLAMA_3_2_1B
ModelType.SGLANG_MISTRAL_7B
ModelType.SGLANG_MIXTRAL_NEMO
ModelType.SGLANG_QWEN_2_5_32B
ModelType.SGLANG_QWEN_2_5_72B
ModelType.SGLANG_QWEN_2_5_7B
ModelType.SILICONFLOW_DEEPSEEK_V2_5
ModelType.SILICONFLOW_DEEPSEEK_V3
ModelType.SILICONFLOW_INTERN_LM2_5_20B_CHAT
ModelType.SILICONFLOW_INTERN_LM2_5_7B_CHAT
ModelType.SILICONFLOW_PRO_INTERN_LM2_5_7B_CHAT
ModelType.SILICONFLOW_PRO_QWEN2_5_7B_INSTRUCT
ModelType.SILICONFLOW_PRO_THUDM_GLM_4_9B_CHAT
ModelType.SILICONFLOW_QWEN2_5_14B_INSTRUCT
ModelType.SILICONFLOW_QWEN2_5_32B_INSTRUCT
ModelType.SILICONFLOW_QWEN2_5_72B_INSTRUCT
ModelType.SILICONFLOW_QWEN2_5_7B_INSTRUCT
ModelType.SILICONFLOW_THUDM_GLM_4_9B_CHAT
ModelType.STUB
ModelType.TOGETHER_LLAMA_3_1_405B
ModelType.TOGETHER_LLAMA_3_1_70B
ModelType.TOGETHER_LLAMA_3_1_8B
ModelType.TOGETHER_LLAMA_3_3_70B
ModelType.TOGETHER_MISTRAL_7B
ModelType.TOGETHER_MIXTRAL_8_7B
ModelType.YI_LARGE
ModelType.YI_LARGE_FC
ModelType.YI_LARGE_RAG
ModelType.YI_LARGE_TURBO
ModelType.YI_LIGHTNING
ModelType.YI_MEDIUM
ModelType.YI_MEDIUM_200K
ModelType.YI_SPARK
ModelType.YI_VISION
ModelType.is_aiml
ModelType.is_anthropic
ModelType.is_azure_openai
ModelType.is_cohere
ModelType.is_deepseek
ModelType.is_gemini
ModelType.is_groq
ModelType.is_internlm
ModelType.is_mistral
ModelType.is_moonshot
ModelType.is_nvidia
ModelType.is_openai
ModelType.is_qwen
ModelType.is_reka
ModelType.is_sambanova
ModelType.is_sglang
ModelType.is_siliconflow
ModelType.is_together
ModelType.is_yi
ModelType.is_zhipuai
ModelType.support_native_structured_output
ModelType.support_native_tool_calling
ModelType.token_limit
ModelType.value_for_tiktoken
NotGiven
OpenAIBackendRole
OpenAIImageType
OpenAIVisionDetailType
OpenAPIName
ParsedChatCompletion
ParsedChatCompletion.choices
ParsedChatCompletion.created
ParsedChatCompletion.id
ParsedChatCompletion.model
ParsedChatCompletion.model_computed_fields
ParsedChatCompletion.model_config
ParsedChatCompletion.model_fields
ParsedChatCompletion.object
ParsedChatCompletion.service_tier
ParsedChatCompletion.system_fingerprint
ParsedChatCompletion.usage
RoleType
StorageType
TaskType
TaskType.AI_SOCIETY
TaskType.CODE
TaskType.DEFAULT
TaskType.EVALUATION
TaskType.GENERATE_TEXT_EMBEDDING_DATA
TaskType.IMAGE_CRAFT
TaskType.MISALIGNMENT
TaskType.MULTI_CONDITION_IMAGE_CRAFT
TaskType.OBJECT_RECOGNITION
TaskType.ROLE_DESCRIPTION
TaskType.SOLUTION_EXTRACTION
TaskType.TRANSLATION
TaskType.VIDEO_DESCRIPTION
TerminationMode
UnifiedModelType
UnifiedModelType.is_anthropic
UnifiedModelType.is_azure_openai
UnifiedModelType.is_cohere
UnifiedModelType.is_gemini
UnifiedModelType.is_groq
UnifiedModelType.is_internlm
UnifiedModelType.is_mistral
UnifiedModelType.is_moonshot
UnifiedModelType.is_openai
UnifiedModelType.is_qwen
UnifiedModelType.is_reka
UnifiedModelType.is_yi
UnifiedModelType.is_zhipuai
UnifiedModelType.support_native_structured_output
UnifiedModelType.support_native_tool_calling
UnifiedModelType.token_limit
UnifiedModelType.value_for_tiktoken
VectorDistance
VoiceType
- camel.utils package
- Submodules
- camel.utils.async_func module
- camel.utils.commons module
AgentOpsMeta
BatchProcessor
agentops_decorator()
api_keys_required()
check_server_running()
create_chunks()
dependencies_required()
download_github_subdirectory()
download_tasks()
func_string_to_callable()
generate_prompt_for_structured_output()
get_first_int()
get_prompt_template_key_words()
get_pydantic_major_version()
get_pydantic_object_schema()
get_system_information()
get_task_list()
handle_http_error()
is_docker_running()
is_module_available()
json_to_function_code()
print_text_animated()
retry_on_error()
text_extract_from_web()
to_pascal()
track_agent()
with_timeout()
- camel.utils.constants module
- camel.utils.token_counting module
- Module contents
AgentOpsMeta
AnthropicTokenCounter
BaseTokenCounter
BatchProcessor
Constants
DeduplicationResult
DeduplicationResult.original_texts
DeduplicationResult.unique_ids
DeduplicationResult.unique_embeddings_dict
DeduplicationResult.duplicate_to_target_map
DeduplicationResult.duplicate_to_target_map
DeduplicationResult.model_computed_fields
DeduplicationResult.model_config
DeduplicationResult.model_fields
DeduplicationResult.original_texts
DeduplicationResult.unique_embeddings_dict
DeduplicationResult.unique_ids
LiteLLMTokenCounter
MistralTokenCounter
OpenAITokenCounter
agentops_decorator()
api_keys_required()
check_server_running()
create_chunks()
deduplicate_internally()
dependencies_required()
download_github_subdirectory()
download_tasks()
func_string_to_callable()
get_first_int()
get_model_encoding()
get_prompt_template_key_words()
get_pydantic_major_version()
get_pydantic_model()
get_pydantic_object_schema()
get_system_information()
get_task_list()
handle_http_error()
is_docker_running()
json_to_function_code()
print_text_animated()
retry_on_error()
text_extract_from_web()
to_pascal()
track_agent()
with_timeout()
Submodules#
camel.generators module#
- class camel.generators.AISocietyTaskPromptGenerator(num_tasks: int = 10)[source]#
Bases:
object
Task prompt generator for AI society tasks.
- Parameters:
num_tasks (int, optional) β The number of tasks to generate. (default:
10
)
- from_role_files(assistant_role_names_path: str = 'data/ai_society/assistant_roles.txt', user_role_names_path: str = 'data/ai_society/user_roles.txt') Generator[Tuple[str, Tuple[str, str]], None, None] [source]#
Generate tasks from role files.
- Parameters:
assistant_role_names_path (str, optional) β The path to the file containing the assistant role names. (default:
"data/ai_society/assistant_roles.txt"
)user_role_names_path (str, optional) β The path to the file containing the user role names. (default:
"data/ai_society/user_roles.txt"
)
- Returns:
- A generator
that yields tuples of task prompts and role names.
- Return type:
Generator[Tuple[str, Tuple[str, str]], None, None]
- from_role_generator(role_generator: Generator[Tuple, None, None]) Generator[Tuple[str, Tuple[str, str]], None, None] [source]#
Generate tasks from a role generator.
- Parameters:
role_generator (Generator[Tuple, None, None]) β A generator that yields tuples of role names.
- Returns:
- A generator
that yields tuples of task prompts and role names.
- Return type:
Generator[Tuple[str, Tuple[str, str]], None, None]
- class camel.generators.CodeTaskPromptGenerator(num_tasks: int = 50)[source]#
Bases:
object
Code task prompt generator for code tasks.
- Parameters:
num_tasks (int, optional) β The number of tasks to generate. (default:
50
)
- from_role_files(languages_path: str = 'data/code/languages.txt', domains_path: str = 'data/code/domains.txt') Generator[Tuple[TextPrompt, str, str], None, None] [source]#
Generate tasks from role files.
- Parameters:
languages_path (str, optional) β The path to the file containing the language names. (default:
"data/code/languages.txt"
)domains_path (str, optional) β The path to the file containing the domain names. (default:
"data/code/domains.txt"
)
- Returns:
- A generator
that yields tuples of task prompts, language names, and domain names.
- Return type:
Generator[Tuple[TextPrompt, str, str], None, None]
- from_role_generator(role_generator: Generator[Tuple, None, None]) Generator[str, None, None] [source]#
Generate tasks from a role generator.
- Parameters:
role_generator (Generator[Tuple, None, None]) β A generator that yields tuples of role names.
- Returns:
- A generator that yields the task
prompts.
- Return type:
Generator[str, None, None]
- class camel.generators.RoleNameGenerator(assistant_role_names_path: str = 'data/ai_society/assistant_roles.txt', user_role_names_path: str = 'data/ai_society/user_roles.txt', assistant_role_names: List[str] | None = None, user_role_names: List[str] | None = None)[source]#
Bases:
object
Role name generator for role-playing workers.
- Parameters:
assistant_role_names_path (str, optional) β The path to the file containing the assistant role names. (default:
"data/ai_society/assistant_roles.txt"
)user_role_names_path (str, optional) β The path to the file containing the user role names. (default:
"data/ai_society/user_roles.txt"
)assistant_role_names (Optional[List[str]], optional) β The list of assistant role names. (default:
None
)user_role_names (Optional[List[str]], optional) β The list of user role names. (default:
None
)
- class camel.generators.SingleTxtGenerator(text_file_path: str)[source]#
Bases:
object
Single text generator for role-playing workers.
- Parameters:
text_file_path (str) β The path to the file containing the text data.
- class camel.generators.SystemMessageGenerator(task_type: TaskType = TaskType.AI_SOCIETY, sys_prompts: Dict[RoleType, str] | None = None, sys_msg_meta_dict_keys: Set[str] | None = None)[source]#
Bases:
object
System message generator for agents.
- Parameters:
task_type (TaskType, optional) β The task type. (default:
TaskType.AI_SOCIETY
)sys_prompts (Optional[Dict[RoleType, str]], optional) β The prompts of the system messages for each role type. (default:
None
)sys_msg_meta_dict_keys (Optional[Set[str]], optional) β The set of keys of the meta dictionary used to fill the prompts. (default:
None
)
- from_dict(meta_dict: Dict[str, str], role_tuple: Tuple[str, RoleType] = ('', RoleType.DEFAULT)) BaseMessage [source]#
Generates a system message from a dictionary.
- Parameters:
meta_dict (Dict[str, str]) β The dictionary containing the information to generate the system message.
role_tuple (Tuple[str, RoleType], optional) β The tuple containing the role name and role type. (default: (ββ, RoleType.DEFAULT))
- Returns:
The generated system message.
- Return type:
- from_dicts(meta_dicts: List[Dict[str, str]], role_tuples: List[Tuple[str, RoleType]]) List[BaseMessage] [source]#
Generates a list of system messages from a list of dictionaries.
- Parameters:
meta_dicts (List[Dict[str, str]]) β A list of dictionaries containing the information to generate the system messages.
role_tuples (List[Tuple[str, RoleType]]) β A list of tuples containing the role name and role type for each system message.
- Returns:
A list of generated system messages.
- Return type:
List[BaseMessage]
- Raises:
ValueError β If the number of meta_dicts and role_tuples are different.
camel.human module#
- class camel.human.Human(name: str = 'Kill Switch Engineer', logger_color: Any = '\x1b[35m')[source]#
Bases:
object
A class representing a human user.
- Parameters:
name (str) β The name of the human user. (default:
"Kill Switch Engineer"
).logger_color (Any) β The color of the menu options displayed to the user. (default:
Fore.MAGENTA
)
- name#
The name of the human user.
- Type:
str
- logger_color#
The color of the menu options displayed to the user.
- Type:
Any
- input_button#
The text displayed for the input button.
- Type:
str
- kill_button#
The text displayed for the kill button.
- Type:
str
- options_dict#
A dictionary containing the options displayed to the user.
- Type:
Dict[str, str]
- display_options(messages: Sequence[BaseMessage]) None [source]#
Displays the options to the user.
- Parameters:
messages (Sequence[BaseMessage]) β A list of BaseMessage objects.
- Returns:
None
- get_input() str [source]#
Gets the input from the user.
- Returns:
The userβs input.
- Return type:
str
- parse_input(human_input: str) str [source]#
Parses the userβs input and returns a BaseMessage object.
- Parameters:
human_input (str) β The userβs input.
- Returns:
A str object representing the userβs input.
- Return type:
content
- reduce_step(messages: Sequence[BaseMessage]) ChatAgentResponse [source]#
Performs one step of the conversation by displaying options to the user, getting their input, and parsing their choice.
- Parameters:
messages (Sequence[BaseMessage]) β A list of BaseMessage objects.
- Returns:
- A ChatAgentResponse object representing the
userβs choice.
- Return type:
Module contents#
- camel.disable_logging()[source]#
Disable all logging for the CAMEL library.
This function sets the log level to a value higher than CRITICAL, effectively disabling all log messages, and adds a NullHandler to suppress any potential warnings about no handlers being found.
- camel.enable_logging()[source]#
Enable logging for the CAMEL library.
This function re-enables logging if it was previously disabled, and configures the library logging using the default settings. If the logging is already configured,
this function does not change its configuration.
- camel.set_log_level(level)[source]#
Set the logging level for the CAMEL library.
- Parameters:
level (Union[str, int]) β The logging level to set. This can be a string (e.g., βINFOβ) or a logging level constant (e.g., logging.INFO, logging.DEBUG). See https://docs.python.org/3/library/logging.html#levels
- Raises:
ValueError β If the provided level is not a valid logging level.