solana-agent 1.4.2__py3-none-any.whl → 1.4.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
solana_agent/ai.py CHANGED
@@ -111,8 +111,8 @@ class AI:
111
111
  cohere_api_key: str = None,
112
112
  cohere_model: Literal["rerank-v3.5"] = "rerank-v3.5",
113
113
  gemini_api_key: str = None,
114
- code_interpreter: bool = True,
115
- file_search: bool = True,
114
+ code_interpreter: bool = False,
115
+ file_search: bool = False,
116
116
  openai_assistant_model: Literal["gpt-4o-mini",
117
117
  "gpt-4o"] = "gpt-4o-mini",
118
118
  openai_embedding_model: Literal[
@@ -134,8 +134,8 @@ class AI:
134
134
  cohere_api_key (str, optional): API key for Cohere search. Defaults to None
135
135
  cohere_model (Literal["rerank-v3.5"], optional): Cohere model for reranking. Defaults to "rerank-v3.5"
136
136
  gemini_api_key (str, optional): API key for Gemini search. Defaults to None
137
- code_interpreter (bool, optional): Enable code interpretation. Defaults to True
138
- file_search (bool, optional): Enable file search tool. Defaults to True
137
+ code_interpreter (bool, optional): Enable code interpretation. Defaults to False
138
+ file_search (bool, optional): Enable file search tool. Defaults to False
139
139
  openai_assistant_model (Literal["gpt-4o-mini", "gpt-4o"], optional): OpenAI model for assistant. Defaults to "gpt-4o-mini"
140
140
  openai_embedding_model (Literal["text-embedding-3-small", "text-embedding-3-large"], optional): OpenAI model for text embedding. Defaults to "text-embedding-3-large"
141
141
 
@@ -380,7 +380,7 @@ class AI:
380
380
  filename (str): The name of the CSV file
381
381
  prompt (str, optional): Custom prompt for summarization. Defaults to "Summarize the markdown table into a report, include important metrics and totals."
382
382
  namespace (str, optional): Knowledge base namespace. Defaults to "global".
383
- model (Literal["gemini-2.0-flash", "gemini-1.5-pro"], optional):
383
+ model (Literal["gemini-2.0-flash", "gemini-1.5-pro"], optional):
384
384
  Gemini model for summarization. Defaults to "gemini-1.5-pro"
385
385
 
386
386
  Example:
@@ -766,6 +766,7 @@ class AI:
766
766
  self,
767
767
  user_id: str,
768
768
  query: str,
769
+ prompt: str = "You combine the data with your reasoning to answer the query.",
769
770
  use_perplexity: bool = True,
770
771
  use_grok: bool = True,
771
772
  use_facts: bool = True,
@@ -782,6 +783,7 @@ class AI:
782
783
  Args:
783
784
  user_id (str): Unique identifier for the user
784
785
  query (str): The question or query to reason about
786
+ prompt (str, optional): Prompt for reasoning. Defaults to "You combine the data with your reasoning to answer the query."
785
787
  use_perplexity (bool, optional): Include Perplexity search results. Defaults to True
786
788
  use_grok (bool, optional): Include X/Twitter search results. Defaults to True
787
789
  use_facts (bool, optional): Include stored conversation facts. Defaults to True
@@ -844,7 +846,7 @@ class AI:
844
846
  messages=[
845
847
  {
846
848
  "role": "system",
847
- "content": "You combine the data with your reasoning to answer the query.",
849
+ "content": prompt,
848
850
  },
849
851
  {
850
852
  "role": "user",
@@ -857,7 +859,9 @@ class AI:
857
859
  return f"Failed to reason. Error: {e}"
858
860
 
859
861
  # x search tool - has to be sync
860
- def search_x(self, query: str, model: Literal["grok-2-latest"] = "grok-2-latest") -> str:
862
+ def search_x(
863
+ self, query: str, model: Literal["grok-2-latest"] = "grok-2-latest"
864
+ ) -> str:
861
865
  try:
862
866
  """Search X (formerly Twitter) using Grok API integration.
863
867
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 1.4.2
3
+ Version: 1.4.4
4
4
  Summary: Build self-learning AI Agents
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents
@@ -0,0 +1,6 @@
1
+ solana_agent/__init__.py,sha256=zpfnWqANd3OHGWm7NCF5Y6m01BWG4NkNk8SK9Ex48nA,18
2
+ solana_agent/ai.py,sha256=AF_d589vUT1OyzSXLQIi6ea2nLCCCHqA7hAAzQ0Z6mg,47053
3
+ solana_agent-1.4.4.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
4
+ solana_agent-1.4.4.dist-info/METADATA,sha256=X9xePqXmZ1ioFss8I0w9K-G8H9aJJJv1tXQSJhODdLQ,4871
5
+ solana_agent-1.4.4.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
6
+ solana_agent-1.4.4.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- solana_agent/__init__.py,sha256=zpfnWqANd3OHGWm7NCF5Y6m01BWG4NkNk8SK9Ex48nA,18
2
- solana_agent/ai.py,sha256=96D7W-aJpqCvXNCEckw2ho-e66CeElyd0T4S1eZe5M0,46872
3
- solana_agent-1.4.2.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
4
- solana_agent-1.4.2.dist-info/METADATA,sha256=yuaR7g1LDE446cJeMfBbjUPBw4mi-W-3fApTVt5AUSk,4871
5
- solana_agent-1.4.2.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
6
- solana_agent-1.4.2.dist-info/RECORD,,