AI¶
This section documents the AIApi client from openapi_client.api.ai_api. The content is generated automatically and updates when new methods are added.
Client¶
To use this API client:
import os
import certifi
from openapi_client.amorphic_api_client import AmorphicApiClient
from openapi_client.api.ai_api import AIApi
client = AmorphicApiClient.create_with_auth(
host=os.getenv('API_GW_URL'),
role_id=os.getenv('ROLE_ID'),
ssl_ca_cert=certifi.where(),
debug=False,
aws_profile=None,
env_var='PAT_TOKEN'
)
api = AIApi(client)
Available Methods¶
- add_resources_to_knowledge_base
- chat_with_ai_guard_rail
- configure_component_guard_rails
- create_agent
- create_ai_chat
- create_ai_chat_file_upload_url
- create_ai_guard_rail
- create_ai_note
- create_knowledge_base
- delete_agent
- delete_ai_chat
- delete_ai_chat_file
- delete_ai_guard_rail
- delete_ai_note
- delete_component_guard_rail_configuration
- delete_knowledge_base
- delete_knowledge_base_resource
- get_agent_details
- get_ai_chat
- get_ai_chat_config
- get_ai_guard_rail
- get_ai_knowledge_base
- get_ai_model_details
- get_ai_note
- get_default_ai_guard_rail
- get_knowledge_base_resource_details
- get_knowledge_base_run_metrics
- list_agents
- list_ai_chat_files
- list_ai_chat_messages
- list_ai_chats
- list_ai_guard_rails
- list_ai_models
- list_ai_notes
- list_component_guard_rail_configurations
- list_knowledge_bases
- query_knowledge_base
- set_ai_guard_rail_as_default
- sync_knowledge_base
- update_agent_details
- update_ai_chat
- update_ai_chat_config
- update_ai_guard_rail
- update_ai_model
- update_ai_model_configurations
- update_ai_note
- update_knowledge_base
- update_knowledge_base_resource