Project
Represents a project in the Galileo platform. Projects are containers for logs, traces, and other data in Galileo. All logs are stored within a project, and users can create and manage projects to organize their LLM usage data. Arguments-
created_at(datetime.datetime): The timestamp when the project was created. -
created_by(str): The identifier of the user who created the project. -
id(str): The unique identifier of the project. -
updated_at(datetime.datetime): The timestamp when the project was last updated. -
bookmark(Union[Unset, bool]): Whether the project is bookmarked. Defaults to False. -
name(Union[None, Unset, str]): The name of the project. -
permissions(Union[Unset, list["Permission"]])): The permissions associated with the project. -
type(Union[None, ProjectType, Unset]): The type of the project, typically GEN_AI.
Projects
create
name(str): The name of the project.
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException: If the request takes longer than Client.timeout.
Project: The created project.
delete_project
get
id or name must be provided).
Arguments
id(str): The id of the project.name(str): The name of the project.
ValueError: If neither or bothidandnameare provided.errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException: If the request takes longer than Client.timeout.
Project: The project.
get_with_env_fallbacks
id or name must be provided, but not both. If neither is provided,
the method will attempt to read from the environment variables GALILEO_PROJECT_ID
and GALILEO_PROJECT. If both environment variables are set, a ValueError is raised.
Arguments
id(str): The id of the project.name(str): The name of the project.
ValueError: If neither or bothidandnameare provided.errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException: If the request takes longer than Client.timeout.
Project: The project.
list
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException: If the request takes longer than Client.timeout.
list[Project]: A list of projects.
create_project
name(str): The name of the project.type_(ProjectType): The type of the project.
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException: If the request takes longer than Client.timeout.
Project: The created project.
delete_project
id or name must be provided).
Arguments
id(str): The ID of the project to delete.name(str): The name of the project to delete.
ValueError: If neither or bothidandnameare provided.ProjectsAPIException: If the server returns an error response or if the project is not a gen_ai project.errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException: If the request takes longer than Client.timeout.
bool: True if the project was successfully deleted, False otherwise.
get_project
id or name must be provided).
Arguments
id(str): The id of the project.name(str): The name of the project.with_content(bool): Whether to return the content of the project. Default is False.
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException: If the request takes longer than Client.timeout.
Project: The project.
list_projects
limit(Union[Unset, int]): The maximum number of projects to return. Default is 100.
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException: If the request takes longer than Client.timeout.
list[Project]: A list of projects.
list_user_project_collaborators
project_id(str): The ID of the project.
List[UserCollaborator]: A list of users that the project is shared with.
share_project_with_user
project_id(str): The ID of the project.user_id(str): The ID of the user.role(CollaboratorRole): The role to assign to the user.
UserCollaborator: The created user collaborator object.
unshare_project_with_user
project_id(str): The ID of the project.user_id(str): The ID of the user.
update_user_project_collaborator
project_id(str): The ID of the project.user_id(str): The ID of the user.role(CollaboratorRole): The new role to assign to the user.
UserCollaborator: The updated user collaborator object.