API
Julep Python SDK Index / Julep / Api / Client
Auto-generated documentation for julep.api.client module.
Attributes
OMIT
- this is used as the default value for optional parameters: typing.cast(typing.Any, ...)
AsyncJulepApi
Signature
AsyncJulepApi().chat
Arguments
-
session_id - str.-
messages - typing.List[InputChatMlMessage]. A list of new input messages comprising the conversation so far.-
tools - typing.Optional[typing.List[Tool]]. (Advanced) List of tools that are provided in addition to agent's default set of tools. Functions of same name in agent set are overriden-
tool_choice - typing.Optional[ChatInputDataToolChoice]. Can be one of existing tools given to the agent earlier or the ones included in the request-
frequency_penalty - typing.Optional[float]. (OpenAI-like) Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.-
length_penalty - typing.Optional[float]. (Huggingface-like) Number between 0 and 2.0. 1.0 is neutral and values larger than that penalize number of tokens generated.-
logit_bias - typing.Optional[typing.Dict[str, typing.Optional[int]]]. Modify the likelihood of specified tokens appearing in the completion.-
max_tokens - typing.Optional[int]. The maximum number of tokens to generate in the chat completion.-
presence_penalty - typing.Optional[float]. (OpenAI-like) Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.-
repetition_penalty - typing.Optional[float]. (Huggingface-like) Number between 0 and 2.0. 1.0 is neutral and values larger than that penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.-
response_format - typing.Optional[ChatSettingsResponseFormat]. An object specifying the format that the model must output.
Setting to { "type": "json_object" }
enables JSON mode, which guarantees the message the model generates is valid JSON.
-
seed - typing.Optional[int]. This feature is in Beta. If specified, our system will make a best effort to sample deterministically, such that repeated requests with the sameseed
and parameters should return the same result. Determinism is not guaranteed, and you should refer to thesystem_fingerprint
response parameter to monitor changes in the backend.-
stop - typing.Optional[ChatSettingsStop]. Up to 4 sequences where the API will stop generating further tokens.-
stream - typing.Optional[bool]. If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by adata: [DONE]
message. Example Python code.-
temperature - typing.Optional[float]. What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.-
top_p - typing.Optional[float]. Defaults to 1 An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both.-
min_p - typing.Optional[float]. Minimum probability compared to leading token to be considered-
preset - typing.Optional[ChatSettingsPreset]. Generation preset name (problem_solving|conversational|fun|prose|creative|business|deterministic|code|multilingual)-
recall - typing.Optional[bool]. Whether previous memories should be recalled or not-
record - typing.Optional[bool]. Whether this interaction should be recorded in history or not-
remember - typing.Optional[bool]. Whether this interaction should form memories or not
from julep import InputChatMlMessage, InputChatMlMessageRole from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.chat( session_id="session_id", messages=[ InputChatMlMessage( role=InputChatMlMessageRole.USER, ) ], )
Signature
See also
AsyncJulepApi().create_agent
Create a new agent
Arguments
-
name - str. Name of the agent-
about - typing.Optional[str]. About the agent-
tools - typing.Optional[typing.List[CreateToolRequest]]. A list of tools the model may call. Currently, onlyfunction
s are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.-
default_settings - typing.Optional[AgentDefaultSettings]. Default model settings to start every session with-
model - typing.Optional[str]. Name of the model that the agent is supposed to use-
docs - typing.Optional[typing.List[CreateDoc]]. List of docs about agent-
metadata - typing.Optional[CreateAgentRequestMetadata]. (Optional) metadata-
instructions - typing.Optional[CreateAgentRequestInstructions]. Instructions for the agent
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.create_agent( name="name", )
Signature
See also
AsyncJulepApi().create_agent_doc
Arguments
-
agent_id - str.-
request - CreateDoc.
from julep import CreateDoc from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.create_agent_doc( agent_id="agent_id", request=CreateDoc( title="title", ), )
Signature
AsyncJulepApi().create_agent_tool
Arguments
-
agent_id - str.-
request - CreateToolRequest.
from julep import CreateToolRequest, CreateToolRequestType, FunctionDef from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.create_agent_tool( agent_id="agent_id", request=CreateToolRequest( type=CreateToolRequestType.FUNCTION, function=FunctionDef( name="name", parameters={}, ), ), )
Signature
AsyncJulepApi().create_session
Create a session between an agent and a user
Arguments
-
user_id - typing.Optional[str]. (Optional) User ID of user to associate with this session-
agent_id - str. Agent ID of agent to associate with this session-
situation - typing.Optional[str]. A specific situation that sets the background for this session-
metadata - typing.Optional[CreateSessionRequestMetadata]. Optional metadata-
render_templates - typing.Optional[bool]. Render system and assistant message content as jinja templates
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.create_session( agent_id="agent_id", )
Signature
See also
AsyncJulepApi().create_user
Create a new user
Arguments
-
name - typing.Optional[str]. Name of the user-
about - typing.Optional[str]. About the user-
docs - typing.Optional[typing.List[CreateDoc]]. List of docs about user-
metadata - typing.Optional[CreateUserRequestMetadata]. (Optional) metadata
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.create_user()
Signature
See also
AsyncJulepApi().create_user_doc
Arguments
-
user_id - str.-
request - CreateDoc.
from julep import CreateDoc from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.create_user_doc( user_id="user_id", request=CreateDoc( title="title", ), )
Signature
AsyncJulepApi().delete_agent
Arguments
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.delete_agent( agent_id="agent_id", )
Signature
AsyncJulepApi().delete_agent_doc
Arguments
-
agent_id - str.-
doc_id - str.
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.delete_agent_doc( agent_id="agent_id", doc_id="doc_id", )
Signature
AsyncJulepApi().delete_agent_memory
Arguments
-
agent_id - str.-
memory_id - str.
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.delete_agent_memory( agent_id="agent_id", memory_id="memory_id", )
Signature
AsyncJulepApi().delete_agent_tool
Arguments
-
agent_id - str.-
tool_id - str.
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.delete_agent_tool( agent_id="agent_id", tool_id="tool_id", )
Signature
AsyncJulepApi().delete_session
Arguments
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.delete_session( session_id="session_id", )
Signature
AsyncJulepApi().delete_session_history
Arguments
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.delete_session_history( session_id="session_id", )
Signature
AsyncJulepApi().delete_user
Arguments
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.delete_user( user_id="user_id", )
Signature
AsyncJulepApi().delete_user_doc
Arguments
-
user_id - str.-
doc_id - str.
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.delete_user_doc( user_id="user_id", doc_id="doc_id", )
Signature
AsyncJulepApi().get_agent
Arguments
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.get_agent( agent_id="agent_id", )
Signature
AsyncJulepApi().get_agent_docs
Sorted (created_at descending)
Arguments
-
agent_id - str.-
limit - typing.Optional[int].-
offset - typing.Optional[int].-
metadata_filter - typing.Optional[str]. JSON object that should be used to filter objects by metadata-
sort_by - typing.Optional[GetAgentDocsRequestSortBy]. Which field to sort by:created_at
orupdated_at
-
order - typing.Optional[GetAgentDocsRequestOrder]. Which order should the sort be:asc
(ascending) ordesc
(descending)
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.get_agent_docs( agent_id="agent_id", )
Signature
AsyncJulepApi().get_agent_memories
Sorted (created_at descending)
Arguments
-
agent_id - str.-
query - str.-
user_id - typing.Optional[str].-
limit - typing.Optional[int].-
offset - typing.Optional[int].
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.get_agent_memories( agent_id="agent_id", query="query", )
Signature
AsyncJulepApi().get_agent_tools
Sorted (created_at descending)
Arguments
-
agent_id - str.-
limit - typing.Optional[int].-
offset - typing.Optional[int].
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.get_agent_tools( agent_id="agent_id", )
Signature
AsyncJulepApi().get_history
Sorted (created_at ascending)
Arguments
-
session_id - str.-
limit - typing.Optional[int].-
offset - typing.Optional[int].
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.get_history( session_id="session_id", )
Signature
AsyncJulepApi().get_job_status
Arguments
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.get_job_status( job_id="job_id", )
Signature
AsyncJulepApi().get_session
Arguments
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.get_session( session_id="session_id", )
Signature
AsyncJulepApi().get_suggestions
Sorted (created_at descending)
Arguments
-
session_id - str.-
limit - typing.Optional[int].-
offset - typing.Optional[int].
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.get_suggestions( session_id="session_id", )
Signature
AsyncJulepApi().get_user
Arguments
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.get_user( user_id="user_id", )
Signature
AsyncJulepApi().get_user_docs
Sorted (created_at descending)
Arguments
-
user_id - str.-
limit - typing.Optional[int].-
offset - typing.Optional[int].-
metadata_filter - typing.Optional[str]. JSON object that should be used to filter objects by metadata-
sort_by - typing.Optional[GetUserDocsRequestSortBy]. Which field to sort by:created_at
orupdated_at
-
order - typing.Optional[GetUserDocsRequestOrder]. Which order should the sort be:asc
(ascending) ordesc
(descending)
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.get_user_docs( user_id="user_id", )
Signature
AsyncJulepApi().list_agents
List agents created (use limit/offset pagination to get large number of sessions; sorted by descending order of created_at
by default)
Arguments
-
limit - typing.Optional[int]. Number of items to return-
offset - typing.Optional[int]. Number of items to skip (sorted created_at descending order)-
metadata_filter - typing.Optional[str]. JSON object that should be used to filter objects by metadata-
sort_by - typing.Optional[ListAgentsRequestSortBy]. Which field to sort by:created_at
orupdated_at
-
order - typing.Optional[ListAgentsRequestOrder]. Which order should the sort be:asc
(ascending) ordesc
(descending)
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.list_agents()
Signature
AsyncJulepApi().list_sessions
List sessions created (use limit/offset pagination to get large number of sessions; sorted by descending order of created_at
by default)
Arguments
-
limit - typing.Optional[int]. Number of sessions to return-
offset - typing.Optional[int]. Number of sessions to skip (sorted created_at descending order)-
metadata_filter - typing.Optional[str]. JSON object that should be used to filter objects by metadata-
sort_by - typing.Optional[ListSessionsRequestSortBy]. Which field to sort by:created_at
orupdated_at
-
order - typing.Optional[ListSessionsRequestOrder]. Which order should the sort be:asc
(ascending) ordesc
(descending)
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.list_sessions()
Signature
AsyncJulepApi().list_users
List users created (use limit/offset pagination to get large number of sessions; sorted by descending order of created_at
by default)
Arguments
-
limit - typing.Optional[int]. Number of items to return-
offset - typing.Optional[int]. Number of items to skip (sorted created_at descending order)-
metadata_filter - typing.Optional[str]. JSON object that should be used to filter objects by metadata-
sort_by - typing.Optional[ListUsersRequestSortBy]. Which field to sort by:created_at
orupdated_at
-
order - typing.Optional[ListUsersRequestOrder]. Which order should the sort be:asc
(ascending) ordesc
(descending)
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.list_users()
Signature
AsyncJulepApi().patch_agent
Arguments
-
agent_id - str.-
about - typing.Optional[str]. About the agent-
name - typing.Optional[str]. Name of the agent-
model - typing.Optional[str]. Name of the model that the agent is supposed to use-
default_settings - typing.Optional[AgentDefaultSettings]. Default model settings to start every session with-
metadata - typing.Optional[PatchAgentRequestMetadata]. Optional metadata-
instructions - typing.Optional[PatchAgentRequestInstructions]. Instructions for the agent
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.patch_agent( agent_id="agent_id", )
Signature
See also
AsyncJulepApi().patch_agent_tool
Arguments
-
agent_id - str.-
tool_id - str.-
function - PartialFunctionDef. Function definition and parameters
from julep import PartialFunctionDef from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.patch_agent_tool( agent_id="agent_id", tool_id="tool_id", function=PartialFunctionDef(), )
Signature
AsyncJulepApi().patch_session
Arguments
-
session_id - str.-
situation - typing.Optional[str]. Updated situation for this session-
metadata - typing.Optional[PatchSessionRequestMetadata]. Optional metadata
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.patch_session( session_id="session_id", )
Signature
See also
AsyncJulepApi().patch_user
Arguments
-
user_id - str.-
about - typing.Optional[str]. About the user-
name - typing.Optional[str]. Name of the user-
metadata - typing.Optional[PatchUserRequestMetadata]. Optional metadata
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.patch_user( user_id="user_id", )
Signature
See also
AsyncJulepApi().update_agent
Arguments
-
agent_id - str.-
about - str. About the agent-
name - str. Name of the agent-
model - typing.Optional[str]. Name of the model that the agent is supposed to use-
default_settings - typing.Optional[AgentDefaultSettings]. Default model settings to start every session with-
metadata - typing.Optional[UpdateAgentRequestMetadata]. Optional metadata-
instructions - typing.Optional[UpdateAgentRequestInstructions]. Instructions for the agent
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.update_agent( agent_id="agent_id", about="about", name="name", )
Signature
See also
AsyncJulepApi().update_agent_tool
Arguments
-
agent_id - str.-
tool_id - str.-
function - FunctionDef. Function definition and parameters
from julep import FunctionDef from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.update_agent_tool( agent_id="agent_id", tool_id="tool_id", function=FunctionDef( name="name", parameters={}, ), )
Signature
AsyncJulepApi().update_session
Arguments
-
session_id - str.-
situation - str. Updated situation for this session-
metadata - typing.Optional[UpdateSessionRequestMetadata]. Optional metadata
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.update_session( session_id="session_id", situation="situation", )
Signature
See also
AsyncJulepApi().update_user
Arguments
-
user_id - str.-
about - str. About the user-
name - str. Name of the user-
metadata - typing.Optional[UpdateUserRequestMetadata]. Optional metadata
from julep.client import AsyncJulepApi
client = AsyncJulepApi( api_key="YOUR_API_KEY", ) await client.update_user( user_id="user_id", about="about", name="name", )
Signature
See also
JulepApi
Signature
JulepApi().chat
Arguments
-
session_id - str.-
messages - typing.List[InputChatMlMessage]. A list of new input messages comprising the conversation so far.-
tools - typing.Optional[typing.List[Tool]]. (Advanced) List of tools that are provided in addition to agent's default set of tools. Functions of same name in agent set are overriden-
tool_choice - typing.Optional[ChatInputDataToolChoice]. Can be one of existing tools given to the agent earlier or the ones included in the request-
frequency_penalty - typing.Optional[float]. (OpenAI-like) Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.-
length_penalty - typing.Optional[float]. (Huggingface-like) Number between 0 and 2.0. 1.0 is neutral and values larger than that penalize number of tokens generated.-
logit_bias - typing.Optional[typing.Dict[str, typing.Optional[int]]]. Modify the likelihood of specified tokens appearing in the completion.-
max_tokens - typing.Optional[int]. The maximum number of tokens to generate in the chat completion.-
presence_penalty - typing.Optional[float]. (OpenAI-like) Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.-
repetition_penalty - typing.Optional[float]. (Huggingface-like) Number between 0 and 2.0. 1.0 is neutral and values larger than that penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.-
response_format - typing.Optional[ChatSettingsResponseFormat]. An object specifying the format that the model must output.
Setting to { "type": "json_object" }
enables JSON mode, which guarantees the message the model generates is valid JSON.
-
seed - typing.Optional[int]. This feature is in Beta. If specified, our system will make a best effort to sample deterministically, such that repeated requests with the sameseed
and parameters should return the same result. Determinism is not guaranteed, and you should refer to thesystem_fingerprint
response parameter to monitor changes in the backend.-
stop - typing.Optional[ChatSettingsStop]. Up to 4 sequences where the API will stop generating further tokens.-
stream - typing.Optional[bool]. If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by adata: [DONE]
message. Example Python code.-
temperature - typing.Optional[float]. What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.-
top_p - typing.Optional[float]. Defaults to 1 An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both.-
min_p - typing.Optional[float]. Minimum probability compared to leading token to be considered-
preset - typing.Optional[ChatSettingsPreset]. Generation preset name (problem_solving|conversational|fun|prose|creative|business|deterministic|code|multilingual)-
recall - typing.Optional[bool]. Whether previous memories should be recalled or not-
record - typing.Optional[bool]. Whether this interaction should be recorded in history or not-
remember - typing.Optional[bool]. Whether this interaction should form memories or not
from julep import InputChatMlMessage, InputChatMlMessageRole from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.chat( session_id="session_id", messages=[ InputChatMlMessage( role=InputChatMlMessageRole.USER, ) ], )
Signature
See also
JulepApi().create_agent
Create a new agent
Arguments
-
name - str. Name of the agent-
about - typing.Optional[str]. About the agent-
tools - typing.Optional[typing.List[CreateToolRequest]]. A list of tools the model may call. Currently, onlyfunction
s are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.-
default_settings - typing.Optional[AgentDefaultSettings]. Default model settings to start every session with-
model - typing.Optional[str]. Name of the model that the agent is supposed to use-
docs - typing.Optional[typing.List[CreateDoc]]. List of docs about agent-
metadata - typing.Optional[CreateAgentRequestMetadata]. (Optional) metadata-
instructions - typing.Optional[CreateAgentRequestInstructions]. Instructions for the agent
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.create_agent( name="name", )
Signature
See also
JulepApi().create_agent_doc
Arguments
-
agent_id - str.-
request - CreateDoc.
from julep import CreateDoc from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.create_agent_doc( agent_id="agent_id", request=CreateDoc( title="title", ), )
Signature
JulepApi().create_agent_tool
Arguments
-
agent_id - str.-
request - CreateToolRequest.
from julep import CreateToolRequest, CreateToolRequestType, FunctionDef from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.create_agent_tool( agent_id="agent_id", request=CreateToolRequest( type=CreateToolRequestType.FUNCTION, function=FunctionDef( name="name", parameters={}, ), ), )
Signature
JulepApi().create_session
Create a session between an agent and a user
Arguments
-
user_id - typing.Optional[str]. (Optional) User ID of user to associate with this session-
agent_id - str. Agent ID of agent to associate with this session-
situation - typing.Optional[str]. A specific situation that sets the background for this session-
metadata - typing.Optional[CreateSessionRequestMetadata]. Optional metadata-
render_templates - typing.Optional[bool]. Render system and assistant message content as jinja templates
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.create_session( agent_id="agent_id", )
Signature
See also
JulepApi().create_user
Create a new user
Arguments
-
name - typing.Optional[str]. Name of the user-
about - typing.Optional[str]. About the user-
docs - typing.Optional[typing.List[CreateDoc]]. List of docs about user-
metadata - typing.Optional[CreateUserRequestMetadata]. (Optional) metadata
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.create_user()
Signature
See also
JulepApi().create_user_doc
Arguments
-
user_id - str.-
request - CreateDoc.
from julep import CreateDoc from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.create_user_doc( user_id="user_id", request=CreateDoc( title="title", ), )
Signature
JulepApi().delete_agent
Arguments
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.delete_agent( agent_id="agent_id", )
Signature
JulepApi().delete_agent_doc
Arguments
-
agent_id - str.-
doc_id - str.
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.delete_agent_doc( agent_id="agent_id", doc_id="doc_id", )
Signature
JulepApi().delete_agent_memory
Arguments
-
agent_id - str.-
memory_id - str.
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.delete_agent_memory( agent_id="agent_id", memory_id="memory_id", )
Signature
JulepApi().delete_agent_tool
Arguments
-
agent_id - str.-
tool_id - str.
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.delete_agent_tool( agent_id="agent_id", tool_id="tool_id", )
Signature
JulepApi().delete_session
Arguments
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.delete_session( session_id="session_id", )
Signature
JulepApi().delete_session_history
Arguments
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.delete_session_history( session_id="session_id", )
Signature
JulepApi().delete_user
Arguments
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.delete_user( user_id="user_id", )
Signature
JulepApi().delete_user_doc
Arguments
-
user_id - str.-
doc_id - str.
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.delete_user_doc( user_id="user_id", doc_id="doc_id", )
Signature
JulepApi().get_agent
Arguments
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.get_agent( agent_id="agent_id", )
Signature
JulepApi().get_agent_docs
Sorted (created_at descending)
Arguments
-
agent_id - str.-
limit - typing.Optional[int].-
offset - typing.Optional[int].-
metadata_filter - typing.Optional[str]. JSON object that should be used to filter objects by metadata-
sort_by - typing.Optional[GetAgentDocsRequestSortBy]. Which field to sort by:created_at
orupdated_at
-
order - typing.Optional[GetAgentDocsRequestOrder]. Which order should the sort be:asc
(ascending) ordesc
(descending)
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.get_agent_docs( agent_id="agent_id", )
Signature
JulepApi().get_agent_memories
Sorted (created_at descending)
Arguments
-
agent_id - str.-
query - str.-
user_id - typing.Optional[str].-
limit - typing.Optional[int].-
offset - typing.Optional[int].
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.get_agent_memories( agent_id="agent_id", query="query", )
Signature
JulepApi().get_agent_tools
Sorted (created_at descending)
Arguments
-
agent_id - str.-
limit - typing.Optional[int].-
offset - typing.Optional[int].
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.get_agent_tools( agent_id="agent_id", )
Signature
JulepApi().get_history
Sorted (created_at ascending)
Arguments
-
session_id - str.-
limit - typing.Optional[int].-
offset - typing.Optional[int].
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.get_history( session_id="session_id", )
Signature
JulepApi().get_job_status
Arguments
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.get_job_status( job_id="job_id", )
Signature
JulepApi().get_session
Arguments
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.get_session( session_id="session_id", )
Signature
JulepApi().get_suggestions
Sorted (created_at descending)
Arguments
-
session_id - str.-
limit - typing.Optional[int].-
offset - typing.Optional[int].
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.get_suggestions( session_id="session_id", )
Signature
JulepApi().get_user
Arguments
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.get_user( user_id="user_id", )
Signature
JulepApi().get_user_docs
Sorted (created_at descending)
Arguments
-
user_id - str.-
limit - typing.Optional[int].-
offset - typing.Optional[int].-
metadata_filter - typing.Optional[str]. JSON object that should be used to filter objects by metadata-
sort_by - typing.Optional[GetUserDocsRequestSortBy]. Which field to sort by:created_at
orupdated_at
-
order - typing.Optional[GetUserDocsRequestOrder]. Which order should the sort be:asc
(ascending) ordesc
(descending)
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.get_user_docs( user_id="user_id", )
Signature
JulepApi().list_agents
List agents created (use limit/offset pagination to get large number of sessions; sorted by descending order of created_at
by default)
Arguments
-
limit - typing.Optional[int]. Number of items to return-
offset - typing.Optional[int]. Number of items to skip (sorted created_at descending order)-
metadata_filter - typing.Optional[str]. JSON object that should be used to filter objects by metadata-
sort_by - typing.Optional[ListAgentsRequestSortBy]. Which field to sort by:created_at
orupdated_at
-
order - typing.Optional[ListAgentsRequestOrder]. Which order should the sort be:asc
(ascending) ordesc
(descending)
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.list_agents()
Signature
JulepApi().list_sessions
List sessions created (use limit/offset pagination to get large number of sessions; sorted by descending order of created_at
by default)
Arguments
-
limit - typing.Optional[int]. Number of sessions to return-
offset - typing.Optional[int]. Number of sessions to skip (sorted created_at descending order)-
metadata_filter - typing.Optional[str]. JSON object that should be used to filter objects by metadata-
sort_by - typing.Optional[ListSessionsRequestSortBy]. Which field to sort by:created_at
orupdated_at
-
order - typing.Optional[ListSessionsRequestOrder]. Which order should the sort be:asc
(ascending) ordesc
(descending)
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.list_sessions()
Signature
JulepApi().list_users
List users created (use limit/offset pagination to get large number of sessions; sorted by descending order of created_at
by default)
Arguments
-
limit - typing.Optional[int]. Number of items to return-
offset - typing.Optional[int]. Number of items to skip (sorted created_at descending order)-
metadata_filter - typing.Optional[str]. JSON object that should be used to filter objects by metadata-
sort_by - typing.Optional[ListUsersRequestSortBy]. Which field to sort by:created_at
orupdated_at
-
order - typing.Optional[ListUsersRequestOrder]. Which order should the sort be:asc
(ascending) ordesc
(descending)
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.list_users()
Signature
JulepApi().patch_agent
Arguments
-
agent_id - str.-
about - typing.Optional[str]. About the agent-
name - typing.Optional[str]. Name of the agent-
model - typing.Optional[str]. Name of the model that the agent is supposed to use-
default_settings - typing.Optional[AgentDefaultSettings]. Default model settings to start every session with-
metadata - typing.Optional[PatchAgentRequestMetadata]. Optional metadata-
instructions - typing.Optional[PatchAgentRequestInstructions]. Instructions for the agent
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.patch_agent( agent_id="agent_id", )
Signature
See also
JulepApi().patch_agent_tool
Arguments
-
agent_id - str.-
tool_id - str.-
function - PartialFunctionDef. Function definition and parameters
from julep import PartialFunctionDef from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.patch_agent_tool( agent_id="agent_id", tool_id="tool_id", function=PartialFunctionDef(), )
Signature
JulepApi().patch_session
Arguments
-
session_id - str.-
situation - typing.Optional[str]. Updated situation for this session-
metadata - typing.Optional[PatchSessionRequestMetadata]. Optional metadata
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.patch_session( session_id="session_id", )
Signature
See also
JulepApi().patch_user
Arguments
-
user_id - str.-
about - typing.Optional[str]. About the user-
name - typing.Optional[str]. Name of the user-
metadata - typing.Optional[PatchUserRequestMetadata]. Optional metadata
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.patch_user( user_id="user_id", )
Signature
See also
JulepApi().update_agent
Arguments
-
agent_id - str.-
about - str. About the agent-
name - str. Name of the agent-
model - typing.Optional[str]. Name of the model that the agent is supposed to use-
default_settings - typing.Optional[AgentDefaultSettings]. Default model settings to start every session with-
metadata - typing.Optional[UpdateAgentRequestMetadata]. Optional metadata-
instructions - typing.Optional[UpdateAgentRequestInstructions]. Instructions for the agent
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.update_agent( agent_id="agent_id", about="about", name="name", )
Signature
See also
JulepApi().update_agent_tool
Arguments
-
agent_id - str.-
tool_id - str.-
function - FunctionDef. Function definition and parameters
from julep import FunctionDef from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.update_agent_tool( agent_id="agent_id", tool_id="tool_id", function=FunctionDef( name="name", parameters={}, ), )
Signature
JulepApi().update_session
Arguments
-
session_id - str.-
situation - str. Updated situation for this session-
metadata - typing.Optional[UpdateSessionRequestMetadata]. Optional metadata
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.update_session( session_id="session_id", situation="situation", )
Signature
See also
JulepApi().update_user
Arguments
-
user_id - str.-
about - str. About the user-
name - str. Name of the user-
metadata - typing.Optional[UpdateUserRequestMetadata]. Optional metadata
from julep.client import JulepApi
client = JulepApi( api_key="YOUR_API_KEY", ) client.update_user( user_id="user_id", about="about", name="name", )
Signature
See also
Last updated