Skip to content

Commit

Permalink
Graph client (#221)
Browse files Browse the repository at this point in the history
* SDK regeneration

* SDK regeneration

* SDK regeneration

* chore: Bump version

* chore: Bump version

* SDK regeneration

* SDK regeneration

* SDK regeneration

* feat: Update memory example to include latest api

* fix: Decrease sleep in example

* SDK regeneration

* SDK regeneration

* chore: Bump version

* SDK regeneration

* SDK regeneration

* SDK regeneration

* SDK regeneration

* SDK regeneration

* SDK regeneration

* SDK regeneration

* SDK regeneration

* chore: Add graph example

* SDK regeneration

* SDK regeneration

* SDK regeneration

* SDK regeneration

* chore: Update graph examples

* add get facts call

* fix: examples

* chore: fix memory example

* SDK regeneration

* SDK regeneration

* update examples

* SDK regeneration

* SDK regeneration

* SDK regeneration

* SDK regeneration

* SDK regeneration

* SDK regeneration

* update sleep times

* SDK regeneration

* SDK regeneration

* SDK regeneration

* SDK regeneration

* chore: version bump

* chore: cleaup comments

* remove langchain component

* remove langchain example

* SDK regeneration

* poetry lock

* SDK regeneration

---------

Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
  • Loading branch information
paul-paliychuk and fern-api[bot] authored Oct 18, 2024
1 parent 4eb86c4 commit 3eeeabc
Show file tree
Hide file tree
Showing 53 changed files with 3,808 additions and 2,310 deletions.
2 changes: 1 addition & 1 deletion .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ poetry.lock
README.md
.github
Makefile
LICENSE
.gitignore
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ dist/
.mypy_cache/
__pycache__/
poetry.toml
.idea/
.vscode/
*.env
.venv/
venv/
201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

6 changes: 3 additions & 3 deletions examples/chat_history/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def main() -> None:
await client.memory.add(session_id=session_id, messages=[Message(**m)])

# Wait for the messages to be processed
await asyncio.sleep(5)
await asyncio.sleep(20)

# Synthesize a question from most recent messages.
# Useful for RAG apps. This is faster than using an LLM chain.
Expand Down Expand Up @@ -100,7 +100,7 @@ async def main() -> None:

# Get Memory for session
print(f"\n---Get Perpetual Memory for Session: {session_id}")
memory = await client.memory.get(session_id, memory_type="perpetual")
memory = await client.memory.get(session_id)
print(f"Memory: {memory}")
print("\n---End of Memory")

Expand All @@ -115,7 +115,7 @@ async def main() -> None:
query = "What are Jane's favorite shoe brands?"
print(f"\n---Searching over facts for: '{query}'")
facts_result = await client.memory.search_sessions(
session_ids=[session_id], text=query, search_scope="facts"
user_id=user_id, text=query, search_scope="facts"
)
print("facts_result: ", facts_result)

Expand Down
Loading

0 comments on commit 3eeeabc

Please sign in to comment.