Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(weave): allow AnnotationSpec to be imported from weave #3329

Merged
merged 4 commits into from
Jan 15, 2025
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
2 changes: 1 addition & 1 deletion tests/trace/test_annotation_feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pydantic import BaseModel, Field

import weave
from weave.flow.annotation_spec import AnnotationSpec
from weave import AnnotationSpec
from weave.trace_server.clickhouse_trace_server_batched import InvalidRequest
from weave.trace_server.trace_server_interface import FeedbackCreateReq, ObjQueryReq

Expand Down
2 changes: 1 addition & 1 deletion tests/trace/test_feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import weave
from tests.trace.util import client_is_sqlite
from weave.flow.annotation_spec import AnnotationSpec
from weave import AnnotationSpec
from weave.trace.weave_client import WeaveClient, get_ref
from weave.trace_server import trace_server_interface as tsi
from weave.trace_server.errors import InvalidRequest
Expand Down
2 changes: 2 additions & 0 deletions weave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from weave.flow.agent import Agent as Agent
from weave.flow.agent import AgentState as AgentState
from weave.flow.annotation_spec import AnnotationSpec
from weave.flow.dataset import Dataset
from weave.flow.eval import Evaluation, Scorer
from weave.flow.model import Model
Expand Down Expand Up @@ -40,4 +41,5 @@
MessagesPrompt,
Evaluation,
Scorer,
AnnotationSpec,
]
Loading