Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,6 @@ repos:
# args: ['--quiet']


- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
files: ^src/(ogx_client|llama_stack_client)/lib/.*\.(py|sh)$
args:
- --license-filepath
- scripts/license_header.txt


ci:
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
autoupdate_commit_msg: ⬆ [pre-commit.ci] pre-commit autoupdate
5 changes: 0 additions & 5 deletions examples/interactive_agent_cli.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
"""Interactive CLI for exploring agent turn/step events with server-side tools.

Usage:
Expand Down
5 changes: 0 additions & 5 deletions scripts/license_header.txt

This file was deleted.

6 changes: 0 additions & 6 deletions scripts/utils/ruffen-docs.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

# fork of https://github.com/asottile/blacken-docs adapted for ruff
from __future__ import annotations

Expand Down
6 changes: 0 additions & 6 deletions scripts/utils/upload-artifact.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
#!/bin/bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

set -exuo pipefail

FILENAME=$(basename dist/*.whl)
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import typing as _t
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_base_client.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

import sys
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_compat.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

from typing import TYPE_CHECKING, Any, Union, Generic, TypeVar, Callable, cast, overload
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_constants.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import httpx
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_files.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

import io
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_models.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

import os
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_qs.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

from typing import Any, List, Tuple, Union, Mapping, TypeVar
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_resource.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_response.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

import os
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_streaming.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

# Note: initially copied from https://github.com/florimondmanca/httpx-sse/blob/master/src/httpx_sse/_decoders.py
from __future__ import annotations

Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_types.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

from os import PathLike
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from ._path import path_template as path_template
from ._sync import asyncify as asyncify
from ._proxy import LazyProxy as LazyProxy
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_utils/_compat.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

import sys
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_utils/_datetime_parse.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

"""
This file contains code from https://github.com/pydantic/pydantic/blob/main/pydantic/v1/datetime_parse.py
without the Pydantic v1 specific errors.
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_utils/_json.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

import json
from typing import Any
from datetime import datetime
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_utils/_path.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

import re
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_utils/_proxy.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

from abc import ABC, abstractmethod
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_utils/_reflection.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

import inspect
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_utils/_streams.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from typing import Any
from typing_extensions import Iterator, AsyncIterator

Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_utils/_sync.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

import asyncio
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_utils/_transform.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

import io
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_utils/_typing.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

import sys
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_utils/_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

from __future__ import annotations

import os
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_version.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "ogx_client"
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/_wrappers.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Generic, TypeVar
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

__all__ = ["get_oauth_token_for_mcp_server"]


Expand Down
5 changes: 0 additions & 5 deletions src/ogx_client/lib/agents/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
5 changes: 0 additions & 5 deletions src/ogx_client/lib/agents/agent.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
from __future__ import annotations

import json
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/lib/agents/client_tool.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

import json
import inspect
from abc import abstractmethod
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/lib/agents/event_logger.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

"""Event logger for agent interactions.

This module provides a simple logger that converts agent stream events
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/lib/agents/event_synthesizer.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

"""Translate Responses API stream events into structured turn events.

TurnEventSynthesizer keeps just enough state to expose turns and steps for
Expand Down
5 changes: 0 additions & 5 deletions src/ogx_client/lib/agents/react/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
5 changes: 0 additions & 5 deletions src/ogx_client/lib/agents/react/agent.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
from __future__ import annotations

import logging
Expand Down
6 changes: 0 additions & 6 deletions src/ogx_client/lib/agents/react/prompts.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.

DEFAULT_REACT_AGENT_SYSTEM_PROMPT_TEMPLATE = """
You are an expert assistant who can solve any task using tool calls. You will be given a task to solve as best you can.
To do so, you have been given access to the following tools: <<tool_names>>
Expand Down
Loading
Loading